/* Legal pages: privacy policy + accessibility statement. Prefix .lg-  ·  radius max 8px */
.lg-hero { background: var(--forest3); color: #fff; padding-block: 28px clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.lg-hero::after { content: ''; position: absolute; inset-inline-end: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255, 240, 225, .18); box-shadow: 0 0 0 60px rgba(255, 240, 225, .04); pointer-events: none; }
.lg-hero .wrap { position: relative; z-index: 1; display: grid; gap: 14px; }
.lg-hero .crumbs, .lg-hero .crumbs a { color: #dfc6a8; } .lg-hero .crumbs a:hover { color: var(--lime); } .lg-hero .crumbs [aria-current] { color: #fff; }
.lg-hero h1 { color: #fff; margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; max-width: 18ch; }
.lg-hero .lead { margin: 0; max-width: 62ch; color: #e6d7c6; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 0; padding: 0; list-style: none; font-size: .92rem; color: #dfc6a8; }
.lg-meta b { color: #fff; font-weight: 700; }

.lg-shell { width: min(100% - 2 * var(--gut), 1120px); display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 110px); align-items: start; }
@media (min-width: 960px) { .lg-shell { grid-template-columns: 260px minmax(0, 1fr); } }

/* table of contents */
.lg-toc { border: 1px solid var(--line); border-radius: var(--r2); background: var(--bone); padding: 6px; }
.lg-toc > summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--forest); display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 6px; min-height: 44px; }
.lg-toc > summary::-webkit-details-marker { display: none; }
.lg-toc > summary::after { content: ''; width: 9px; height: 9px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.lg-toc[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.lg-toc ol { list-style: none; margin: 0; padding: 4px 6px 10px; display: grid; gap: 2px; counter-reset: lgt; }
.lg-toc li { counter-increment: lgt; }
.lg-toc a { display: flex; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--text); font-size: .95rem; line-height: 1.35; min-height: 40px; align-items: baseline; }
.lg-toc a::before { content: counter(lgt); flex: none; min-width: 1.4em; font-weight: 700; color: var(--leaf); font-variant-numeric: tabular-nums; }
.lg-toc a:hover { background: #fff; color: var(--forest); }
.lg-toc a[aria-current="true"] { background: var(--forest); color: #fff; } .lg-toc a[aria-current="true"]::before { color: var(--lime); }
@media (min-width: 960px) {
  .lg-toc { position: sticky; top: calc(var(--hdr) + 16px); max-height: calc(100vh - var(--hdr) - 32px); overflow: auto; }
  .lg-toc a { min-height: 34px; padding: 6px 10px; }
  .lg-toc > summary { cursor: default; pointer-events: none; }
  .lg-toc > summary::after { display: none; }
}

/* article body */
.lg-doc { min-width: 0; max-width: 76ch; }
.lg-doc > section { padding-block: 0 clamp(26px, 3.4vw, 40px); margin-bottom: clamp(26px, 3.4vw, 40px); border-bottom: 1px solid var(--line); }
.lg-doc > section:last-of-type { border-bottom: 0; }
.lg-doc h2 { margin: 0 0 14px; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.25; color: var(--forest); font-weight: 700; }
.lg-doc h3 { margin: 24px 0 8px; font-size: 1.12rem; color: var(--ink); font-weight: 700; }
.lg-doc p, .lg-doc li { font-size: 1.03rem; line-height: 1.8; color: var(--text); }
.lg-doc p { margin: 0 0 14px; }
.lg-doc ul, .lg-doc ol { margin: 0 0 16px; padding-inline-start: 1.4em; display: grid; gap: 6px; }
.lg-doc ul { list-style: disc; } .lg-doc ol { list-style: decimal; }
.lg-doc li::marker { color: var(--leaf); }
.lg-doc a:not(.btn) { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 700; }
.lg-doc a:not(.btn):hover { color: var(--forest2); text-decoration-thickness: 2px; }
.lg-doc a:focus-visible, .lg-doc button:focus-visible, .lg-toc a:focus-visible, .lg-toc summary:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; border-radius: 4px; }
.lg-doc kbd { font: inherit; font-size: .9em; background: var(--bone); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 4px; padding: 1px 7px; direction: ltr; unicode-bidi: isolate; }
.lg-doc code { font-size: .9em; background: var(--bone); border-radius: 4px; padding: 1px 6px; direction: ltr; unicode-bidi: isolate; }

.lg-box { border: 1px solid var(--line2); border-inline-start: 4px solid var(--lime2); border-radius: var(--r2); background: var(--bone); padding: 18px 20px; margin: 0 0 24px; }
.lg-box > :last-child { margin-bottom: 0; }
.lg-box h2, .lg-box h3 { margin-top: 0; font-size: 1.15rem; }
.lg-box--warn { border-inline-start-color: var(--orange); background: #fff0e1; }
.lg-box--dark { background: var(--forest); color: #fff; border-color: var(--forest); border-inline-start-color: var(--lime); }
.lg-box--dark h2, .lg-box--dark h3, .lg-box--dark p, .lg-box--dark li { color: #fff; }
.lg-box--dark a:not(.btn) { color: var(--lime); }

/* tables: scroll inside their own wrapper, never the page */
.lg-tw { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r2); -webkit-overflow-scrolling: touch; }
.lg-tw:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.lg-doc table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.lg-doc caption { text-align: start; padding: 12px 14px; font-weight: 700; color: var(--forest); background: var(--bone); border-bottom: 1px solid var(--line); }
.lg-doc th, .lg-doc td { text-align: start; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.lg-doc th { background: var(--bone2); color: var(--ink); font-weight: 700; white-space: nowrap; }
.lg-doc tbody tr:last-child td, .lg-doc tbody tr:last-child th { border-bottom: 0; }
.lg-doc td code { white-space: nowrap; }

.lg-dl { display: grid; gap: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
.lg-dl > div { display: grid; gap: 2px 18px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lg-dl > div:last-child { border-bottom: 0; }
.lg-dl dt { font-weight: 700; color: var(--ink); } .lg-dl dd { margin: 0; line-height: 1.7; }
@media (min-width: 640px) { .lg-dl > div { grid-template-columns: 11rem 1fr; } }

.lg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.lg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: var(--r2); border: 1px solid var(--forest); background: #fff; color: var(--forest); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.lg-btn:hover { background: var(--forest); color: #fff !important; }
.lg-btn:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.lg-updated { font-size: .92rem; color: var(--muted); }
.lg-todo { background: #fff0e1; border-radius: 4px; padding: 0 4px; }

@media (max-width: 640px) {
  .lg-doc p, .lg-doc li { font-size: 1rem; line-height: 1.75; }
  .lg-box { padding: 16px; }
  .lg-hero h1 { max-width: none; }
}

@media print {
  .lg-toc, .lg-actions, .lg-hero::after, .skip, .pc, [data-consent-open] { display: none !important; }
  .lg-hero { background: none; color: #000; padding: 0 0 12px; border-bottom: 2px solid #000; }
  .lg-hero h1, .lg-hero .lead, .lg-meta, .lg-meta b, .lg-hero .crumbs a, .lg-hero .crumbs [aria-current] { color: #000; }
  .lg-shell { display: block; padding-block: 16px; }
  .lg-doc { max-width: none; } .lg-doc > section { break-inside: avoid-page; border-color: #6b5640; }
  .lg-doc a { color: #000; text-decoration: underline; }
  .lg-tw { overflow: visible; border-color: #6b5640; } .lg-doc table { min-width: 0; font-size: 10pt; }
  .lg-box, .lg-box--dark { background: none; color: #000; border: 1px solid #000; } .lg-box--dark * { color: #000 !important; }
}

/* the deletion widget (consent.css) is a light card inside the dark box: keep its own text colours */
.lg-box--dark .pd p, .lg-box--dark .pd li, .lg-box--dark .pd b { color: var(--ink); }
.lg-box--dark .pd a:not(.btn) { color: var(--forest); }

.lg-doc .lg-table--sm { min-width: 0; } .lg-doc .lg-table--sm th { white-space: normal; }
.lg-doc th [dir=ltr] { display: inline-block; }
