/* The public legal pages: /privacy and /terms (privacy.html, terms.html).
 *
 * A linked stylesheet from this origin, not a <style> block, so the pages ask
 * nothing of the site's Content-Security-Policy beyond 'self' (backend/src/spa.ts).
 * No scripts and no web fonts: the pages must read the same to a crawler, a
 * reviewer and a phone on a slow connection. */

:root {
  color-scheme: light dark;
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #57534e;
  --rule: #e7e5e4;
  --panel: #f5f5f4;
  --link: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a09;
    --fg: #e7e5e4;
    --muted: #a8a29e;
    --rule: #292524;
    --panel: #1c1917;
    --link: #93c5fd;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.65 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  overflow-wrap: break-word;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

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

.brand {
  color: var(--fg);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a {
  margin-left: 20px;
}

.site-nav a:first-child {
  margin-left: 0;
}

.site-nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: 44px 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
}

h3 {
  margin: 28px 0 8px;
  font-size: 1.075rem;
  line-height: 1.35;
}

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

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin: 6px 0;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

.updated {
  margin: 0 0 28px;
  color: var(--muted);
}

.summary {
  margin: 0 0 28px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.summary > :last-child {
  margin-bottom: 0;
}

.summary h2,
.toc h2 {
  margin-top: 0;
}

.toc ol {
  columns: 2 240px;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
  margin: 2px 0;
}

.table-wrap {
  margin: 0 0 16px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

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

th {
  font-weight: 600;
}

thead th {
  border-bottom-width: 2px;
}

code {
  padding: 1px 4px;
  font:
    0.875em ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  background: var(--panel);
  border-radius: 4px;
  overflow-wrap: break-word;
}

.site-footer {
  margin-top: 56px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
  border-top: 1px solid var(--rule);
}

.site-footer a {
  margin-right: 16px;
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.65rem;
  }

  th,
  td {
    padding: 6px 8px;
  }
}

@media print {
  .site-nav,
  .toc {
    display: none;
  }

  a {
    color: inherit;
  }
}
