/* Shared by privacy.html and terms.html. Both pages are the same shell around a
   different document key, so the styling lives here once rather than in each. */
:root {
  --bg: #F0FAFB;
  --panel: #FFFFFF;
  --cyan: #006A7C;
  --ink: #0C1A1F;
  --muted: #7A9BA3;
  --line: #DCEBEE;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 28px 22px 64px; }

/* Arrow only, no label. It is the one control on these pages, and the page it
   goes back to is the bear, so a word adds nothing. */
.back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--cyan);
  margin-bottom: 30px;
}
.back svg { width: 18px; height: 18px; display: block; }
.back:hover { background: color-mix(in srgb, var(--cyan) 8%, #fff); }

h1 {
  margin: 0 0 22px;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800; letter-spacing: -.025em;
}

.doc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  /* The document is plain text held in app_settings, so it is rendered as
     pre-wrap rather than parsed as markup. Nothing here injects HTML. */
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 15px;
}

.state { color: var(--muted); }

footer {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
footer a { color: var(--cyan); }
