/* Document pages (privacy, terms, 404). Loaded after next.css: same tokens, same chrome. */

body { background: var(--bg); }

.hdr {
  position: sticky;
  background: color-mix(in srgb, var(--bg-solid) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.hdr__nav a { color: var(--muted); }

/* a quiet core, top right, behind the text */
.doc-core {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 0;
  width: min(52vw, 760px);
  height: min(70vh, 640px);
  pointer-events: none;
}
.no-webgl .doc-core { display: none; }

.doc {
  position: relative;
  z-index: 1;
  max-width: 68ch;
  padding: clamp(56px, 9vh, 112px) var(--pad) clamp(72px, 10vh, 120px);
}
.doc__kicker {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}
.doc h1 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}
.doc__meta {
  margin: 0 0 44px;
  font-size: 13px;
  color: var(--subtle);
}
.doc h2 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 44px 0 12px;
}
.doc h3 {
  font-size: 17px;
  font-weight: 400;
  margin: 26px 0 8px;
}
.doc p,
.doc li {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}
.doc p { margin: 0 0 14px; }
.doc ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  list-style: disc;
}
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--subtle); }
.doc a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s;
}
.doc a:hover { text-decoration-color: var(--ink); }
.doc strong { color: var(--ink); font-weight: 400; }
.doc .lead {
  font-size: clamp(18px, 1.3vw, 21px);
  color: var(--ink);
  font-weight: 300;
}
.doc__table {
  width: 100%;
  margin: 8px 0 20px;
  border-collapse: collapse;
  font-size: 15px;
}
.doc__table th,
.doc__table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}
.doc__table th {
  color: var(--subtle);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 404 */
.lost {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--pad) clamp(64px, 11svh, 120px);
}
.lost h1 {
  font-size: clamp(42px, 6vw, 96px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
}
.lost p { max-width: 36em; margin: 0 0 28px; color: var(--muted); font-size: 18px; }

@media (max-width: 899px), (max-aspect-ratio: 17/20) {
  .doc-core { top: -9vh; width: 72vw; height: 44vh; opacity: 0.55; }
  .hdr__nav { display: none; }
}
