/* Long legal text in the bench-and-frames design: a contents panel beside numbered sections. */
.legal {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  align-items: start;
  align-content: start;
}
.legal__head { grid-column: 1 / -1; }
.legal__head h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
.legal__meta { margin: 0.75em 0 0; font-size: var(--fs-small); }
.legal__lede { max-width: 40em; margin-top: 0.75em; }

/* Contents list: numbers come from the ordered list, matching the section counters. */
.legal__toc ol { margin: 0; padding-left: 1.6em; }
.legal__toc li { margin: 0; }
.legal__toc a {
  display: inline-block;
  min-height: 2.75rem;
  padding-block: 0.6rem;
  line-height: 1.3;
}
.legal__toc .sub { margin-bottom: 0.4em; }

/* Numbered sections on a readable measure. */
.legal__body { counter-reset: sec; }
.legal__body > section { max-width: 40em; scroll-margin-top: 1rem; }
.legal__body > section + section {
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
}
.legal__body h2 {
  counter-increment: sec;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.5em;
  scroll-margin-top: 1rem;
}
.legal__body h2::before {
  content: counter(sec) ". ";
}
.legal__body p, .legal__body li { line-height: 1.7; }
.legal__body ul { padding-left: 1.25em; }
.legal__body li + li { margin-top: 0.4em; }
.legal__body .facts { margin: 1em 0; }
.legal__body .btn { margin-top: 0.5rem; }

/* 404: the matched pair, two frames on one rim line. */
.lost { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.lost__text h1 { font-size: clamp(2.5rem, 5.2vw, 5rem); }
.lost__text .btn-row { margin-top: 1.25rem; }
.lost__text p a { display: inline-block; padding-block: 0.4rem; }
.lost .mount img { height: auto; aspect-ratio: 4 / 3; }
.lost .pair { gap: 1rem; }

@media (max-width: 55.99rem) {
  .legal, .lost { grid-template-columns: minmax(0, 1fr); }
}
