/* ==========================================================================
   MOMENTUM — LEGAL PAGE SYSTEM  v1.4  (wider desktop measure, larger body type)
   One stylesheet for every legal / reference page. Apply .momentum-legal to
   the content wrapper inside a Bricks Section that carries
   .momentum-legal-section. No JS, no build step.

   REQUIRED CONTENT SKELETON (order matters — the CSS keys off it):
     1. Eyebrow line      -> a short label, e.g. "Warranty Policy"   (first line)
     2. Page title        -> H1
     3. Intro paragraph   -> the lead sentence (styled large)        (right after H1)
     4. Sections          -> H2 (auto-numbered) + body / H3 / lists
     5. Effective date    -> "Last Updated: ... · Version ..."       (final line)
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
.momentum-legal-section,
.momentum-legal {
  --ml-navy:        #0D1B2A;
  --ml-navy-soft:   #0F1C2E;
  --ml-gold:        #C9A84C;
  --ml-gold-soft:   #CFAF6A;
  --ml-silver:      #C9CED6;
  --ml-paper:       #FBF9F4;
  --ml-ink:         #17212E;
  --ml-ink-muted:   #5B6573;
  --ml-rule:        rgba(13, 27, 42, 0.10);
  --ml-measure:     88ch;   /* readable text width. Lower (e.g. 74ch) = narrower, 100% = edge-to-edge. */
  --ml-font-body:   "Inter", system-ui, -apple-system, sans-serif;
  --ml-font-head:   "Space Grotesk", "Inter", system-ui, sans-serif;
}

/* ---- Uniform page surface (full-bleed, no card) ------------------------- */
.momentum-legal-section {
  background: var(--ml-paper);
  color: var(--ml-ink);
  border-top: 3px solid var(--ml-gold);
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
}

/* ---- Content column (centred for readability, no box) ------------------- */
.momentum-legal {
  width: 100%;
  max-width: var(--ml-measure);
  background: transparent;
  color: var(--ml-ink);
  font-family: var(--ml-font-body);
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.18rem);
  line-height: 1.74;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  counter-reset: ml-section;
}

/* ---- Eyebrow (first line — policy label) -------------------------------- */
.momentum-legal > p:first-child {
  font-family: var(--ml-font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ml-gold);
  margin: 0 0 0.9rem;
}

/* ---- Title (H1) --------------------------------------------------------- */
.momentum-legal h1 {
  font-family: var(--ml-font-head);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.35rem + 2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ml-navy);
  margin: 0 0 1.4rem;
}

/* ---- Lead (intro paragraph right after H1) ------------------------------ */
.momentum-legal h1 + p {
  font-size: 1.12em;
  line-height: 1.6;
  color: var(--ml-ink);
  margin: 0 0 2.4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ml-rule);
}

/* ---- Section headings (H2) — manual numbering in the text ------------- */
.momentum-legal h2 {
  font-family: var(--ml-font-head);
  font-weight: 600;
  font-size: clamp(1.22rem, 1rem + 0.9vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--ml-navy);
  margin: 3rem 0 1rem;
}

.momentum-legal h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--ml-gold);
  margin-bottom: 1rem;
}

/* ---- Sub-headings (H3) -------------------------------------------------- */
.momentum-legal h3 {
  font-family: var(--ml-font-head);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--ml-navy-soft);
  margin: 1.9rem 0 0.5rem;
}

/* ---- Body --------------------------------------------------------------- */
.momentum-legal p { margin: 0 0 1.2rem; }
.momentum-legal strong,
.momentum-legal b { font-weight: 600; color: var(--ml-navy); }

/* ---- Lists -------------------------------------------------------------- */
.momentum-legal ul,
.momentum-legal ol { margin: 0 0 1.4rem; padding-left: 0; list-style: none; }
.momentum-legal li { position: relative; padding-left: 1.6rem; margin-bottom: 0.65rem; }
.momentum-legal ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ml-gold);
}
.momentum-legal ol { counter-reset: ml-list; }
.momentum-legal ol li { counter-increment: ml-list; }
.momentum-legal ol li::before {
  content: counter(ml-list); position: absolute; left: 0; top: 0;
  font-family: var(--ml-font-head); font-size: 0.8rem; font-weight: 600;
  color: var(--ml-gold); line-height: 1.9;
}

/* ---- Links -------------------------------------------------------------- */
.momentum-legal a {
  color: var(--ml-navy); text-decoration: none;
  border-bottom: 1px solid var(--ml-gold); padding-bottom: 1px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.momentum-legal a:hover { color: var(--ml-gold-soft); border-color: var(--ml-gold-soft); }
.momentum-legal a:focus-visible { outline: 2px solid var(--ml-gold); outline-offset: 3px; border-radius: 2px; }

/* ---- Dividers ----------------------------------------------------------- */
.momentum-legal hr { border: 0; height: 1px; background: var(--ml-rule); margin: 2.5rem 0; }

/* ---- Meta (final line — effective date / version) ----------------------- */
.momentum-legal > p:last-child {
  font-size: 0.85rem;
  color: var(--ml-ink-muted);
  letter-spacing: 0.01em;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ml-rule);
}

/* ---- Motion / mobile ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) { .momentum-legal a { transition: none; } }