/* Shared styling for the standalone legal pages (/privacy, /terms).
 *
 * Deliberately self-contained: these documents must render with no app
 * bundle, no fonts to fetch and no JavaScript. An OAuth reviewer, a crawler
 * or a user on a bad connection has to be able to read them. The palette is
 * lifted from src/styles.css so they still look like the same product. */

:root {
  --s-0: #060709;
  --s-1: #0b0d11;
  --s-2: #12151a;
  --line: #2b313b;
  --line-soft: #1d222a;
  --text: #e8ecf2;
  --text-dim: #9aa4b2;
  --text-faint: #5f6875;
  --amber: #ff9d16;
  --blue: #1f8fff;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--s-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem 6rem; }

header.doc { border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 2.5rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.75rem;
}

h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 0.75rem; letter-spacing: -0.02em; text-wrap: balance; }

.dates { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); margin: 0; }

h2 {
  font-size: 1.15rem;
  margin: 3rem 0 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 .num { font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); margin-right: 0.6rem; }

h3 { font-size: 0.95rem; margin: 1.8rem 0 0.5rem; color: var(--text); }

p, li { color: var(--text-dim); }
p { margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }
strong { color: var(--text); font-weight: 600; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--s-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  color: var(--text);
}

/* The lead statement: what this thing is for. Both documents open with it,
 * because scope is the first thing a reader (or a reviewer) needs. */
.lead {
  background: var(--s-1);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 2rem;
}
.lead p:last-child { margin-bottom: 0; }
.lead p { color: var(--text); }

.callout {
  background: var(--s-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Anything the operator must replace before publishing. Loud on purpose. */
.fill {
  background: rgba(255, 157, 22, 0.14);
  border-bottom: 1px dashed var(--amber);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 0.05em 0.3em;
  border-radius: 2px;
}

table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; }
.scroll { overflow-x: auto; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--text); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
td { color: var(--text-dim); }

footer.doc {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-faint);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.caps { font-variant-caps: all-small-caps; letter-spacing: 0.04em; }
