/* Terms composition: H20 opening, then the design system's content and sidebar, with the
   contents first in reading order (K1: Contents before Body). Values come from the tokens. */

/* Contents beside the body by the side-and-main law: the body keeps the body measure
   (34 x 17 = 578 px, 50-75 characters a line), the contents take measure-3 (204 px) or more.
   Side by side from 204 + 48 + 578 = 830 px of content; below that the contents stack above the body. */
.legal-doc { container: legal / inline-size; }
.legal-doc > .content-sidebar__aside { flex: 1 1 var(--measure-3); min-inline-size: 0; }
.legal-doc > .legal-body { flex: 999 1 0; min-inline-size: min(100%, var(--measure-body)); }
/* Stacked, the contents stay in place: a sticky list would slide over the body below it. */
@container legal (width < 830px) { .legal-doc > .content-sidebar__aside { position: static; } }

/* B12 text column: one part per condition, 48 px between parts. */
.legal-body { display: flex; flex-direction: column; gap: var(--space-7); }
.legal-product strong { color: var(--text); font-weight: var(--weight-strong); }

/* B03: one channel, a centred stack. */
.legal-contact { align-items: center; text-align: center; }

/* B13: heading beside the routes; two columns from 2 x 408 + 48 = 864 px of content. */
.legal-next { display: grid; gap: var(--space-5) var(--space-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--measure-1)), 1fr)); align-items: baseline; }
.legal-links { display: grid; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }

/* Measured at 320 px: body.commissioned.heading's two balanced lines both run full at the title size; below 22.5em
   it takes the heading size. Copy unchanged. */
@media (max-width: 22.5em) { [data-slot="body.commissioned.heading"] { font-size: var(--size-heading); line-height: var(--leading-heading); } }
