/* Legal pages share the landing page's colour tokens. */
:root {
  color-scheme: light;
  --brand: #0b5cff;
  --brand-2: #22d3ee;
  --brand-tint: #edf4ff;
  --ink: #17171f;
  --muted: #626277;
  --bg: #ffffff;
  --bg-low: #f3f3f7;
  --line: #e9e9f0;
  --line-strong: #d8d8e2;
  --todo-bg: #fff1c2;
  --todo-ink: #5c4300;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --brand: #85bcff;
    --brand-2: #22d3ee;
    --brand-tint: #262a3d;
    --ink: #e8eaf1;
    --muted: #aeb2c0;
    --bg: #0f1014;
    --bg-low: #1c1e26;
    --line: #262832;
    --line-strong: #343744;
    --todo-bg: #4a3a12;
    --todo-ink: #ffe7a3;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --brand: #85bcff;
  --brand-2: #22d3ee;
  --brand-tint: #262a3d;
  --ink: #e8eaf1;
  --muted: #aeb2c0;
  --bg: #0f1014;
  --bg-low: #1c1e26;
  --line: #262832;
  --line-strong: #343744;
  --todo-bg: #4a3a12;
  --todo-ink: #ffe7a3;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  font-family:
    'Plus Jakarta Sans',
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: min(760px, 100% - 2rem);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none;
}
.logo .mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.logo .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-x {
  color: var(--brand);
}
.doclinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.doclinks a {
  color: var(--muted);
  text-decoration: none;
}
.doclinks a:hover,
.doclinks a[aria-current='page'] {
  color: var(--ink);
}

main {
  padding-block: 2.5rem 4rem;
}
h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}
h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}
p,
li {
  text-wrap: pretty;
}
p {
  margin: 0 0 0.9rem;
}
ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.4rem;
}
a {
  color: var(--brand);
  text-underline-offset: 2px;
}
strong {
  font-weight: 700;
}
.meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.lead {
  font-size: 1.05rem;
}
.note {
  background: var(--brand-tint);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.note > :last-child {
  margin-bottom: 0;
}
.toc {
  background: var(--bg-low);
  border-radius: 14px;
  padding: 1rem 1.15rem 0.6rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.toc strong {
  display: block;
  margin-bottom: 0.4rem;
}
.toc ol {
  margin: 0;
  columns: 2 16rem;
  column-gap: 1.5rem;
}
.toc li {
  break-inside: avoid;
  margin-bottom: 0.3rem;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.25rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--bg-low);
  font-weight: 700;
}
/* Unfilled facts that the operator must supply before the page goes live. */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  border-radius: 4px;
  padding: 0 0.25rem;
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
footer a {
  color: inherit;
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

@media (max-width: 600px) {
  .topbar nav {
    height: auto;
    padding-block: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .doclinks {
    justify-content: flex-start;
  }
  html {
    scroll-padding-top: 132px;
  }
  th,
  td {
    padding: 0.55rem 0.45rem;
  }
  td {
    hyphens: auto;
    overflow-wrap: anywhere;
  }
}
@media print {
  .topbar,
  footer {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
