/* Legal pages and the not-found page: long text set on a cream sill over the view */

/* First screen: sill with the title, one arched snapshot tucked beside it */
.legal-hero .stage__grid { align-items: end; }
.legal-hero .sill h1 { margin-bottom: .5em; }
.legal-hero .sill .btn { margin-top: .25rem; }
.legal__meta { font-size: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 60rem) {
  .legal-hero .stage__grid > .snap { grid-column: 9 / span 3; justify-self: center; align-self: center; }
}

/* The lower view behind the long sill: photograph, never a flat field */
.legal { padding: 3rem var(--edge) 4rem; background: var(--ground) center / cover no-repeat; }
.legal--a { background-image: url(../img/windowsill-letter.jpg); }
.legal--b { background-image: url(../img/hero-afternoon.jpg); }
.legal__panel { max-width: 58rem; margin: 0 auto; counter-reset: sec; padding-top: 3.5rem; }
@media (min-width: 60rem) { .legal__panel { padding: 4.5rem 4rem 3rem; } }

/* Contents: round moss numbers, each a full-height touch target */
.toc { counter-reset: toc; list-style: none; margin: 0 auto 2.5rem; padding: 0; display: grid; gap: .25rem; max-width: 44rem; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; align-items: center; gap: 1rem; min-height: 2.75rem; padding: .25rem 1rem .25rem .25rem;
  border-radius: 999rem; text-decoration: none; font-size: 1.125rem;
}
.toc a::before {
  content: counter(toc); flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--moss); color: var(--ink); font-size: 1rem;
}
.toc a:hover { background: rgba(126, 143, 123, .2); }

/* Reading column: a measure of about 65 characters, numbered sections */
.legal__body { max-width: 44rem; margin: 0 auto; }
.legal__body section { counter-increment: sec; margin-bottom: 2.25rem; scroll-margin-top: 1rem; }
.legal__body section:last-child { margin-bottom: 0; }
.legal__body h2 { display: flex; align-items: center; gap: .9rem; margin-bottom: .7em; }
.legal__body h2::before {
  content: counter(sec); flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--moss); color: var(--ink); font-size: 1rem;
}
.legal__body ul { padding-left: 1.4rem; margin: 0 0 1em; }
.legal__body li { margin-bottom: .5rem; }
.legal__body code { font-family: Lexend, system-ui, sans-serif; background: rgba(126, 143, 123, .22); padding: .1em .45em; border-radius: 999rem; overflow-wrap: anywhere; }
.legal__body .specs { margin-bottom: 1em; }

/* Not-found page: pill links under the sentence */
.lost__links { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
