/* =========================================================
   The Man Who Won't Talk — legal pages
   (terms, privacy, refunds)

   Loaded after styles.css. Tokens, fonts, .wrap and the
   footer all come from there. This file only adds a solid
   header and the long-form text styles the landing page
   never needed.
   ========================================================= */

.legal-page {
  --lg-paper:  var(--paper);
  --lg-card:   var(--card);
  --lg-ink:    var(--teal);
  --lg-text:   var(--ink);
  --lg-text-2: var(--ink-2);
  --lg-line:   var(--line);
  --lg-accent: var(--clay-dk);
  --lg-soft:   var(--clay);
  --lg-ui:     var(--ui);
  --lg-display: var(--display);
  --lg-body:   var(--body);
  background: var(--lg-paper);
  color: var(--lg-text);
}

/* The landing page keeps room clear for the phone buy bar.
   These pages have no buy bar. */
@media (max-width: 899px) { body.legal-page { padding-bottom: 0; } }

/* ---------------------- Header ---------------------- */
/* The landing page header floats over a dark hero and is
   driven by script.js. These pages have no hero, so they
   get a solid one that needs no JavaScript. */
.legal-bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--lg-paper);
  border-bottom: 1px solid var(--lg-line);
  color: var(--lg-ink);
}
.legal-bar-in {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 18px;
  min-height: 56px;
  padding-top: 11px; padding-bottom: 11px;
}
.legal-bar .mark { color: var(--lg-ink); margin-right: auto; }
.legal-bar .mark-rule { background: var(--lg-soft); }

.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.legal-nav a {
  font-family: var(--lg-ui);
  font-size: 13.5px; font-weight: 400; letter-spacing: .03em;
  text-decoration: none;
  color: var(--lg-text-2);
  padding: 3px 0;
  border-bottom: 1px solid transparent;
}
.legal-nav a:hover { color: var(--lg-ink); border-bottom-color: currentColor; }
.legal-nav a[aria-current="page"] {
  color: var(--lg-accent);
  border-bottom-color: var(--lg-soft);
}
@media (max-width: 440px) { .legal-nav { width: 100%; margin-left: 0; } }

/* -------------------- Page head --------------------- */
.legal { padding: 34px 0 0; }
@media (min-width: 768px) { .legal { padding-top: 58px; } }

.legal-col { max-width: 800px; margin-inline: auto; }

.legal-kicker {
  display: block;
  padding-top: 12px;
  border-top: 2px solid var(--lg-soft);
  max-width: 300px;
  font-family: var(--lg-ui);
  font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--lg-accent);
  margin: 0 0 18px;
}

.legal h1 {
  font-family: var(--lg-display);
  font-weight: 500;
  font-size: clamp(29px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -.022em;
  color: var(--lg-ink);
  margin: 0;
  text-wrap: balance;
}

.legal-lede {
  margin: 20px 0 0;
  font-family: var(--lg-body);
  font-size: clamp(18px, 2.3vw, 20.5px);
  line-height: 1.54;
  color: var(--lg-text-2);
  max-width: 58ch;
}

.legal-updated {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 2px solid var(--lg-soft);
  font-family: var(--lg-ui);
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--lg-text-2);
}

/* ---------------------- Body ------------------------ */
.legal-body {
  margin-top: 32px;
  font-family: var(--lg-body);
  font-size: 18px;
  line-height: 1.68;
  color: var(--lg-text);
  max-width: 68ch;
}
@media (min-width: 768px) { .legal-body { font-size: 18.5px; } }

.legal-body :where(p, ul, ol, dl, h2, h3) { margin: 0; }
.legal-body > * + * { margin-top: 1.05em; }

.legal-body h2 {
  font-family: var(--lg-display);
  font-weight: 500;
  font-size: clamp(21px, 3.1vw, 27px);
  line-height: 1.2;
  letter-spacing: -.016em;
  color: var(--lg-ink);
  margin-top: 2.05em;
  text-wrap: balance;
}
.legal-body > h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-family: var(--lg-ui);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--lg-ink);
  margin-top: 1.7em;
}

.legal-body strong { color: var(--lg-ink); font-weight: 600; }

.legal-body a {
  color: var(--lg-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  word-break: break-word;
}
.legal-body a:hover { color: var(--lg-ink); }

.legal-body ul, .legal-body ol {
  display: grid; gap: 9px;
  padding-left: 0; list-style: none;
}
.legal-body ul li { position: relative; padding-left: 21px; }
.legal-body ul li::before {
  content: ""; position: absolute; left: 1px; top: .84em;
  width: 11px; height: 1px;
  background: var(--lg-soft);
}
.legal-body ol { counter-reset: lg; }
.legal-body ol li { position: relative; padding-left: 29px; counter-increment: lg; }
.legal-body ol li::before {
  content: counter(lg) ".";
  position: absolute; left: 0; top: 0;
  font-family: var(--lg-ui); font-weight: 500;
  color: var(--lg-accent);
}

/* The plain-words summary at the top of a page */
.legal-note {
  padding: 18px 22px;
  background: var(--lg-card);
  border: 1px solid var(--lg-line);
  border-top: 2px solid var(--lg-soft);
  border-radius: 0 0 2px 2px;
  font-size: 17.5px;
}
.legal-note > * + * { margin-top: .7em; }

/* How-long-we-keep-it pairs */
.legal-pairs { display: grid; gap: 0; }
.legal-pairs > div { padding: 13px 0; border-top: 1px solid var(--lg-line); }
.legal-pairs > div:last-child { border-bottom: 1px solid var(--lg-line); }
.legal-pairs dt { font-family: var(--lg-ui); font-weight: 500; font-size: 15.5px; color: var(--lg-ink); }
.legal-pairs dd { margin: 4px 0 0; color: var(--lg-text-2); }

/* ------------------ Foot of the page ---------------- */
.legal-back {
  max-width: 68ch;
  margin: 48px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--lg-line);
  font-family: var(--lg-ui);
  font-size: 15px;
}
.legal-back a {
  color: var(--lg-accent); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
}
.legal-back a:hover { color: var(--lg-ink); }

.legal-other {
  max-width: 68ch;
  margin: 18px 0 0;
  padding-bottom: 62px;
  font-size: 16px;
  color: var(--lg-text-2);
}
.legal-other a {
  color: var(--lg-accent);
  text-decoration: underline; text-underline-offset: 2px;
}
.legal-other a:hover { color: var(--lg-ink); }
