/* the privacy and terms pages: long reading, so one calm column and nothing else */
.legal {
  padding: 0 var(--gutter) clamp(56px, 8vw, 112px);
}

.legal-body {
  max-width: 68ch;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}

.legal-updated {
  color: var(--muted);
  font-size: .95rem;
}

.legal-contents {
  margin: 28px 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.legal-contents h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.legal-contents ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2 16em;
  column-gap: 32px;
}

.legal-contents li {
  break-inside: avoid;
  margin-bottom: 4px;
}

/* The contents links are stacked navigation rather than words in a sentence, so the 24px minimum
   applies to them and WCAG 2.5.8’s exception for a link inside running text does not. They measured
   22px. The two pixels come from the line box, so nothing moves sideways and the columns are unchanged. */
.legal-contents a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* On a phone these are thumbed rather than pointed at, and they are a stacked list, so the 24px floor
   is not enough. A real 44px box, the same treatment the sign-in links get, which cannot overlap its
   neighbour the way an invisible layer can. */
@media (max-width: 720px), (pointer: coarse) {
  .legal-contents a {
    min-height: 44px;
  }
}

.legal-body > h2 {
  margin: 2.4em 0 .5em;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  scroll-margin-top: 24px;
}

.legal-body h3 {
  margin: 1.6em 0 .4em;
  font-size: 1.05rem;
}

.legal-body p,
.legal-body ul {
  margin: 0 0 1em;
}

.legal-body ul {
  padding-left: 1.3em;
}

.legal-body li + li {
  margin-top: .4em;
}

.legal-body strong {
  color: var(--text);
}

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

/* a point the owner still has to confirm before the page goes live */
.confirm {
  background: var(--accent-soft);
  color: var(--text);
  padding: 0 .3em;
  border-radius: 4px;
  outline: 1px dashed var(--accent);
}
