/* Service pages: Privacy, Terms, Support.
   Dark by default, same tokens as the app (Assets.xcassets/Colors).
   ?theme=light switches to the light set below (see theme.js). */
:root {
  color-scheme: dark;
  --bg: #161A2E;         /* bg-canvas */
  --surface: #1F2440;    /* bg-surface */
  --line: rgba(243, 236, 223, .13);  /* border-default */
  --ink: #F3ECDF;        /* text-primary */
  --muted: #A6A3B4;      /* text-muted */
  --accent: #E3B04B;     /* text-accent */
  --glow: radial-gradient(70% 320px at 50% -120px, rgba(227, 176, 75, .10), transparent);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F3ECDF; --surface: #FBF8F2; --line: rgba(22, 26, 46, .12);
  --ink: #161A2E; --muted: #5E5A6E; --accent: #7E570C;
  --glow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--glow), var(--bg); background-repeat: no-repeat; color: var(--ink);
  font: 17px/1.6 Figtree, -apple-system, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 28px 20px calc(64px + env(safe-area-inset-bottom)); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
header.site { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 36px; flex-wrap: wrap; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: 24px; color: var(--ink); text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; padding: 10px 0; }
nav.site a:first-child { margin-left: 0; }
nav.site a:hover, nav.site a[aria-current] { color: var(--ink); }
h1 { font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: 40px; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 8px; }
h2 { font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.2; margin: 40px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p.updated { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
a { color: var(--accent); text-underline-offset: 2px; }
strong { font-weight: 600; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); border-radius: 12px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }
.card p { margin: 6px 0; }
.card.help { border-color: var(--accent); }
footer.site { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
