/* legal.css: long text on the slate. Uses the site's own --c, --s and --t scales. Counters: sec numbers the sections, toc numbers the contents. */

/* elements: running text inside a legal plate */
.clelg p, .clelg li { max-inline-size: 42rem; }
.clelg ul { padding-inline-start: 1.25rem; display: flex; flex-direction: column; gap: var(--s2); }
.clelg li::marker { color: var(--c4); }
.clelg a { color: var(--c4); }
.clelg a:hover { color: var(--c2); }
.clelg address { display: flex; flex-direction: column; }

/* clelh (legal head): the h1 and the updated plate, stacked at the left */
.clelh { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }
.clelh h1 { font-size: var(--t5); max-inline-size: 44rem; }

/* clelu (updated): the date and what the page covers, on a white plate */
.clelu { max-inline-size: 44rem; padding: var(--s3) var(--s4); }

/* clelw (legal wrap): contents beside the text; they stack on a phone */
.clelw { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s6); }

/* clelc (contents): the numbered list of sections on its own plate */
.clelc { flex: 1 1 15rem; max-inline-size: 19rem; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); }
.clelc h2 { font-size: var(--t4); }
.clelc ol { counter-reset: toc; list-style: none; padding: 0; display: flex; flex-direction: column; }
.clelc li { counter-increment: toc; }
.clelc a { display: inline-flex; align-items: center; gap: var(--s3); min-block-size: 2.75rem; font-size: var(--t2); line-height: 1.25; }
.clelc a::before { content: counter(toc); flex: none; min-inline-size: 1.25rem; color: var(--c4); }

/* clelg (legal text): the white plate that holds the numbered sections; crop marks come from clecm */
.clelg { flex: 3 1 28rem; min-inline-size: 0; max-inline-size: 54rem; counter-reset: sec; display: flex; flex-direction: column; gap: var(--s6); padding: var(--s5); }
.clelg h2 { counter-increment: sec; display: flex; align-items: baseline; gap: var(--s3); font-size: var(--t4); }
.clelg h2::before { content: counter(sec); flex: none; color: var(--c4); }

/* clels (legal section): one numbered part, a stack of heading and paragraphs */
.clels { display: flex; flex-direction: column; gap: var(--s3); }

/* clelo (onward): the hand-off at the foot, links to what comes next */
.clelo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }

/* clelr (route): the 404 list of ways back, each a clent note beside the drawing */
.clelr { display: flex; flex-direction: column; justify-content: center; gap: var(--s5); font-size: var(--t3); line-height: 1.35; }
.clelr a { font-weight: 500; }
.clelr .clent { gap: var(--s1); }
.clelr .clent > span { font-size: var(--t2); }

@media (max-width: 47.99rem) {
  .clelg { padding: var(--s4); gap: var(--s5); }
  .clelc { max-inline-size: none; }
}
