/* Whitelist This — legal pages.
 * Brand v1.0 (Brando, 2026-06-14). Geist + Geist Mono. #2952CC accent.
 * Dark-first. No shadows. No gradients. Restraint over flourish. */

:root {
  /* Dark mode (default). Brand says: widgets are dark-only;
   * for in-app and web we offer light parity. Web defaults dark. */
  --bg: #0a0f1a;
  --surface: #131a28;
  --surface-muted: #1b2436;
  --divider: rgba(255, 255, 255, 0.08);
  --text-primary: #eff2f7;
  --text-secondary: #b1bcd3;
  --text-muted: #7787a3;
  --accent: #2952cc;
  --accent-soft: #1b3380;
  --warning: #e8a33d;
  --error: #e54b5c;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-muted: #edf0f5;
    --divider: rgba(10, 15, 26, 0.08);
    --text-primary: #0a0f1a;
    --text-secondary: #384259;
    --text-muted: #6b7891;
    --accent: #2952cc;
    --accent-soft: #eaf0fd;
    --warning: #b07724;
    --error: #c03847;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
}

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px;
  border-bottom: 1px solid var(--divider);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
}

.brand-name { font-size: 15px; }

.site-nav {
  display: inline-flex;
  gap: 20px;
  font-size: 14px;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-nav a:hover { color: var(--text-primary); }

/* ---------- Article ---------- */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

main.landing {
  padding: 96px 24px 80px;
}

article > h1 {
  font-family: "Geist", inherit;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

article > p.meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}

article p.meta strong {
  color: var(--text-secondary);
  font-weight: 500;
}

article h2 {
  font-family: "Geist", inherit;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

article h3 {
  font-family: "Geist", inherit;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  margin: 28px 0 8px;
}

article p,
article ul,
article ol,
article table {
  margin: 0 0 16px;
  color: var(--text-primary);
}

article ul, article ol { padding-left: 24px; }
article li { margin: 6px 0; }
article li > p { margin: 4px 0; }

article strong { font-weight: 600; }

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

article a:hover { text-decoration-thickness: 2px; }

article hr {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 32px 0;
}

article code,
article kbd,
article samp {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--surface-muted);
  padding: 1px 5px;
  border-radius: 4px;
}

article pre {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}

article pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Tables — used in §16 of TOS and the storage table in privacy. */
article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

article thead { background: var(--surface); }

article th,
article td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}

article th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.01em;
}

article blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}

/* ---------- Landing ---------- */

.landing .eyebrow {
  font-family: "Geist", inherit;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.landing h1 {
  font-family: "Geist", inherit;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.landing .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 560px;
}

.landing .links {
  font-size: 15px;
  color: var(--text-muted);
}

.landing .links a {
  color: var(--accent);
  text-decoration: none;
}
.landing .links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover { color: var(--text-primary); }

/* ---------- Small screens ---------- */

@media (max-width: 540px) {
  article > h1 { font-size: 30px; }
  .landing h1 { font-size: 34px; }
  main { padding: 32px 20px 64px; }
  main.landing { padding: 64px 20px 64px; }
  .site-header { padding: 16px 20px; }
}
