/* Policy pages as numbered sections (2026-09-24), loaded by the "legal"
   prose layout only (ProseLegal in cms/src/frontend/blocks). Every selector
   starts with `html`: this file loads before site.css and must not lose ties. */
html .legal-acc{padding-top:clamp(24px,3vw,40px)}
html .legal-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:clamp(28px,4vw,64px);align-items:start;max-width:1200px}
html .legal-toc{position:sticky;top:var(--stick-top,120px);max-height:calc(100vh - var(--stick-top,120px) - 30px);overflow:auto;padding:22px 18px;border:1px solid rgba(53,0,79,.1);border-radius:18px;background:#fff}
html .legal-toc-title{margin:0 0 12px;font-size:var(--fs-label);font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--plum)}
html .legal-toc ol{margin:0;padding:0;list-style:none;display:grid;gap:2px}
html .legal-toc a{display:grid;grid-template-columns:26px minmax(0,1fr);gap:8px;padding:7px 8px;border-radius:10px;font-size:var(--fs-small);line-height:1.35;color:var(--copy);text-decoration:none}
html .legal-toc a span{font-weight:700;color:#527c17}
html .legal-toc a:hover{background:var(--lime-soft);color:var(--plum)}
html .legal-lead{max-width:72ch;margin-bottom:18px;color:var(--copy);line-height:1.75}
html .legal-tools{display:flex;justify-content:flex-end;margin-bottom:12px}
html .legal-expand{min-height:38px;padding:0 16px;border:1px solid rgba(53,0,79,.25);border-radius:999px;background:#fff;font-weight:700;font-size:var(--fs-small);color:var(--plum);cursor:pointer}
html .legal-expand:hover{border-color:var(--lime);background:var(--lime-soft)}
html .legal-list{display:grid;gap:12px}
html .legal-row{scroll-margin-top:24px;border:1px solid rgba(53,0,79,.1);border-radius:16px;background:#fff;transition:box-shadow .2s ease}
html .legal-row[open]{box-shadow:0 12px 30px rgba(53,0,79,.07);border-color:rgba(143,198,65,.55)}
html .legal-row summary{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 20px;cursor:pointer;list-style:none}
html .legal-row summary::-webkit-details-marker{display:none}
html .legal-row summary:focus-visible{outline:3px solid var(--lime);outline-offset:2px;border-radius:16px}
html .legal-n{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--lime-soft);font-weight:800;font-size:.85rem;color:#527c17}
html .legal-row[open] .legal-n{background:var(--plum);color:#fff}
html .legal-title{font-family:var(--font-head);font-size:var(--fs-h3);line-height:1.3;color:var(--plum)}
html .legal-chev{display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(53,0,79,.2);border-radius:50%}
html .legal-chev::before{content:"";width:8px;height:8px;border-right:2px solid var(--plum);border-bottom:2px solid var(--plum);transform:translateY(-2px) rotate(45deg);transition:transform .2s ease}
html .legal-row[open] .legal-chev::before{transform:translateY(2px) rotate(225deg)}
/* Only inside a numbered section: RichText wraps every block's text in
   .legal-body, and other blocks share pages with this file. */
html .legal-row .legal-body{padding:0 24px 24px 84px;color:var(--plum-dark);line-height:1.75}
html .legal-row .legal-body p,html .legal-row .legal-body ul,html .legal-row .legal-body ol{margin:0 0 .9em}
html .legal-row .legal-body ul,html .legal-row .legal-body ol{padding-left:1.2em}
html .legal-row .legal-body li{margin-bottom:.4em}
html .legal-row .legal-body li::marker{color:var(--lime)}
@media (max-width:980px){
  html .legal-grid{grid-template-columns:minmax(0,1fr)}
  html .legal-toc{display:none}
  html .legal-row .legal-body{padding-left:24px}
}
/* A phone (2026-10-23): the rows' own padding gave a section's lists under
   180px of a 360px screen. The number, the gaps and the margins come in. */
@media (max-width:640px){
  html .legal-row summary{grid-template-columns:36px minmax(0,1fr) auto;gap:12px;padding:14px 16px}
  html .legal-n{width:34px;height:34px}
  html .legal-row .legal-body{padding:0 16px 20px}
  html .legal-row .legal-body :is(ul,ol){padding-left:1.1em}
}

/* A reference document as two columns of cards (the Information Memorandum's
   mockup, 2026-09-28), loaded by the "reference" prose layout only
   (ProseReference). */
html .ref-section{padding-top:clamp(32px,4vw,56px)}
html .ref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
html .ref-col{display:grid;gap:18px;align-content:start}
html .ref-head{padding:0 6px 8px}
html .ref-head h2{margin:0;font-family:var(--font-head);line-height:1.08;color:var(--plum)}
html .ref-head h2::after{content:"";display:block;width:48px;height:3px;margin:18px 0 20px;border-radius:2px;background:var(--lime)}
html .ref-head p{margin:0;max-width:62ch;color:var(--copy);font-size:var(--fs-lede);line-height:1.6}
html .ref-card{scroll-margin-top:24px;display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:22px;align-content:start;padding:24px 26px;border:1px solid rgba(53,0,79,.08);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(53,0,79,.05)}
html .ref-card > .ref-ring{grid-row:1 / span 9;align-self:start}
html .ref-card > :not(.ref-ring){grid-column:2}
html .ref-card > .ref-items{grid-column:1 / -1}
html .ref-ring{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:var(--lime-soft);color:var(--accent-ink)}
html .ref-card h3,html .ref-tile h3{margin:4px 0 8px;font-family:var(--font-head);font-size:var(--fs-h3);line-height:1.2;color:var(--plum)}
html .ref-text p{margin:0 0 8px;color:var(--copy);font-size:var(--fs-small);line-height:1.6}
html .ref-ticks{margin:4px 0 0;padding:0;list-style:none;display:grid;gap:10px}
html .ref-ticks li{position:relative;padding-left:32px;color:var(--copy);font-size:var(--fs-small);line-height:1.55}
html .ref-ticks li::before{content:"✓";position:absolute;left:0;top:1px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:var(--accent-ink);color:#fff;font-size:.72rem;font-weight:700}
html .ref-items{margin:18px 0 0;padding:0;list-style:none;display:grid;gap:12px}
html .ref-items > li{padding:18px 22px;border:1px solid rgba(53,0,79,.08);border-radius:16px;background:#fff}
html .ref-items h4{margin:2px 0 6px;font-family:var(--font-head);font-size:var(--fs-h3);color:var(--plum)}
html .ref-items ul{margin:0;padding:0;list-style:none;display:grid;gap:6px}
html .ref-items ul li{position:relative;padding-left:20px;color:var(--copy);font-size:var(--fs-small);line-height:1.55}
html .ref-items ul li::before{content:"";position:absolute;left:2px;top:.6em;width:7px;height:7px;border-radius:50%;background:var(--accent)}
html .ref-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
html .ref-tile{display:grid;justify-items:center;align-content:start;gap:4px;padding:22px 16px;text-align:center;border:1px solid rgba(53,0,79,.08);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(53,0,79,.05)}
html .ref-tile .ref-ring{width:60px;height:60px;margin-bottom:6px}
html .ref-tile h3{margin:0 0 4px}
html .ref-tile p{margin:0;color:var(--copy);font-size:var(--fs-small);line-height:1.5}
@media (max-width:1080px){
  html .ref-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  html .ref-card{grid-template-columns:52px minmax(0,1fr);column-gap:16px;padding:20px 18px}
  html .ref-card .ref-ring{width:52px;height:52px}
  /* The icon beside the heading only; the text takes the card's width. */
  html .ref-card > .ref-ring{grid-row:1;align-self:center}
  html .ref-card > h3{margin:0;align-self:center}
  html .ref-card > :not(.ref-ring):not(h3){grid-column:1 / -1}
  html .ref-card > .ref-text:first-of-type,html .ref-card > .ref-ticks{margin-top:14px}
  html .ref-items > li{padding:16px}
  /* The small cards as rows: three do not fit across, and 2 + 1 leaves a hole. */
  html .ref-tiles{grid-template-columns:minmax(0,1fr)}
  html .ref-tile{grid-template-columns:52px minmax(0,1fr);justify-items:start;column-gap:16px;padding:18px;text-align:left}
  html .ref-tile .ref-ring{grid-row:1 / span 2;width:52px;height:52px;margin:0}
  html .ref-tile > :not(.ref-ring){grid-column:2}
}
html .legal-heading{margin-bottom:clamp(24px,3vw,36px)}
