/* Legal pages (terms, privacy, cookies...). Versioned name: nginx caches .css for 30 days, immutable.
   Change anything here? Save it as legal-2.css and update the <link> in every page. */
:root {
  --text: #0A1F3B;
  --muted: #4A5C75;
  --accent: #008AFC;
  --border: #E4EBF3;
  --soft: #F5F8FC;
  --todo-bg: #FFF4CC;
  --todo-text: #6B4E00;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 16px/1.7 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; min-height: 64px; }
.site-header img { display: block; height: 28px; width: auto; }

main { padding: 40px 0 56px; }

h1, h2, h3 { font-family: Manrope, Inter, system-ui, sans-serif; line-height: 1.25; color: var(--text); }
h1 { font-size: 2rem; font-weight: 800; margin: 0 0 8px; }
h2 { font-size: 1.35rem; font-weight: 700; margin: 48px 0 12px; padding-top: 8px; scroll-margin-top: 16px; }
h3 { font-size: 1.075rem; font-weight: 700; margin: 28px 0 8px; }

p, ul, ol, table, dl { margin: 0 0 16px; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 6px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }

.updated { color: var(--muted); font-size: .925rem; margin-bottom: 24px; }
.lead { font-size: 1.075rem; color: var(--muted); }
.note { background: var(--soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }

.toc { border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 24px 0 8px; background: var(--soft); }
.toc h2 { font-size: 1rem; margin: 0 0 8px; padding: 0; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 280px; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: .925rem; line-height: 1.55; }
.table-scroll table { margin: 0; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; background: var(--soft); }
td code, p code, li code { font-size: .875em; background: var(--soft); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; }

dl dt { font-weight: 600; }
dl dd { margin: 0 0 12px; }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.site-footer p { margin: 0 0 6px; }
.site-footer p a { color: var(--accent); }

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; margin-top: 40px; }
  main { padding-top: 28px; }
}

@media print {
  .site-header, .site-footer, .toc { display: none; }
  a { color: inherit; }
}
