/* ==========================================================
   Legal Pages — page-legal.css  v1.0
   Privacy Policy / Terms of Service / Cookie Policy …

   Enqueued only on the Legal page template (page-legal.php).
   Depends on: intone-design-system, intone-theme-tokens
   ========================================================== */

/* ── Breadcrumb — dedicated legal-page position class ──
   Standalone (not the shared .intone-breadcrumb--over-hero from
   design-system.css) so it can be tuned independently for .legal-hero
   without touching — or being touched by — every other hero-led page.
   breadcrumbs.php emits this class instead of --over-hero specifically on
   page-legal.php (is_page_template check). Tune the `top` offset here. */
.intone-breadcrumb--legal-hero {
  position: absolute;
  top: clamp(40px, 8vw, 80px);
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 10;
  background: transparent;
}

/* ── Hero ──
   padding-top must clear the breadcrumb's OWN rendered box, not just its
   `top` offset — the breadcrumb (.intone-breadcrumb base rule) is ~54px
   tall (14px+16px padding + 24px line-height), so this is the breadcrumb's
   clamp() + that ~54px + a 16px gap, kept as one clamp() so hero padding
   and breadcrumb position can never drift out of sync again regardless of
   which one gets tuned later. Previously the hero's padding-top was set
   equal to the breadcrumb's `top` alone, so the title started ~46-54px
   before the breadcrumb had even finished rendering. */
.legal-hero {
  background: #fff;
  padding-top: clamp(110px, 8vw + 70px, 150px);
  padding-right: 44px;
  padding-left: 44px;
  padding-bottom: 0;
  overflow: hidden;
}

.legal-hero__bar {
  width: 192px;
  height: 6px;
  background: var(--ds-gold, #f6b43f);
  margin-bottom: 32px;
}

.legal-hero__title {
  font-family: var(--ds-font-heading);
  font-size: clamp(48px, 9.5vw, 130px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #000;
  /* margin: 0 0 32px; */
}

.legal-hero__dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 56px;
}

.legal-hero__date {
  font-family: var(--ds-font-heading);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: #141414;
  margin: 0;
}

.legal-hero__lead {
  font-family: var(--ds-font-heading);
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.35;
  color: #000;
  /* text-transform: uppercase; */
  margin: 0 0 96px;
  /* max-width: 1352px; */
}

/* ── Disclaimer band ── */
.legal-disclaimer {
  position: relative;
  min-height: 405px;
  overflow: hidden;
  background: #141414;
  display: flex;
  align-items: center;
}

.legal-disclaimer__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.legal-disclaimer__overlay {
  position: absolute;
  inset: 0;
  background: #FFFFFFD1;
}

.legal-disclaimer__content {
  position: relative;
  z-index: 2;
  padding: 64px 88px;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.legal-disclaimer__title {
  font-family: var(--ds-font-heading);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  /* color: #fff; */
  margin: 0;
}

.legal-disclaimer__body {
  font-family: var(--ds-font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.625;
  /* color: #fff; */
  margin: 0;
  max-width: 1150px;
}

/* ── Content sections (alternating bg) ── */
.legal-section {
  padding: 96px 44px;
}

.legal-section--light {
  background: var(--ds-light-200, #f4f6f9);
}

.legal-section--white {
  background: #fff;
}

/* .legal-section__inner {
  max-width: 1352px;
} */

/* ── Typography inside legal sections ── */
.legal-section h2 {
  font-family: var(--ds-font-heading);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: var(--ds-navy, #1e2e4c);
  text-transform: uppercase;
  margin: 0 0 48px;
}

.legal-section h3 {
  font-family: var(--ds-font-heading);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ds-navy, #1e2e4c);
  text-transform: uppercase;
  margin: 0 0 24px;
}

.legal-section p {
  font-family: var(--ds-font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.625;
  color: #000;
  margin: 0 0 24px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

/* ── Callout box — white bg, gold left border ── */
.legal-callout {
  border-left: 10px solid var(--ds-gold, #f6b43f);
  padding: 40px 40px 40px 50px;
  background: #fff;
  margin-top: 48px;
}

/* Light-bg variant */
.legal-callout--light {
  background: var(--ds-light-200, #f4f6f9);
  padding: 32px 32px 32px 42px;
  margin-top: 24px;
}

.legal-callout p,
.legal-callout cite {
  font-family: var(--ds-font-heading);
  font-size: 18px;
  line-height: 1.625;
  color: #000;
  margin: 0;
}

.legal-callout p+p {
  margin-top: 16px;
}

.legal-callout p strong {
  font-weight: 700;
}

.legal-callout cite {
  font-style: normal;
  font-size: 15px;
  color: #666;
  margin-top: 8px;
}

.legal-callout--medium p {
  font-weight: 500;
}

.legal-callout ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-callout ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--ds-font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #000;
}

.legal-callout ul li::before {
  content: '•';
  color: var(--ds-gold, #f6b43f);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  flex-shrink: 0;
}

/* ── Gold-bullet list directly in .legal-section (editor ul) ── */
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-section ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--ds-font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.625;
  color: #000;
}

.legal-section ul li::before {
  content: '•';
  color: var(--ds-gold, #f6b43f);
  font-weight: 700;
  font-size: 16px;
  line-height: 26px;
  flex-shrink: 0;
}

/* ── Dark note box (no border, always dark) ── */
.legal-note {
  background: #f4f6f9;
  padding: 32px;
  margin-top: 24px;
}

.legal-note p,
.legal-note cite {
  font-family: var(--ds-font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.625;
  /* color: #fff; */
  margin: 0;
}

.legal-note p+p {
  margin-top: 16px;
}

/* ── 2-column card grid ── */
.legal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 52px;
  margin-top: 0;
}

.legal-card {
  background: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-card h3 {
  font-family: var(--ds-font-heading);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ds-navy, #1e2e4c);
  text-transform: uppercase;
  margin: 0 0 24px;
}

.legal-card p {
  font-family: var(--ds-font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.625;
  color: #000;
  margin: 0 0 16px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

/* ── Legal CTA  ─────────────────────────────────────────────────────
 * Intentionally dark/branded section — no dark mode override.
 * Matches the Home page CTA design (parallax bg-blend + arch).
 * ─────────────────────────────────────────────────────────────────── */
.legal-cta {
  position: relative;
  background-color: rgba(255, 255, 255, 0.56);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: overlay;
  overflow: hidden;
  min-height: 750px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 44px 120px;
}
.legal-cta__inner{
  position: relative;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}
.legal-cta__arch {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 463px;
  background: #ffffff;
  z-index: 1;
}

.legal-cta__content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 0 44px;
  margin-top: -200px;
  text-align: center;
}

.legal-cta__bg-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  overflow: hidden;
}

.legal-cta__bg-text span {
  font-family: var(--ds-font-heading);
  font-size: clamp(56px, 10vw, 105px);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.06);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.06);
}

.legal-cta__bg-text.is-clip-text span {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: 0% 0%;
  background-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@supports not (background-clip: text) {
  .legal-cta__bg-text.is-clip-text span {
    background: none;
    color: rgba(255, 255, 255, 0.08);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.08);
  }
}

.legal-cta__text {
  font-family: var(--ds-font-heading);
  font-size: clamp(15px, 2.5vw, 45px);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  -webkit-text-fill-color: #fff;
  margin: 0;
  text-transform: uppercase;
}

.legal-cta__text.is-clip-text {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: 0% 0%;
  background-color: #ffffff66;
  background-blend-mode: overlay;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #ffffff66;
  color: transparent;
}

@supports not (background-clip: text) {
  .legal-cta__text.is-clip-text {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
  }
}

.legal-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 238px;
  height: 52px;
  padding: 0 48px;
  background: #000;
  color: #FFFFFF;
  font-family: var(--ds-font-heading);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.legal-cta__btn:hover {
  background: var(--ds-gold, #f6b43f);
  color: #000;
  text-decoration: none;
}

/* ── Grievance / SMS section (always dark, no override) ── */
.legal-grievance {
  /* background: var(--ds-dark-900, #141414); */
  padding: 96px 44px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-grievance-card {
  background: #f4f6f9;
  border-left: 10px solid var(--ds-gold, #f6b43f);
  padding: 56px 56px 56px 66px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-grievance-card h2 {
  font-family: var(--ds-font-heading);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1;
  /* color: #fff; */
  text-transform: uppercase;
  margin: 0;
}

.legal-grievance-card p {
  font-family: var(--ds-font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.625;
  /* color: #fff; */
  margin: 0;
  max-width: 1150px;
}

.legal-grievance-card p strong {
  font-weight: 500;
}

.legal-grievance-card a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ds-gold, #f6b43f);
  text-underline-offset: 2px;
  transition: text-decoration-thickness 0.2s ease;
}

.legal-grievance-card a:hover {
  text-decoration-thickness: 3px;
}


/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 960px) {
  .legal-hero {
    /* top padding stays on the clamp() above — only horizontal changes here */
    padding-right: 32px;
    padding-left: 32px;
  }

  .legal-hero__lead {
    margin-bottom: 64px;
  }

  .legal-disclaimer__content {
    padding: 48px 44px;
  }

  .legal-section {
    padding: 64px 32px;
  }

  .legal-grievance {
    padding: 64px 32px;
  }

  .legal-grievance-card {
    padding: 40px 32px 40px 40px;
  }

  .legal-cards {
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .legal-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .legal-section {
    padding: 56px 24px;
  }
}

@media (max-width: 540px) {
  .legal-hero {
    /* top padding stays on the clamp() above — only horizontal changes here */
    padding-right: 20px;
    padding-left: 20px;
  }

  .legal-disclaimer__content {
    padding: 40px 24px;
  }

  .legal-disclaimer {
    min-height: 320px;
  }

  .legal-section {
    padding: 48px 20px;
  }

  .legal-callout {
    padding: 28px 20px 28px 28px;
    border-left-width: 6px;
  }

  .legal-callout--light {
    padding: 24px 20px 24px 24px;
  }

  .legal-grievance {
    padding: 48px 20px;
  }

  .legal-grievance-card {
    padding: 32px 20px 32px 28px;
    border-left-width: 6px;
  }

  .legal-card {
    padding: 24px;
  }
}


/* ── Dark mode overrides ─────────────────────────────────── */

/* Hero */
[data-theme="dark"] .legal-hero {
  background: var(--t-bg);
}
[data-theme="dark"] .legal-hero__title,
[data-theme="dark"] .legal-hero__lead {
  color: var(--t-text);
}
[data-theme="dark"] .legal-hero__date {
  color: var(--t-text-muted);
}

/* Content sections */
[data-theme="dark"] .legal-section--light {
  background: var(--t-surface);
}
[data-theme="dark"] .legal-section--white {
  background: var(--t-bg);
}
[data-theme="dark"] .legal-section h2,
[data-theme="dark"] .legal-section h3 {
  color: var(--t-text);
}
[data-theme="dark"] .legal-section p {
  color: var(--t-text-muted);
}
[data-theme="dark"] .legal-section ul li {
  color: var(--t-text-muted);
}

/* Callout boxes */
[data-theme="dark"] .legal-callout {
  background: var(--t-surface-raised);
}
[data-theme="dark"] .legal-callout--light {
  background: var(--t-surface);
}
[data-theme="dark"] .legal-callout p,
[data-theme="dark"] .legal-callout cite {
  color: var(--t-text);
}
[data-theme="dark"] .legal-callout ul li {
  color: var(--t-text);
}

/* Card grid */
[data-theme="dark"] .legal-card {
  background: var(--t-surface);
}
[data-theme="dark"] .legal-card h3 {
  color: var(--t-text);
}
[data-theme="dark"] .legal-card p {
  color: var(--t-text-muted);
}
