/* Shared styling for the standalone legal pages (Terms, Privacy).
 *
 * Deliberately self-contained and independent of the map's style.css: these are
 * long-form documents, not map chrome, so they want a readable prose column
 * rather than the panel/pill layout. Colours still follow the viewer's
 * light/dark preference so the pages feel of a piece with the map.
 */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #ffffff;
  --text-primary: #14130f;
  --text-secondary: #52514e;
  --text-muted: #78766f;
  --border: rgba(11, 11, 11, 0.12);
  --accent: #b3311f;          /* the map's ember red, used for links */
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #161615;
    --text-primary: #f4f3ee;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --border: rgba(255, 255, 255, 0.12);
    --accent: #f5871f;        /* brighter ember so links carry on dark imagery */
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 22px 96px;
}

header.doc {
  margin-bottom: 8px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 26px;
}
.back:hover { color: var(--accent); }

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

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

h2 {
  font-size: 19px;
  margin: 34px 0 8px;
  letter-spacing: -0.005em;
}

p, li { color: var(--text-secondary); }
p { margin: 0 0 14px; }

ul { margin: 0 0 14px; padding-left: 22px; }
li { margin: 0 0 6px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--text-primary); }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 26px;
}
.callout p { margin: 0; color: var(--text-primary); }

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

footer.doc {
  color: var(--text-muted);
  font-size: 13px;
}
footer.doc a { color: var(--text-muted); }
footer.doc a:hover { color: var(--accent); }
