/* Minimal aviation-styled legal page. Targets readability over chrome —
   this is what someone reading Privacy/Terms in an App Store listing
   review tap will see. */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #0f1722;
  --text-muted: #5b6776;
  --accent: #0d8c5e;
  --border: #e3e7ec;
  --max: 720px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  font-size: 17px;
}

header,
main,
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding-top: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.back {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
}

.back:hover {
  color: var(--accent);
}

h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.effective {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 32px 24px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.2px;
}

h2:first-child {
  margin-top: 0;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

ul li {
  margin-bottom: 6px;
}

a {
  color: var(--accent);
}

footer {
  margin-top: 32px;
  margin-bottom: 64px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

footer p {
  margin: 6px 0;
}

footer .meta {
  font-size: 12px;
  opacity: 0.75;
}

footer code {
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Hosted legal pages get viewed cold by App Reviewers + by users on
   slow conn. Dark mode is a courtesy. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1722;
    --surface: #172538;
    --text: #f0f3f7;
    --text-muted: #9aa6b4;
    --border: #2a3949;
    --accent: #5dd6a1;
  }
}
