/* Shared by /privacy, /terms and /support. */
:root {
  --ink: #0a0a0b; --on-ink: #f3f3f1; --on-ink-muted: #a1a1aa; --ink-line: rgba(255, 255, 255, 0.12);
  --paper: #f6f5f1; --text: #141416; --muted: #5d5d66; --line: #dddbd3; --blue: #3b3bf5;
  --serif: "Big Caslon", "Libre Caslon Display", Georgia, serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--text); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.inner { max-width: 76rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .inner { padding: 0 2rem; } }

header { background: var(--ink); color: var(--on-ink); }
header .inner { height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--on-ink); text-decoration: none; }
header nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
header nav a { color: var(--on-ink-muted); text-decoration: none; }
header nav a:hover, header nav a[aria-current="page"] { color: var(--on-ink); }
@media (max-width: 420px) { header nav { gap: 1rem; font-size: 0.88rem; } .wordmark { font-size: 1.6rem; } }

main { padding: 3.5rem 0 4.5rem; }
/* Content runs the full width of the header, with an "On this page" list beside it. */
.doc { display: grid; gap: 2rem 4rem; }
@media (min-width: 960px) { .doc { grid-template-columns: 13rem minmax(0, 1fr); } }
.toc { display: none; }
@media (min-width: 960px) {
  .toc { display: block; position: sticky; top: 2rem; align-self: start; padding-top: 0.4rem; }
  .toc h4 { margin: 0 0 0.75rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
  .toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; border-left: 1px solid var(--line); }
  .toc a { display: block; padding-left: 0.9rem; margin-left: -1px; border-left: 2px solid transparent; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
  .toc a:hover { color: var(--text); border-left-color: var(--blue); }
  .toc a.active { color: var(--text); font-weight: 600; border-left-color: var(--blue); }
  .toc a { transition: color 0.15s ease-out, border-color 0.15s ease-out; }
}
.doc h2 { scroll-margin-top: 1.5rem; }
.content p, .content li { max-width: 62rem; }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.05; }
.updated { margin: 0.8rem 0 0; font-size: 0.88rem; color: var(--muted); }
.summary { margin: 2rem 0 0; padding: 1.1rem 1.3rem; border-left: 2px solid var(--blue); background: #fff; font-size: 1rem; }
.summary p { margin: 0; }
.summary p + p { margin-top: 0.5rem; }
h2 { margin: 2.6rem 0 0; font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1.15; }
h3 { margin: 1.6rem 0 0; font-size: 1.02rem; font-weight: 600; }
p, li { font-size: 0.98rem; }
p { margin: 0.7rem 0 0; }
ul { margin: 0.7rem 0 0; padding-left: 1.2rem; }
li + li { margin-top: 0.35rem; }
.card { margin-top: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 0.5rem; background: #fff; }
.card p:first-child { margin-top: 0; }
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; font-size: 0.95rem; }
dt { color: var(--muted); }
dd { margin: 0; }
@media (max-width: 480px) { dl { grid-template-columns: 1fr; } dt { margin-top: 0.5rem; } }

footer { background: var(--ink); color: var(--on-ink-muted); padding: 2rem 0; font-size: 0.84rem; }
footer .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; }
footer a { color: var(--on-ink-muted); text-decoration: none; }
footer a:hover { color: var(--on-ink); }
footer .links { display: flex; gap: 1.25rem; }

/* Scrollbars: slim, no track, tinted with the page's accent. */
html { --sb-thumb: rgba(59, 59, 245, 0.32); --sb-thumb-hover: rgba(59, 59, 245, 0.6); scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
