/* Legal pages. Optimised for reading, not for looking impressive. */
.legal { display: grid; gap: var(--s-12); grid-template-columns: 1fr; }
@media (min-width: 62rem) {
  .legal { grid-template-columns: 16rem 1fr; align-items: start; }
  .legal__toc { position: sticky; top: 6rem; }
}

.legal__toc-h {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--text-lo); margin-bottom: var(--s-3);
}
.legal__toc ol { counter-reset: toc; display: grid; gap: var(--s-2); }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex; gap: var(--s-2); font-size: var(--fs-sm);
  color: var(--text-mid); text-decoration: none;
}
.legal__toc a::before { content: counter(toc) "."; color: var(--accent-ink); font-family: var(--font-mono); }
.legal__toc a:hover { color: var(--accent-ink); }

/* A comfortable measure matters more here than on any other page type. */
.legal__body { max-width: 68ch; }
.legal__section { margin-bottom: var(--s-12); scroll-margin-top: 6rem; }
.legal__section h2 { font-size: var(--fs-h3); margin-bottom: var(--s-4); }
.legal__section p { color: var(--text-mid); }
.legal__section strong { color: var(--text-hi); }
.legal__section a { color: var(--accent-ink); }

.legal__list { display: grid; gap: var(--s-3); margin: 0 0 var(--s-4); }
.legal__list li {
  padding-left: var(--s-6); position: relative;
  color: var(--text-mid); max-width: var(--measure);
}
.legal__list li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--y-yellow);
}
.legal__section code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--surface-2); padding: 0.15em 0.4em; border-radius: var(--radius-sm);
}

.legal__contact {
  padding: var(--s-6); border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg); background: var(--surface-1);
}
.legal__contact address { font-style: normal; color: var(--text-mid); line-height: 1.8; }
