/* ============================================================
   CaseCatch — shared stylesheet
   Palette + typography translated from the CaseCatch design.
   Fonts are self-hosted (assets/fonts/) — latin subset only;
   glyphs outside it (→, …) fall back to the system stack.
   ============================================================ */

@font-face {
  font-family: 'Public Sans';
  src: url('assets/fonts/public-sans-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  src: url('assets/fonts/spectral-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  src: url('assets/fonts/spectral-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  src: url('assets/fonts/spectral-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  src: url('assets/fonts/spectral-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Surfaces */
  --paper:        #F7F5F0;
  --white:        #FFFFFF;
  --border:       #E3DED4;

  /* Ink / dark surfaces */
  --ink:          #10192A;  /* brand navy (logo, headings) */
  --navy:         #0F1B2D;  /* dark section background */
  --navy-strip:   #16233A;  /* footer conversion strip */
  --navy-deep:    #0B1422;  /* main footer */

  /* Gold */
  --gold:         #A8862F;  /* primary CTA / accents (large text & fills only) */
  --gold-ink:     #7A6120;  /* gold for small text on light (AA: 5.5:1 on paper) */
  --gold-light:   #C9A64B;  /* lighter accent (on dark) */
  --gold-dark:    #8F7226;  /* CTA hover on light */

  /* Text — all small-text values pass WCAG AA on their surface */
  --text:         #23262B;  /* body on paper */
  --text-2:       #4A5058;  /* secondary on paper */
  --taupe:        #6E6858;  /* muted taupe (5.2:1 on paper) */
  --gray-on-dark: #9AA3AF;  /* body on dark */
  --muted-dark:   #84909E;  /* muted on dark (5.3:1 on navy) */
  --footer-muted: #7C8898;  /* footer text (5.1:1 on navy-deep) */
  --cream:        #E9E5DC;  /* cream text on dark */

  /* Signal */
  --alert:        #E05B4E;  /* leak figure */

  /* Type */
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1140px;

  /* Z-index scale: 20 sticky header · 30 skip link. Nothing else layers. */
  --z-header: 20;
  --z-skip:   30;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Anchored sections land below the sticky header */
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

img, svg { display: block; }

/* Visible keyboard focus everywhere; dark sections get the light gold */
:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}
.calc :focus-visible,
.finalcta :focus-visible,
.convstrip :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-light); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: var(--z-skip);
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 18px;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* padding-block only: .section shares elements with .container, whose
   horizontal padding a `padding` shorthand here would silently erase */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

.rule-top    { border-top: 1px solid var(--border); }
.rule-bottom { border-bottom: 1px solid var(--border); }

/* ---------- Type helpers ---------- */
.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow--gold-light { color: var(--gold-light); }

.serif { font-family: var(--serif); }

h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg  { font-size: 16px; padding: 18px 32px; }
.btn--md  { font-size: 15px; padding: 16px 28px; }

/* Hover: dark gold + white text (hero primary) */
.btn--hero:hover { background: var(--gold-dark); color: var(--white); }
/* Hover: brighten to light gold (dark-section CTAs) */
.btn--bright:hover { background: var(--gold-light); }

.link-underline {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.link-underline:hover { color: var(--gold); }

.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  transition: box-shadow 0.25s ease;
}
.site-header.is-stuck {
  box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(16, 25, 42, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__lockup { display: flex; align-items: baseline; gap: 10px; }
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
}
@media (max-width: 560px) {
  .brand__tag { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 24px clamp(48px, 7vw, 88px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero__copy { flex: 1 1 480px; min-width: 300px; }
.hero__media { flex: 1 1 360px; min-width: 280px; }
.hero__title {
  margin: 0 0 24px;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.08;
}
.hero__lede {
  margin: 0 0 36px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-2);
  max-width: 540px;
}
.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero__figure {
  width: 100%;
  height: clamp(320px, 34vw, 460px);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero__figure img,
.hero__figure svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.fineprint { font-size: 13px; color: var(--taupe); }
.caption   { margin: 10px 0 0; font-size: 12px; color: var(--taupe); }

/* ============================================================
   CALCULATOR (dark)
   ============================================================ */
.calc { background: var(--navy); color: var(--cream); }
.calc__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  color: var(--white);
  max-width: 640px;
}
.calc__sub {
  margin: 0 0 48px;
  font-size: 16px;
  color: var(--gray-on-dark);
  max-width: 560px;
}
.calc__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
.calc__controls {
  flex: 1 1 400px;
  min-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.calc__field { display: flex; flex-direction: column; gap: 14px; }
.calc__field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.calc__label { font-size: 14px; font-weight: 600; color: var(--cream); }
.calc__value {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold-light);
}
.calc__assumptions {
  margin: 0;
  font-size: 12px;
  color: var(--muted-dark);
}
.calc__result {
  flex: 1 1 380px;
  min-width: 290px;
  border: 1px solid rgba(201, 166, 75, 0.35);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.calc__result-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-on-dark);
}
.calc__leak {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(46px, 6vw, 74px);
  line-height: 1.05;
  color: var(--alert);
  letter-spacing: -0.01em;
}
.calc__leak-sub { margin: 0 0 24px; font-size: 15px; color: var(--gray-on-dark); }
.calc__result-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hint-dark { font-size: 12px; color: var(--muted-dark); }

/* Range inputs (dark section only). --fill is set by app.js so the
   travelled part of the track reads gold. */
.calc input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right,
    var(--gold-light) var(--fill, 50%),
    rgba(255, 255, 255, 0.25) var(--fill, 50%));
  cursor: pointer;
}
.calc input[type="range"]:focus-visible { outline-offset: 8px; }
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid var(--navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.calc input[type="range"]:hover::-webkit-slider-thumb,
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid var(--navy);
  transition: transform 0.15s ease;
}
.calc input[type="range"]:hover::-moz-range-thumb,
.calc input[type="range"]:active::-moz-range-thumb { transform: scale(1.12); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how__title {
  margin: 0 0 24px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  max-width: 620px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}
.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px 20px;
  padding: 34px 0;
}
.step + .step { border-top: 1px solid var(--border); }
.step__num {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}
.step__title {
  margin: 2px 0 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}
.step__body { margin: 0; font-size: 15.5px; color: var(--text-2); max-width: 58ch; }
@media (max-width: 560px) {
  .step { grid-template-columns: 52px 1fr; padding: 28px 0; }
  .step__num { font-size: 32px; }
}

/* ============================================================
   PROOF / RESULTS
   ============================================================ */
.proof { background: var(--white); }
.proof__grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); }
.proof__copy { flex: 1 1 460px; min-width: 300px; }
.proof__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
}
.proof__lede { margin: 0 0 36px; font-size: 16px; color: var(--text-2); max-width: 520px; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.stat__num {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
}
.stat__label { margin: 4px 0 0; font-size: 13px; color: var(--taupe); }

.proof__aside {
  flex: 1 1 340px;
  min-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

/* Call player card */
.callcard { border: 1px solid var(--border); background: var(--paper); padding: 24px 24px 28px; }
.callcard__label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
}
.callcard__player { display: flex; align-items: center; gap: 16px; }
.callcard__play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.callcard__play:hover { background: var(--gold); color: var(--ink); }
.callcard__track { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.callcard__bar { height: 3px; background: #D8D2C4; border-radius: 2px; position: relative; }
.callcard__fill {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 0%; background: var(--gold); border-radius: 2px;
  transition: width 0.2s linear;
}
.callcard__meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--taupe);
}
.callcard__time { white-space: nowrap; }
.callcard__transcript {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
}
.callline { display: flex; flex-direction: column; gap: 2px; }
.callline__speaker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.callline__speaker--agent  { color: var(--gold); }
.callline__speaker--caller { color: var(--ink); }
.callline__text { font-size: 14px; color: var(--text-2); }
.callcard__disclaimer { margin: 14px 0 0; font-size: 11.5px; color: var(--taupe); }
.is-hidden { display: none !important; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__title {
  margin: 0 0 48px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  max-width: 560px;
}
.faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.faq__q {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.faq__a { margin: 0; font-size: 15.5px; color: var(--text-2); }

/* ============================================================
   PRICING ANCHOR
   ============================================================ */
.pricing__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 24px;
  text-align: center;
}
.pricing__line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.4;
  color: var(--ink);
}
.pricing__line em { color: var(--gold); font-style: italic; }

/* ============================================================
   FINAL CTA + FORM
   ============================================================ */
.finalcta { background: var(--navy); }
.finalcta__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 24px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
}
.finalcta__copy { flex: 1 1 400px; min-width: 300px; }
.finalcta__title {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  color: var(--white);
}
.finalcta__lede {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--gray-on-dark);
  max-width: 460px;
}
.finalcta__panel {
  flex: 1 1 440px;
  min-width: 300px;
  border: 1px solid rgba(201, 166, 75, 0.35);
  padding: clamp(28px, 4vw, 44px);
}

.audit-form { display: flex; flex-direction: column; gap: 20px; }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--gray-on-dark); }
.field label .optional { font-weight: 400; color: var(--muted-dark); }

.audit-form input,
.audit-form select,
.audit-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s ease;
}
.audit-form textarea { resize: vertical; }
.audit-form select { appearance: auto; }
.audit-form select option { color: var(--ink); }
.audit-form input:focus,
.audit-form select:focus,
.audit-form textarea:focus { border-color: var(--gold-light); }
.audit-form input::placeholder,
.audit-form textarea::placeholder { color: var(--muted-dark); }

/* Flag a field only after the user has interacted with it */
.audit-form input:user-invalid,
.audit-form select:user-invalid,
.audit-form textarea:user-invalid { border-color: #EE9A8E; }

.form-fineprint { font-size: 12px; color: var(--muted-dark); }

.form-error { margin: 0; font-size: 13px; color: #EE9A8E; }
.form-error a { color: var(--gold-light); text-decoration: underline; }

.audit-success { display: flex; flex-direction: column; gap: 14px; padding: 12px 0; }
.audit-success__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--white);
}
.audit-success__body { margin: 0; font-size: 16px; color: var(--gray-on-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.convstrip {
  background: var(--navy-strip);
  border-top: 1px solid rgba(201, 166, 75, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.convstrip__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.convstrip__line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.3;
  color: var(--white);
}

.site-footer { background: var(--navy-deep); color: var(--muted-dark); font-size: 14px; }
.site-footer__top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 72px) 24px clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand__lockup { display: flex; align-items: center; gap: 12px; }
.footer-brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--white);
}
.footer-brand__desc { margin: 0; color: var(--gray-on-dark); max-width: 280px; }
.footer-brand__loc { color: var(--muted-dark); }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-col__head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.footer-col a { color: var(--gray-on-dark); text-decoration: none; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold-light); }

.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.legal-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  font-size: 12.5px;
  color: var(--footer-muted);
}
.legal-bar__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.legal-bar__links a { color: var(--footer-muted); text-decoration: none; transition: color 0.15s ease; }
.legal-bar__links a:hover { color: var(--gold-light); }
.legal-bar__note { display: flex; flex-direction: column; gap: 4px; text-align: right; max-width: 560px; }
@media (max-width: 720px) {
  .legal-bar__note { text-align: left; }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; line-height: 1.65; }
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.legal-main {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 24px clamp(64px, 9vw, 100px);
  flex: 1;
}
.legal-main h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.1;
}
.legal-main .effective { margin: 0 0 48px; font-size: 14px; color: var(--taupe); }
.legal-body { display: flex; flex-direction: column; gap: 36px; font-size: 15.5px; color: var(--text-2); }
.legal-body h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
}
.legal-body p { margin: 0; }
.legal-body a { color: var(--gold); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }

.legal-footer { background: var(--navy-deep); color: var(--footer-muted); font-size: 12.5px; }
.legal-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
}

/* ============================================================
   SCROLL REVEALS
   Content is hidden only when (a) the visitor allows motion and
   (b) app.js confirmed IntersectionObserver support by adding
   .reveal-ready to <html>. No JS, old browser, or reduced motion
   → everything renders visible, instantly.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--reveal-i, 0) * 90ms);
  }
  html.reveal-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}
