/* Terms, Privacy and Cookie pages: long legal text in one readable column, no tables. */

.legal-page {
  max-width: calc(760px + 2 * var(--gutter));
}

.legal {
  color: var(--white-hot);
  font-size: var(--text-md);
  line-height: 1.65;
}

.legal h1 {
  font-size: 2rem;
  line-height: 1.2;
}

.legal-updated {
  margin: 8px 0 28px;
  color: var(--ash);
  font-size: var(--text-sm);
}

/* Section headings: numbered by the text itself, and the header doesn't cover them after a contents click */
.legal h2 {
  margin: 44px 0 14px;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.legal p {
  margin: 0 0 14px;
  text-wrap: pretty;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal li::marker {
  color: var(--ember);
}

.legal a {
  color: var(--ember-light);
  text-underline-offset: 3px;
}

.legal strong {
  color: #fff;
}

.legal code {
  padding: 1px 6px;
  background: var(--soot);
  border: var(--border);
  border-radius: var(--radius-inner);
  font-size: 0.85em;
}

/* Contents: every section, so the long text is easy to jump around */
.legal-toc {
  margin-bottom: 12px;
  padding: 18px 20px;
  background: var(--iron);
  border: var(--border);
  border-radius: var(--radius);
}

.legal-toc h2 {
  margin: 0 0 10px;
  color: var(--ash);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}

.legal-toc li {
  margin: 0 0 6px;
  break-inside: avoid;
}

.legal-toc a {
  color: var(--ash);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--white-hot);
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }

  .legal h1 {
    font-size: 1.6rem;
  }
}
