/* Privacy and terms pages. Standalone: they open without the app and load
   nothing from other servers (system fonts only). Colours follow the app. */
:root {
  --paper: #f4efe6;
  --surface: #fffdf8;
  --ink: #221e19;
  --ink-2: #4a433a;
  --muted: #6b6358;
  --line: #e2d9cb;
  --accent: #8a3517;
  --accent-soft: #f2e1d8;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #17150f;
    --surface: #211e18;
    --ink: #efe8dc;
    --ink-2: #d6cdbf;
    --muted: #a59b8c;
    --line: #36312a;
    --accent: #e39a74;
    --accent-soft: #3a2a21;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --paper: #17150f;
  --surface: #211e18;
  --ink: #efe8dc;
  --ink-2: #d6cdbf;
  --muted: #a59b8c;
  --line: #36312a;
  --accent: #e39a74;
  --accent-soft: #3a2a21;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.brand {
  font: 600 15px/1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.langs {
  display: flex;
  gap: 6px;
}

.langs button {
  font: 500 14px/1 system-ui, sans-serif;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.langs button[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}

h1 {
  font: 500 34px/1.2 Georgia, 'Times New Roman', serif;
  margin: 24px 0 4px;
}

h2 {
  font: 600 19px/1.35 Georgia, 'Times New Roman', serif;
  margin: 36px 0 8px;
}

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

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

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

.important {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  padding: 14px 18px;
}

.important p:first-child {
  margin-top: 0;
}

.important p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 15px;
}

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

tr:last-child td {
  border-bottom: 0;
}

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

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

code {
  font-size: 0.92em;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}
