/* Shared by /privacy and /terms-of-service. Tokens match the landing page (Night Ledger):
   white or black canvas, lime only as a fill with moss on top. */
:root {
  --canvas: #FFFFFF;
  --surface: #F2F3EF;
  --well: rgba(28, 41, 0, .07);
  --hairline: rgba(14, 15, 12, .12);
  --text: #0E0F0C;
  --secondary: #454745;
  --quiet: #6A6C6A;
  --lime: #CDFF4F;
  --lime-deep: #BDF23A;
  --moss: #1C2900;
  --nav-bg: rgba(255, 255, 255, .78);
  --font-display: "Archivo", "SF Pro Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --surface: #121411;
    --well: rgba(255, 255, 255, .09);
    --hairline: rgba(255, 255, 255, .10);
    --text: #F3F5F1;
    --secondary: #A9AEA5;
    --quiet: #80857C;
    --nav-bg: rgba(0, 0, 0, .66);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--canvas);
}
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 760px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap.wide { max-width: 1200px; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav .links { display: flex; gap: 22px; margin-left: auto; }
.nav .links a { color: var(--secondary); text-decoration: none; font-size: 15px; font-weight: 550; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--text); }
.nav .links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Document */
.doc { padding-block: clamp(40px, 7vw, 80px) clamp(64px, 9vw, 112px); }
.doc h1 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 66%;
  text-transform: uppercase; line-height: .86; letter-spacing: -.005em;
  font-size: clamp(56px, 10vw, 104px); margin: 0; text-wrap: balance;
}
.dates { margin: 18px 0 0; font-size: 15px; color: var(--quiet); }
.summary {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 36px; padding: clamp(22px, 4vw, 32px); border-radius: 28px; background: var(--surface);
}
.summary p { margin: 0; font-size: clamp(17px, 2vw, 19px); font-weight: 500; line-height: 1.5; text-wrap: pretty; }
.summary p.strong { font-weight: 700; }

.doc section { margin-top: clamp(40px, 6vw, 56px); }
.doc h2 {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 14px; font-size: clamp(22px, 2.6vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
}
.doc h2 .n {
  font-family: var(--font-display); font-weight: 800; font-stretch: 66%;
  font-size: 1.25em; color: var(--quiet); min-width: 1.1em;
}
.doc h3 { margin: 22px 0 8px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.doc p { margin: 0 0 14px; text-wrap: pretty; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li { margin-bottom: 8px; padding-left: .2em; }
.doc li::marker { color: var(--quiet); }
.doc strong { font-weight: 650; }
.muted { color: var(--secondary); }
.doc code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .84em;
  padding: 1px 6px; border-radius: 6px; background: var(--well); overflow-wrap: anywhere;
}

.quote {
  margin: 4px 0 18px; padding: 18px 22px; border-radius: 20px; background: var(--surface);
  font-size: 18px; font-weight: 600; line-height: 1.5;
}
.quote cite { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; font-style: normal; color: var(--secondary); }

.table-scroll { overflow-x: auto; margin: 4px 0 18px; border-radius: 20px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; }
th { font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--secondary); }
tr + tr td, tbody tr:first-child td { border-top: 1px solid var(--hairline); }
td:first-child { font-weight: 600; width: 44%; }

.contact { display: inline-flex; padding: 3px 12px; border-radius: 999px; background: var(--well); font-weight: 600; text-decoration: none; }

footer { border-top: 1px solid var(--hairline); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 28px; font-size: 14px; color: var(--quiet); }
footer .brand { font-size: 16px; color: var(--text); }
footer .brand img { width: 24px; height: 24px; border-radius: 6px; }
footer .links { display: flex; gap: 18px; }
footer .links a { color: var(--secondary); text-decoration: none; }
footer .links a:hover { color: var(--text); text-decoration: underline; }
footer .r { margin-left: auto; }
@media (max-width: 640px) { footer .r { margin-left: 0; } }
