/* BOOKMARK site · the fine print (12.11.2026): the accessibility statement and the privacy policy (site-src/legal.js).
   Laid out like a book's contents page: the chapters listed on the reading side, sticky on wide screens, with the mint bookmark
   on the chapter you're reading (assets/js/legal.js), and the chapters beside it, each under a black rule. Linked only from those two pages. */

.lg .label { color: #666; }   /* 5.7:1 on white: these pages' own labels pass AA contrast */

.lg-hero { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 2.1vw, 40px); padding-bottom: clamp(56px, 7vw, 128px); }
.lg-hero .display { line-height: .9; }
.lg-hero .lead { max-width: 34em; }
.lg-date { margin-top: clamp(4px, 1vw, 16px); }

.lg-body { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(40px, 7vw, 140px); align-items: start; }

/* the contents */
.lg-toc { position: sticky; top: calc(var(--hh) + 32px); }
.lg-toc ol { list-style: none; margin-top: 14px; border-top: 1px solid var(--black); }
.lg-toc li { position: relative; border-bottom: 1px solid var(--g1); }
.lg-toc a { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; padding-inline-start: 34px; font: 500 var(--fs-text)/1.3 var(--en); letter-spacing: .04em; text-transform: uppercase; transition: opacity .3s var(--ease); }
.lg-toc a:hover { opacity: .6; }
.lg-toc .lg-n { font: 700 var(--fs-label)/1 var(--mono); letter-spacing: .12em; color: #666; }
.lg-toc li::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 18px; height: 0; background: var(--mint);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%); transition: height .45s cubic-bezier(.3, 1.4, .5, 1); }
.lg-toc li.is-on::before { height: 34px; }
.lg-toc li.is-on a { font-weight: 700; }

/* the chapters */
.lg-ch { border-top: 1px solid var(--black); padding-block: clamp(28px, 3.2vw, 56px); scroll-margin-top: calc(var(--hh) + 24px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lg-ch:first-child { border-top: 0; padding-top: 0; }
.lg-h { margin-bottom: 6px; }
html[dir="rtl"] .lg-h { text-align: right; }
html[dir="ltr"] .lg-h { text-align: left; }
.lg-text { max-width: 44em; }
.lg-text p + p, .lg-text p + ul, .lg-text ul + p { margin-top: 1em; }
.lg-text a:not(.btn) { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.lg-text a:not(.btn):hover { text-decoration-thickness: 2px; }
.lg-text strong { font-weight: 700; }

/* lists: a small mint bookmark for a bullet */
.lg-list { list-style: none; }
.lg-list li { position: relative; padding-inline-start: 28px; }
.lg-list li + li { margin-top: .75em; }
.lg-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .38em; width: 10px; height: 15px; background: var(--mint);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }

/* the accessibility contact */
.lg-contact { list-style: none; margin: 1.6em 0; max-width: 640px; }
.lg-contact li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-top: 1px solid var(--black); padding: 15px 0; }
.lg-contact li:last-child { border-bottom: 1px solid var(--black); }
.lg-contact a, .lg-contact span:not(.label) { font-weight: 500; }
.lg-contact a { text-decoration: none !important; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.lg-contact a:hover { border-color: currentColor; }
.lg-small { font-size: var(--fs-text); color: var(--slate); }

@media (max-width: 900px) {
  .lg-body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lg-toc { position: static; }
  .lg-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .lg-toc a { padding-block: 11px; font-size: var(--fs-text); }
  .lg-ch:first-child { border-top: 1px solid var(--black); padding-top: clamp(28px, 3.2vw, 56px); }
}
@media (max-width: 520px) {
  .lg-toc ol { grid-template-columns: minmax(0, 1fr); }
  .lg-contact li { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-toc li::before, .lg-toc a { transition: none; }
}
