/* Shared styling for the published legal and support pages.
   These are plain static files in `public/`, deliberately independent of the app bundle:
   a page that explains what the app does with your data must render even when the app does not. */

:root {
  color-scheme: light dark;
  --bg: #f2f5f1;
  --surface: #ffffff;
  --text: #15181a;
  --muted: #5b6560;
  --line: #dde3dd;
  --accent: #4a7c1e;
  --accent-surface: #eaf3d9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d0e;
    --surface: #14181a;
    --text: #eef2ec;
    --muted: #9aa5a0;
    --line: #262d2e;
    --accent: #c6ff3d;
    --accent-surface: #1b2412;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 16px 96px;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.65 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
}

header.top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

nav.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
}

nav.top-links a {
  color: var(--muted);
  text-decoration: none;
}

nav.top-links a:hover,
nav.top-links a[aria-current='page'] {
  color: var(--text);
}

nav.top-links a[aria-current='page'] {
  font-weight: 600;
}

h1 {
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

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

.dates {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 20px 4px;
  margin: 0 0 32px;
}

.summary h2 {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
  font-size: 18px;
}

.callout {
  background: var(--accent-surface);
  border-radius: 14px;
  padding: 18px 20px 4px;
  margin: 24px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 16px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
}

footer.bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

footer.bottom a {
  color: var(--muted);
}

code {
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}
