/* Shared stylesheet for the hosted legal pages (Privacy Policy, Terms
   of Service, landing). Deliberately restrained — readable, print-
   friendly, mobile-friendly. Typography-only, no images, no tracking. */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5f6b7a;
  --border: #e5e7eb;
  --accent: #0b8f5a;
  --code-bg: #f6f8fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --text: #e6e7eb;
    --muted: #9aa3b2;
    --border: #22262d;
    --accent: #22c55e;
    --code-bg: #161a20;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
header .app {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}
header h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
}
header .meta {
  font-size: 13px;
  color: var(--muted);
}
header .meta strong { color: var(--text); font-weight: 600; }

h1, h2, h3 { line-height: 1.3; }
h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
}
h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  background: var(--code-bg);
  border-radius: 6px;
}
code {
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 600; }

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--muted); }

/* Table-of-contents rendered at top of each doc. */
nav.toc {
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--code-bg);
  border-radius: 10px;
  font-size: 14px;
}
nav.toc ol { margin: 0; padding-left: 20px; }

/* Print: remove chrome, maximize readability. */
@media print {
  main { max-width: none; padding: 0; }
  header { border: none; }
  nav.toc { display: none; }
  a { color: inherit; text-decoration: none; }
}
