/* ─── SHARED LEGAL/INFO PAGE STYLES ───
   Used by: Terms & Conditions, Privacy Policy, Track Order,
   Returns & Exchanges, Shipping & Delivery */

.legal-section {
  width: 100%;
  background-color: var(--white);
  /* overflow: hidden; */
}

.legal-container {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 56px);
  width: 100%;
}

/* Left Column - Image */
.legal-image-col {
  flex: 0 0 50%;
  width: 50%;
  background-color: #f6f6f6;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right Column - Content */
.legal-content-col {
  flex: 0 0 50%;
  width: 50%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
}

.legal-content-wrap {
  width: 100%;
  max-width: 600px;
  padding-bottom: 40px;
}

.legal-title {
  font-family: var(--font-outfit), sans-serif;
  font-size: 36px;
  font-weight: 400;
  color: #141414;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

/* Styling standard HTML tags output by WordPress editor */
.legal-content-wrap p {
  font-family: var(--font-outfit), sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: #141414;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.legal-content-wrap h2,
.legal-content-wrap h3 {
  font-family: var(--font-outfit), sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #141414;
  margin-top: 28px;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.legal-content-wrap ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding-left: 0px;
}

.legal-content-wrap li {
  position: relative;
  font-family: var(--font-outfit), sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: #141414;
  padding-left: 15px;
}

.legal-content-wrap li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #141414;
}

/* Automatic prepending of icons to link structures generated in Editor */
.legal-content-wrap a[href^="mailto:"],
.legal-content-wrap a[href^="tel:"],
.legal-content-wrap a[href*="wa.me"],
.legal-content-wrap a[href*="whatsapp"] {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-outfit), sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #141414;
  text-decoration: none;
  margin-bottom: 0;
  transition: opacity 0.2s ease;
}
.legal-content-wrap a[href^="mailto:"]:hover,
.legal-content-wrap a[href^="tel:"]:hover,
.legal-content-wrap a[href*="wa.me"]:hover,
.legal-content-wrap a[href*="whatsapp"]:hover {
  opacity: 0.7;
}

.legal-content-wrap a[href^="mailto:"]::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("../img/Icons/email.svg");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.legal-content-wrap a[href^="tel:"]::before,
.legal-content-wrap a[href*="wa.me"]::before,
.legal-content-wrap a[href*="whatsapp"]::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("../img/Icons/phone.svg");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ─── RESPONSIVE LAYOUT ─── */
@media (max-width: 991px) {
  .legal-container {
    flex-direction: column;
    min-height: auto;
  }

  .legal-image-col,
  .legal-content-col {
    flex: 0 0 100%;
    width: 100%;
  }

  .legal-image-col {
    position: static;
    height: 450px;
  }

  .legal-content-col {
    padding: 60px 40px;
  }
}

@media (max-width: 767px) {
  .legal-image-col {
    height: 350px;
  }

  .legal-content-col {
    padding: 40px 24px;
  }

  .legal-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .legal-content-wrap p,
  .legal-content-wrap li {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .legal-content-wrap h2,
  .legal-content-wrap h3 {
    font-size: 16px;
    margin-top: 18px;
  }
}
