/* ============================================================
   LEGAL PAGES — Privacy Policy & Terms of Service
   Shared page chrome for both long-form legal documents.

   These are documents the reader studies one at a time, so they take
   the Design System Guide's WHITE-hero exception (.hero-shell-plain,
   the same recipe Match Detail uses) rather than the lavender marketing
   hero — the page stays on white the whole way and the text carries the
   weight. A single centered reading column (760px measure — the Guide's
   documented long-form / terms-of-service width) is all the structure a
   legal doc needs; no table of contents, no cross-page switch.

   Built entirely from the global tokens in colors_and_type.css — only
   layout/structure unique to a reference document is defined here,
   including a quiet, recessive "fine print" treatment for the all-caps
   disclaimers.
   Nav + Footer come from the shared sections.jsx / vibe-footer.jsx.
   ============================================================ */

/* ---------- HERO (white) ---------- */
/* Restore the Design System Guide's documented nav clearance: the Section
   Layout table specifies 128px hero-top on desktop (96px tablet/mobile).
   The shared .hero-shell-plain only sets 96px desktop, leaving the eyebrow
   too tight under the fixed nav — so the legal hero opts back up to 128px
   (compound selector beats the shared shell's responsive single-class
   rules). Bottom padding is zeroed so the intro reads as a continuation of
   the summary (the hero→intro gap is owned by .legal-shell's padding-top).
   S5 — the 128 opt-up is a hero-top-clearance sibling (S4 ruling): it now
   rides --rhythm-hero-top (128↔96, one step, density-pinned at the 96 nav
   floor). The ≤900 rule below keeps its fixed 96. */
.legal-hero { margin-bottom: 0; }
.hero-shell-plain.legal-hero { padding-top: var(--rhythm-hero-top); padding-bottom: 0; }
.legal-hero-pad {
  max-width: 1440px; margin: 0 auto; padding: 0 96px;
}
.legal-hero-inner {
  /* Same 760px reading measure as the document body below, so the stamp,
     title, and summary share one left edge with every section that follows.
     Reading-column centering ruling (Jun 2026) — the column block centers
     on the 1440/96 frame (auto margins, inert once gutters consume the
     slack); hero copy rides the same centered edge so the page keeps one
     left edge top to bottom. Text stays left-aligned inside. */
  max-width: 760px;
  margin-inline: auto;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 16px;
}
.legal-updated {
  font: var(--type-eyebrow);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--couple-purple);
  margin: 0 0 2px;
}
.legal-h1 {
  /* White-hero ink per the Guide (heading #444); funnel-hero spacing. */
  letter-spacing: -0.8px;
  margin: 4px 0 0;
}
.legal-hero-sub {
  color: var(--ink-700);
  margin: 8px 0 0;
  max-width: none;
}

/* ---------- SHELL — single centered reading column ---------- */
.legal-shell {
  max-width: 1440px;
  margin: 0 auto;
  /* S5 — only the 96 bottom is large rhythm (→ fluid); the 24 top and the
     96px gutters stay fixed. Long-form reading: body type never flexes. */
  padding: 24px 96px var(--rhythm-96);
}
.legal-content {
  /* The Guide's long-form / terms-of-service measure (matches the Guide's own
     760px principle column). Centered as a block on the frame — the
     reading-column centering ruling (Jun 2026) — sharing the hero inner's
     edge, so the whole document reads as one centered column under the
     title. Text stays left-aligned inside the column. */
  max-width: 760px;
  margin-inline: auto;
  min-width: 0;
}

.legal-doc-intro {
  font: var(--type-body-lg);
  color: var(--ink-700);
  margin: 0 0 8px;
  padding-bottom: 40px;
}

.legal-section { padding-top: 48px; scroll-margin-top: 104px; }
.legal-section:first-of-type { padding-top: 40px; }
.legal-section-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 20px;
}
.legal-section-num {
  /* Display font (Rubik), not mono — a legal section number is document
     structure, not a technical spec accent, so it harmonizes with the
     heading it labels. Purple kept as a single quiet structural accent.
     S5 — tracks its h2 (--fs-h3, 24↔18) one tier down: reading-tier 20
     flexes ONE step on the body-lg ramp (18 floor). */
  font: 700 var(--fs-body-lg)/1 var(--font-display);
  color: var(--couple-purple);
  flex-shrink: 0;
}
.legal-h2 {
  font: var(--type-h3);              /* 24px Rubik 700 — document-section scale */
  color: var(--fg-heading);
  letter-spacing: -0.3px;
  margin: 0;
  text-wrap: balance;
}

/* Body copy — the Guide's long-form / terms-of-service recipe: 18px Nunito,
   line-height 1.5, ink-700 on white. */
.legal-p {
  font: var(--type-body);
  color: var(--ink-700);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.legal-section .legal-p:last-child { margin-bottom: 0; }

/* In-text sub-heading (e.g. "Information you provide directly:") */
.legal-h3 {
  font: 700 18px/1.4 var(--font-display);
  color: var(--fg-heading);
  letter-spacing: -0.2px;
  margin: 28px 0 14px;
}
.legal-h3:first-child { margin-top: 0; }

/* Bullet list — purple-dot markers, matched to the FAQ answer list. */
.legal-ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.legal-section .legal-ul:last-child { margin-bottom: 0; }
.legal-ul li {
  position: relative;
  padding-left: 26px;
  font: var(--type-body);
  color: var(--ink-700);
  line-height: 1.5;
}
.legal-ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--couple-violet-soft);
}

/* Links inside legal copy */
.legal-link {
  color: var(--couple-purple);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--lavender-edge);
  transition: border-color 140ms ease, color 140ms ease;
}
.legal-link:hover { color: var(--couple-purple-hover); border-bottom-color: var(--couple-purple); text-decoration: none; }

/* ---------- FINE PRINT ----------
   The all-caps statutory disclaimers (warranty, liability, arbitration,
   safety authorization). These are required boilerplate the reader is meant
   to be able to SKIM, so they should recede — not announce themselves. No
   container: per the system's "whitespace, not containers" principle they're
   simply a quiet step down in size on muted ink (--ink-500), set apart from
   the body by spacing alone. */
.legal-fineprint {
  margin: 24px 0;
}
.legal-fineprint .legal-fp-p {
  font: 400 14px/1.5 var(--font-body);
  letter-spacing: 0.2px;
  color: var(--ink-500);
  margin: 0 0 12px;
}
.legal-fineprint .legal-fp-p:last-child { margin-bottom: 0; }

/* ---------- DEFINITION / KEY-VALUE ROWS ----------
   The plans-and-pricing list reads as labelled rows; render as a clean
   table-less grid so price and term align. */
.legal-deflist {
  margin: 0 0 18px;
  border-top: 1px solid var(--ink-100);
}
.legal-defrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-100);
}
.legal-def-name { font: 700 18px/1.2 var(--font-display); color: var(--fg-heading); }
.legal-def-price { font: 700 18px/1.2 var(--font-display); color: var(--couple-purple); white-space: nowrap; }
.legal-def-note {
  grid-column: 1 / -1;
  font: var(--type-body-sm);
  color: var(--ink-500);
  margin: 0;
}

/* ============================================================
   RESPONSIVE — follows the project's 1100/900/768/640 cadence.
   ============================================================ */
@media (max-width: 1100px) {
  .legal-hero-pad { padding: 0 56px; }
  .legal-shell { padding: 24px 56px 96px; }
}

@media (max-width: 900px) {
  .legal-hero-pad { padding: 0 48px; }
  .legal-shell { padding: 24px 48px 80px; }
  .hero-shell-plain.legal-hero { padding-top: var(--space-96); }
}

@media (max-width: 768px) {
  .legal-hero-pad { padding: 0 40px; }
  .legal-shell { padding: 20px 40px 64px; }
}

@media (max-width: 640px) {
  .legal-hero-pad { padding: 0 20px; }
  .legal-h1 { font-size: 38px !important; letter-spacing: -0.5px; }
  .legal-hero-sub { font-size: 18px !important; }
  .legal-shell { padding: 20px 20px 64px; }
  .legal-doc-intro { font-size: 18px; padding-bottom: 32px; }
  .legal-section { padding-top: 40px; }
  .legal-section-head { gap: 10px; }
  .legal-h2 { font-size: 20px !important; }
  .legal-defrow { grid-template-columns: 1fr; }
}
