/* Shared stylesheet for the public legal/support pages served at
   /legal/privacy, /legal/terms, and /support.

   Same-origin only: the app's CSP is `style-src 'self'` with no
   'unsafe-inline' and no hash sources for styles (app.py
   _content_security_policy), so these pages must link this file rather
   than carry a <style> block or style="" attributes. No web fonts, no
   scripts, no third-party assets — the pages have to render for an App
   Store reviewer over a tunnel with nothing else reachable. */

:root {
  --bg: #ffffff;
  --surface: #f4f7f5;
  --border: #d9e2dc;
  --text: #101713;
  --muted: #4d5f56;
  --accent: #0f7a4a;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d0b;
    --surface: #111814;
    --border: #263a2e;
    --text: #eef5ef;
    --muted: #93a89b;
    --accent: #3dd68c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 28px 20px calc(64px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

h2 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 32px 0 8px;
}

p, li { margin: 0 0 12px; }

ul, ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* Identifiers and endpoint names appear inline in the privacy copy; keep
   them at reading size (a bare monospace default renders ~15% small on
   iOS) and let a long token wrap instead of widening the page. */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94em;
  overflow-wrap: anywhere;
}

.meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 4px;
}

.lede {
  color: var(--muted);
  margin: 0 0 20px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 16px;
}

.callout p:last-child { margin-bottom: 0; }

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

footer {
  color: var(--muted);
  font-size: 15px;
}

footer a { margin-right: 14px; }
