/* Legal pages: the new site's type and colour, set for long reading */
body.legal { background: radial-gradient(90% 60% at 80% 0%, rgba(47, 109, 255, 0.14), transparent 60%), var(--void); }
.legal .top { position: sticky; }
.doc { max-width: 1180px; margin: 0 auto; padding: 120px var(--gutter) 40px; }
.doc-head { display: grid; gap: 14px; padding-bottom: 36px; border-bottom: 1px solid rgba(238, 242, 247, 0.1); }
.doc-head h1 { font-size: clamp(3.2rem, 8vw, 7rem); }
.doc-date { color: var(--text-3); font-size: 15px; }
.doc-other { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.doc-other a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text-2); border: 1px solid rgba(238, 242, 247, 0.14); }
.doc-other a[aria-current="page"] { background: var(--light); color: var(--ink); border-color: var(--light); }
.doc-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: 40px; }
.doc-index { position: sticky; top: 100px; align-self: start; }
.doc-index p { font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.doc-index ol { display: grid; gap: 4px; counter-reset: d; }
.doc-index li { counter-increment: d; }
.doc-index a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-size: 14.5px; line-height: 1.35; }
.doc-index a::before { content: counter(d, decimal-leading-zero); color: var(--blue-hi); font-variant-numeric: tabular-nums; font-weight: 600; }
.doc-index a:hover { background: rgba(238, 242, 247, 0.06); color: var(--text); }
.doc-body { max-width: 72ch; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.doc-body > p:first-child { font-size: 19px; color: var(--text); }
.doc-body section { padding-top: 44px; scroll-margin-top: 96px; }
.doc-body h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; color: var(--text); margin-bottom: 16px; text-shadow: none; }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 0; display: grid; gap: 10px; }
.doc-body li { position: relative; padding-left: 22px; }
.doc-body li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-hi); }
.doc-body strong { color: var(--text); }
.doc-body a { color: var(--blue-hi); }
.doc-help { margin-top: 56px; padding: 28px; border-radius: 18px; background: rgba(10, 15, 26, 0.72); border: 1px solid rgba(238, 242, 247, 0.12); display: grid; gap: 10px; justify-items: start; }
.doc-help h2 { margin: 0; }
.legal-foot { margin-top: 40px; justify-items: center; }
@media (max-width: 860px) {
  .doc-grid { grid-template-columns: 1fr; }
  .doc-index { position: static; }
  .doc { padding-top: 100px; }
}
