/* The Terms of service and Privacy policy (/terms, /privacy): the published
   v2 text, whose markup is kept as the 20 September 2026 snapshots have it
   (public/legal/site2026-09-20launch-v2/), set in the frame's type. A head
   with the title and summary, then the contents beside the numbered
   sections. */

.legal { padding: var(--rer-space-top) var(--gutter) var(--rer-space-end); }
.legal .wrap { max-width: 1240px; }

/* Head */

.legal .page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--rer-space-inset) var(--rer-space-label);
  align-items: end;
  padding-bottom: calc(var(--rer-space-head) + 16px);
}
.legal .eyebrow {
  margin: 0 0 clamp(24px, 2.4vw, 36px);
  font: 400 13px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.legal h1.display {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 92px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.legal .lede { margin: 0; max-width: 34em; font-size: clamp(18px, 1.45vw, 24px); font-weight: 300; line-height: 1.45; color: var(--text-soft); }
.legal .docs-updated { margin: 20px 0 0; font: 400 13px/1.5 var(--mono); color: var(--text-faint); }
.legal hr.rule { margin: 0; border: 0; border-top: 1px solid var(--rule); }

/* Body: the contents in a sticky column beside the sections. */

.legal .article {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--rer-space-inset) var(--rer-space-label);
  padding-top: calc(var(--rer-space-section) / 2);
}
.legal .article__toc { position: sticky; top: 24px; align-self: start; }
.legal .article__toc ul { margin: 0; padding: 0; list-style: none; }
.legal .article__toc li { margin: 0; }
.legal .article__toc a {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-soft);
}
.legal .article__toc a span:first-child { font: 400 13px/1.55 var(--mono); color: var(--text-faint); }
.legal .article__toc a:hover { color: #fff; }

.legal .docs-prose { max-width: var(--rer-measure); font-size: clamp(16px, 1.1vw, 18px); line-height: 1.65; color: var(--text-soft); }
.legal .docs-prose section { padding: 0 0 clamp(56px, 5.6vw, 88px); scroll-margin-top: 24px; }
.legal .docs-prose section:last-child { padding-bottom: 0; }
.legal .docs-prose .num { display: block; margin-bottom: 12px; font: 400 13px/1.4 var(--mono); color: var(--text-faint); }
.legal .docs-prose h2 { margin: 0 0 24px; font-size: clamp(22px, 1.8vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--paper); }
.legal .docs-prose h4 { margin: 2em 0 0.6em; font-size: 1em; font-weight: 600; color: var(--text); }
.legal .docs-prose p, .legal .docs-prose ul { margin: 0 0 1.1em; }
.legal .docs-prose ul { padding-left: 1.2em; }
.legal .docs-prose li { margin-bottom: 0.6em; }
.legal .docs-prose strong { font-weight: 600; color: var(--text); }
.legal .docs-prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--hairline);
  overflow-wrap: anywhere;
}
.legal .docs-prose a:hover { color: #fff; }
.legal a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }

@media (max-width: 900px) {
  .legal .page-hero__grid, .legal .article { grid-template-columns: minmax(0, 1fr); }
  .legal .article__toc { position: static; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
}
