/* Terms / Privacy (Figma "Legal pages"). Daylight by default, Ember in dark mode — same tokens as the app. */
:root {
  --bg: #F1ECE6; --card: #FFFCF9; --text: #1E1A17; --muted: rgba(30,26,23,.56); --border: rgba(30,26,23,.1);
  --control: rgba(30,26,23,.06); --on: #1E1A17; --on-text: #FFFCF9; --hot: #F2591C;
  --sans: -apple-system, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0909; --card: #17110F; --text: #F3EEE8; --muted: rgba(243,238,232,.56); --border: rgba(255,255,255,.08);
    --control: rgba(255,255,255,.08); --on: #F3EEE8; --on-text: #17110F; --hot: #FF8A50;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 var(--sans); }
.wrap { max-width: 720px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 28px) 20px calc(env(safe-area-inset-bottom) + 48px); }
header.top { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
header.top .brand { display: flex; color: var(--text); text-decoration: none; margin-right: auto; }
header.top .brand .logo { height: 18px; width: auto; display: block; }
.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--control); color: var(--text);
  font: 600 13px var(--sans); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.pill[aria-current="true"] { background: var(--on); color: var(--on-text); }
h1 { font-size: 32px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -.01em; text-wrap: balance; }
.updated { color: var(--muted); font-size: 13px; font-weight: 500; margin: 0 0 22px; }
.summary { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 20px; margin: 0 0 18px; }
.summary h2 { font-size: 15px; margin: 0 0 6px; }
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li { margin: 4px 0; }
nav.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
h2 { font-size: 20px; line-height: 1.4; margin: 36px 0 10px; scroll-margin-top: 16px; text-wrap: balance; }
h3 { font-size: 16px; margin: 20px 0 6px; }
p, li { overflow-wrap: anywhere; }
ul, ol { padding-left: 1.3em; }
li { margin: 6px 0; }
.note { background: var(--control); border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.table { overflow-x: auto; margin: 10px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--muted); font-size: 13px; }
a { color: var(--hot); }
footer.bottom { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; }
footer.bottom a { color: var(--muted); text-decoration: none; font-weight: 500; }
@media (max-width: 480px) { h1 { font-size: 28px; } body { font-size: 15.5px; } }
/* Opened from the apps (?app=1): no site header/footer, the app has its own chrome */
body.in-app header.top .brand, body.in-app footer.bottom { display: none; }

/* Keep a short run of links on one line (creators: "1 · 2 · 3 · 4") */
.nowrap { white-space: nowrap; }
