/* legal.css: long text for C.L.B Bath & Blowouts. Same keys as site.css. Order: layout, type, colour, motion. */

/* ——— layout ——— */
.legal_page{ container-type:inline-size; padding-block:var(--s5) var(--s6); }
.legal_head{ margin-bottom:var(--s5); }
.legal_grid{ display:grid; grid-template-columns:1fr; gap:var(--s5) var(--s5); }
.legal_toc{ counter-reset:tocn; padding:var(--s3); border-radius:1.6rem 1.1rem 1.8rem 1.2rem; align-self:start; }
.legal_toc ol{ margin:0; padding:0; list-style:none; }
.legal_toc li{ counter-increment:tocn; }
.legal_toc a{ display:flex; gap:.6rem; min-height:2.75rem; align-items:center; }
.legal_toc a::before{ content:counter(tocn) "."; min-width:1.6rem; }
.legal_text{ counter-reset:secn; max-width:44rem; }
.legal_sec{ counter-increment:secn; padding-block:var(--s2) var(--s3); scroll-margin-top:var(--s5); }
.legal_sec h2::before{ content:counter(secn) ". "; }
.legal_sec ul{ margin:0 0 var(--s3); padding-left:1.3rem; }
.legal_sec li{ margin-bottom:.4rem; }
.legal_mark{ display:flex; align-items:flex-end; gap:var(--s3); }
.legal_back{ display:flex; flex-wrap:wrap; gap:var(--s3); margin-top:var(--s4); }
@container (min-width:56rem){
  .legal_grid{ grid-template-columns:minmax(14rem,1fr) 2.6fr; }
}

/* The footer is one running sentence: the name sits at its head and sets a tall line box over
   the words after it. Keep the name low in the paint order, and give every word that can be
   pressed its own single box, lifted above the name - so a click lands on the link, never on
   the name, at any width and wherever the sentence happens to wrap. */
.chrome_line_name{ position:relative; z-index:1; }
.chrome_foot .chrome_word{
  position:relative; z-index:4;
  display:inline-flex; align-items:center;
  min-height:2.75rem; padding-block:.1rem;
  max-width:100%; overflow-wrap:anywhere;
}
.chrome_foot .chrome_word_btn{ position:relative; z-index:4; }

/* ——— type ——— */
.legal_head h1{ font-size:var(--t5); }
.legal_stamp{ font-size:1rem; margin:0; }
.legal_sec h2{ font-size:clamp(1.75rem,2.6vw,2.25rem); line-height:1.15; }
.legal_sec p,.legal_sec li{ font-size:var(--t1); line-height:1.7; }
.legal_toc a{ font-size:1.0625rem; text-decoration:none; line-height:1.3; }
.legal_toc a:hover{ text-decoration:underline; text-underline-offset:.22em; }
.legal_toc_title{ font-family:var(--f1); font-size:1.5rem; margin:0 0 var(--s2); }

/* ——— colour ——— */
.legal_toc{ background:var(--c3); color:var(--c2); }
.legal_sec h2::before{ color:var(--c2); }
.legal_sec a{ color:var(--c2); }

/* ——— motion ——— */
.legal_toc a{ transition:background-color 200ms var(--tuck); }
@media (prefers-reduced-motion:reduce){ .legal_toc a{ transition:none; } }
