/* ============================================================================
   Thrive — legal pages (privacy, terms)
   Standalone, no JS, no build step, no external requests. Mirrors the tokens
   in src/styles/tokens.css but stands alone deliberately: these two documents
   must render if every bundle on the site fails. Warm monochrome, adaptive,
   no serif, neon only as a rule/dot — never as text.
   ============================================================================ */

:root {
  --neon: #ff9d52;
  --neon-muted: #ff9d52;

  --bg: #fbfaf8;
  --surface: #f1efeb;
  --ink: #161310;
  --ink-dim: #666059;
  /* Small text only (dates, footer, rule under h3). The lighter #8a8682 sat at
     3.5:1 on this canvas, under the 4.5:1 minimum. */
  --ink-muted: #726d67;
  --line: rgba(0, 0, 0, 0.1);
  --rule: var(--neon-muted);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "Segoe UI", system-ui, "Helvetica Neue", sans-serif;

  --r-card: 24px;
  --r-btn: 999px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080807;
    --surface: #171614;
    --ink: #efedea;
    --ink-dim: #aaa49e;
    --ink-muted: #8f8a85;
    --line: rgba(255, 255, 255, 0.14);
    --rule: var(--neon);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: -0.011em;
  padding: 0 clamp(20px, 6vw, 48px) clamp(64px, 12vw, 140px);
}

.wrap {
  max-width: 44rem;
  margin-inline: auto;
}

/* --- Masthead ------------------------------------------------------------ */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: clamp(24px, 5vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--rule);
  flex: none;
}

.top__nav {
  display: flex;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
}

.pill[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
}

/* --- Head ---------------------------------------------------------------- */

header.head {
  padding: clamp(48px, 10vw, 104px) 0 clamp(28px, 5vw, 44px);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.dates {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.lede {
  margin-top: 26px;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-dim);
}

/* --- Summary card -------------------------------------------------------- */

.summary {
  margin: clamp(28px, 5vw, 40px) 0 clamp(40px, 7vw, 64px);
  padding: clamp(22px, 4vw, 32px);
  background: var(--surface);
  border-radius: var(--r-card);
}

.summary h2 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}

.summary ul {
  margin-top: 16px;
  padding-left: 1.1em;
}

.summary li + li {
  margin-top: 10px;
}

/* --- Body ---------------------------------------------------------------- */

section {
  padding-top: clamp(40px, 6vw, 64px);
}

h2 {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 .num {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

h3 {
  margin-top: 34px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p,
ul,
ol {
  margin-top: 16px;
}

ul,
ol {
  padding-left: 1.15em;
}

li + li {
  margin-top: 8px;
}

li > ul,
li > ol {
  margin-top: 8px;
}

strong {
  font-weight: 600;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink-muted);
}

a:hover {
  text-decoration-color: var(--ink);
}

hr {
  margin-top: clamp(48px, 8vw, 80px);
  border: 0;
  border-top: 1px solid var(--line);
}

.note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 2px solid var(--rule);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  font-size: 0.9375rem;
  color: var(--ink-dim);
}

.note p:first-child {
  margin-top: 0;
}

/* Definition-style data lists — stack on narrow screens */
.rows {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.rows > div {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 6px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rows dt {
  font-weight: 600;
  font-size: 0.9375rem;
}

.rows dd {
  font-size: 0.9375rem;
  color: var(--ink-dim);
}

@media (max-width: 640px) {
  .rows > div {
    grid-template-columns: 1fr;
  }
}

/* --- Foot ---------------------------------------------------------------- */

footer.foot {
  margin-top: clamp(48px, 8vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .top__nav,
  .pill {
    display: none;
  }
  .summary,
  .note {
    background: none;
    border: 1px solid #999;
  }
  a {
    text-decoration: none;
  }
}
