/* ==========================================================================
   MELLOW &mdash; LEGAL PAGES MASTER STYLESHEET (Privacy & Terms)
   ========================================================================== */

/* 1. MASTER HERO AUTO HEIGHT */
section.hero {
  height: auto !important;
  min-height: unset !important;
}
section.hero .hero__inner {
  height: auto !important;
  min-height: unset !important;
}
section.hero .hero__content {
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 32px;
}
section.hero .hero__body {
  width: 50% !important;
  max-width: 50% !important;
  margin-top: 0;
}
@media (max-width: 1024px) {
  section.hero .hero__body {
    width: 50% !important;
    max-width: 50% !important;
  }
}
@media (max-width: 600px) {
  section.hero .hero__body {
    width: 75% !important;
    max-width: 75% !important;
  }
}
section.hero .hero__title {
  width: 100%;
  max-width: 100%;
}
section.hero .hero__sub {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}

/* 2. DUAL FROSTED HERO BADGES */
.coll-hero__badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 50% !important;
  max-width: 50% !important;
  margin-top: 0;
}

@media (max-width: 1024px) {
  .coll-hero__badges {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.coll-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.coll-badge__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.coll-badge__icon svg {
  width: 16px;
  height: 16px;
}
.coll-badge__text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}
.coll-badge__text span {
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* 3. ENCLOSED EDITORIAL CARD (-120px Overlap) */
.legal-wrap {
  position: relative;
  z-index: 10;
  margin-top: -120px !important;
  margin-bottom: 0;
  width: 100% !important;
}

.legal-card {
  background: var(--white);
  border-radius: var(--r-card);
  border: 1px solid var(--grey-lt);
  padding: 160px 70px 70px 70px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  width: 100%;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

/* 4. STICKY TABLE OF CONTENTS */
.legal-sidebar {
  position: sticky;
  top: 100px;
}

.legal-toc {
  background: var(--off-white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--r-md);
  padding: 24px 20px;
}

.legal-toc__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--grey-lt);
}

.legal-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc__link {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
  line-height: 1.35;
}

.legal-toc__link:hover {
  background: var(--white);
  color: var(--red);
  transform: translateX(3px);
}

.legal-toc__link.active {
  background: var(--white);
  color: var(--red);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-left: 3px solid var(--red);
}

/* 5. LEGAL ARTICLE BODY */
.legal-article {
  width: 100%;
}

.legal-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--grey-lt);
  scroll-margin-top: 120px;
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section__num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.legal-section h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.25;
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  margin: 24px 0 12px;
  line-height: 1.3;
}

.legal-section p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 16px;
}

.legal-section ul, 
.legal-section ol {
  margin: 16px 0 20px 20px;
  padding-left: 8px;
}

.legal-section li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  margin-bottom: 10px;
}

.legal-section li::marker {
  color: var(--red);
  font-weight: 700;
}

/* 6. POLICY CALLOUT BOXES */
.legal-callout {
  background: var(--off-white);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 20px 24px;
  margin: 20px 0;
}

.legal-callout p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--dark);
  font-weight: 500;
}

.legal-callout strong {
  color: var(--black);
}

/* 7. CONTACT DPO / LEGAL DESK CARD */
.legal-contact-box {
  background: var(--off-white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--r-md);
  padding: 32px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.legal-contact-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.legal-contact-box p {
  font-size: 0.92rem;
  color: var(--grey);
  margin: 0;
}

/* 8. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .legal-wrap {
    margin-top: -100px !important;
  }
  .legal-card {
    padding: 140px 30px 40px 30px;
  }
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal-sidebar {
    position: relative;
    top: 0;
  }
  .legal-toc__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .legal-wrap {
    margin-top: -60px !important;
  }
  .legal-card {
    padding: 100px 20px 30px 20px;
  }
  .legal-toc__list {
    grid-template-columns: 1fr;
  }
  .legal-contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

