/* Shared by /privacy and /terms. One column of prose on the same Ink ground as
   the marketing page, with none of its machinery: no scrollcraft, no script,
   no seam. Values are the dark set from apps/web/src/app/globals.css, the same
   ones index.html declares inline. */
:root {
  --ground:    #1e1e1b;
  --surface:   #232320;
  --ink:       #f4f3f0;
  --ink-soft:  #c9c6bd;
  --muted:     #8a877f;
  --accent:    #ff7a2e;
  --hairline:  #33332f;
  --font-display: "Sora", "IBM Plex Sans", system-ui, sans-serif;
  --font-text:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-soft);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.66;
  letter-spacing: 0.002em;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

/* --- the bar: the lockup, and the way back ------------------------------- */
.bar {
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 2;
  background: color-mix(in oklab, var(--ground) 92%, transparent);
  backdrop-filter: blur(8px);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.lockup {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); text-decoration: none; line-height: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.04em;
}
.lockup svg { display: block; flex: 0 0 auto; }
.lockup b { font-weight: 700; transform: translateY(-1px); }
.bar nav { display: flex; gap: 1.25rem; font-size: 0.875rem; }

/* --- the document -------------------------------------------------------- */
main { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
h1 {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: clamp(2rem, 3.2vw + 0.75rem, 2.9rem); line-height: 1.08; letter-spacing: -0.03em;
  margin: 0 0 0.5rem; text-wrap: balance;
}
.dates { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); margin: 0 0 2rem; }
.summary {
  border: 1px solid var(--hairline); border-left: 2px solid var(--accent);
  border-radius: 6px; background: var(--surface);
  padding: 1.25rem 1.5rem; margin: 0 0 2.5rem;
}
.summary p { margin: 0; color: var(--ink); font-size: 1.125rem; line-height: 1.5; text-wrap: pretty; }
.summary p + p { margin-top: 0.75rem; font-size: 1rem; color: var(--ink-soft); }

h2 {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em;
  margin: 2.75rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline);
  text-wrap: balance;
}
h2 .n { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); margin-right: 0.6rem; letter-spacing: 0; }
h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; margin: 1.75rem 0 0.5rem; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--muted); }
b, strong { color: var(--ink); font-weight: 600; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code { font-family: var(--font-mono); font-size: 0.875em; color: var(--ink); background: #2b2b27; padding: 0.1em 0.35em; border-radius: 4px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--hairline); }
th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
td:first-child { color: var(--ink); white-space: nowrap; }
.scroll { overflow-x: auto; }

.note { font-size: 0.875rem; color: var(--muted); }

/* --- the foot ------------------------------------------------------------ */
footer { border-top: 1px solid var(--hairline); margin-top: 3.5rem; padding: 1.75rem 0 3rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; justify-content: space-between; font-size: 0.875rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

@media (max-width: 34rem) {
  .bar nav { gap: 0.9rem; font-size: 0.8125rem; }
  td:first-child { white-space: normal; }
}
