/* ============================ LEGAL PAGES (NEW LOOK) ============================
   about/legal.php on the site shell: the artwork column (sticky, dark, 38%) and the paper. Under 1100px the
   artwork is a 300px band on top; print drops everything but the text (black on white, links spelled out).
   ========================================================================== */
.lgp { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); padding-top: 74px; /* under the shell's fixed header, dark like it */ background: #0a0a0a; color: #0a0a0a; font-family: 'Archivo', sans-serif; }
.lgp *, .lgp *::before, .lgp *::after { box-sizing: border-box; }
.lgp p { margin: 0; }
.lgp a { color: inherit; }

.lgp-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #00FF50; color: #0a0a0a !important; font: 800 12px 'Archivo', sans-serif; letter-spacing: .1em; text-decoration: none; }
.lgp-skip:focus { top: 12px; position: fixed; }

/* — the artwork — */
.lgp-art { position: sticky; top: 74px; height: calc(100vh - 74px); overflow: hidden; background: #0a0a0a; color: #f5f5f3; transition: top .35s, height .35s; }
.hp-scrolled .lgp-art { top: 40px; height: calc(100vh - 40px); }
.lgp-art-img { position: absolute; inset: 0; background: center / cover no-repeat; transition: opacity .4s; }
.lgp-art-img.out { opacity: 0; }
.lgp-art-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.15) 45%, rgba(10,10,10,0) 70%); }
.lgp-art-hatch { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(-45deg, #00FF50 0 5px, #0a0a0a 5px 10px); }
/* no picture: type and hatching only */
.lgp-art-type { background: repeating-linear-gradient(-45deg, #141414 0 14px, #0a0a0a 14px 28px); }
.lgp-art-copy { position: absolute; left: clamp(18px, 2.4vw, 32px); right: 28px; bottom: clamp(18px, 2.4vw, 30px); }
.lgp-kick { font: 800 10.5px 'Archivo', sans-serif; letter-spacing: .16em; color: #00FF50; margin-bottom: 10px; }
.lgp-big { font: 900 clamp(40px, 4.6vw, 80px)/.86 'Archivo', sans-serif; letter-spacing: -.055em; margin-bottom: 18px; max-width: 9ch; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.lgp-by { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.lgp-face { width: 36px; height: 36px; flex: none; border-radius: 999px; background: #333 center / cover no-repeat; border: 2px solid #00FF50; }
.lgp-by-t { min-width: 0; flex: 1; }
.lgp-by-k { font: 800 9.5px 'Archivo', sans-serif; letter-spacing: .14em; color: #bdbdb8; }
.lgp-by-t a { font: 900 15px 'Archivo', sans-serif; color: #f5f5f3; text-decoration: none; }
.lgp-by-t a:hover { color: #00FF50; }
.lgp-shuffle { width: 38px; height: 38px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.35); background: none; color: #f5f5f3; cursor: pointer; font: 900 17px 'Archivo', sans-serif; border-radius: 0; }
.lgp-shuffle:hover, .lgp-shuffle:focus-visible { border-color: #00FF50; color: #00FF50; }

/* — the paper — */
.lgp-paper { min-width: 0; background: #f5f5f3; }
.lgp-in { max-width: 980px; padding: clamp(28px, 4vw, 56px) clamp(18px, 4vw, 60px) 100px; }
.lgp-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 26px; }
.lgp-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.lgp-tabs a, .lgp-print { white-space: nowrap; padding: 9px 12px; border: 2px solid #0a0a0a; background: transparent; color: #0a0a0a; font: 800 11px 'Archivo', sans-serif; letter-spacing: .12em; text-decoration: none; border-radius: 0; cursor: pointer; }
.lgp-tabs a.on { background: #0a0a0a; color: #00FF50; }
.lgp-tabs a:not(.on):hover, .lgp-print:hover { background: #0a0a0a; color: #f5f5f3; }
.lgp-print { margin-left: auto; }
.lgp .lgp-h1 { font: 900 clamp(44px, 5.6vw, 92px)/.86 'Archivo', sans-serif; letter-spacing: -.06em; margin: 0 0 14px; color: #0a0a0a; overflow-wrap: break-word; }
.lgp .lgp-print-url { display: none; }
.lgp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 18px; border-bottom: 2px solid #0a0a0a; font: 700 13px 'Archivo', sans-serif; color: #4a4a46; }

.lgp-beta { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0 0; padding: 16px 18px; background: #0a0a0a; color: #f5f5f3 !important; text-decoration: none; font: 600 14px/1.5 'Archivo', sans-serif; }
.lgp-beta:hover { box-shadow: 6px 6px 0 #00FF50; }
.lgp-beta-tag { flex: none; padding: 4px 8px; background: #ffb020; color: #0a0a0a; font: 800 9.5px 'Archivo', sans-serif; letter-spacing: .14em; }

/* — contents: a sticky bar of numbered chips, the current section in green — */
.lgp-toc { position: sticky; top: 74px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin: 22px 0 8px; background: #f5f5f3; border-bottom: 1px solid #d8d8d3; transition: top .35s; }
.lgp-toc::-webkit-scrollbar { display: none; }
.hp-scrolled .lgp-toc { top: 40px; }
.lgp-toc a { flex: none; white-space: nowrap; padding: 7px 10px; font: 800 11.5px 'Archivo', sans-serif; text-decoration: none; color: #4a4a46; border: 1px solid #d8d8d3; }
.lgp-toc a:hover { color: #0a0a0a; border-color: #0a0a0a; }
.lgp-toc a.on { color: #0a0a0a; background: #00FF50; border-color: #0a0a0a; }
.lgp-toc a b { font-weight: 900; }

/* — the text — */
.lgp-doc:focus { outline: none; }
.lgp-intro { padding: 22px 0 8px; font: 500 16.5px/1.7 'Archivo', sans-serif; color: #1a1a1a; max-width: 66ch; }
.lgp-intro h1, .lgp-intro h2, .lgp-intro h3 { font: 900 clamp(20px, 2vw, 26px)/1.1 'Archivo', sans-serif; letter-spacing: -.03em; margin: 0 0 12px; color: #0a0a0a; }
.lgp-intro p + p { margin-top: 12px; }
.lgp-sec { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 20px; padding: 26px 0; border-bottom: 1px solid #d8d8d3; scroll-margin-top: 140px; }
.lgp-num { font: 900 64px/.85 'Archivo', sans-serif; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px #0a0a0a; }
.lgp-sec-in { min-width: 0; }
.lgp-sec-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.lgp .lgp-sec-hd h2 { font: 900 clamp(22px, 2.2vw, 30px)/1.05 'Archivo', sans-serif; letter-spacing: -.035em; margin: 0; color: #0a0a0a; }
.lgp-anchor { font: 800 14px 'Archivo', sans-serif; color: #9a9a95 !important; text-decoration: none; }
.lgp-anchor:hover, .lgp-anchor:focus-visible { color: #0a0a0a !important; }
.lgp-body, .lgp-outro { font: 500 16.5px/1.7 'Archivo', sans-serif; color: #1a1a1a; max-width: 66ch; overflow-wrap: break-word; }
.lgp-body p + p, .lgp-outro p + p { margin-top: 12px; }
.lgp-body ul, .lgp-body ol { margin: 10px 0 0 1.2em; padding: 0; }
.lgp-outro { padding: 22px 0 0; }

.lgp-ai { margin-top: 30px; padding: clamp(20px, 3vw, 30px); background: #0a0a0a; color: #f5f5f3; border-left: 8px solid #00FF50; }
.lgp .lgp-ai-k { font: 800 10.5px 'Archivo', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #00FF50; margin: 0 0 10px; }
.lgp-ai-t { font: 600 clamp(16px, 1.5vw, 20px)/1.55 'Archivo', sans-serif; }

.lgp-ends { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.lgp-ends a { display: block; padding: 16px; background: #fff; border: 2px solid #0a0a0a; text-decoration: none; transition: box-shadow .2s; }
.lgp-ends a:hover, .lgp-ends a:focus-visible { box-shadow: 6px 6px 0 #00FF50; }
.lgp-ends span { display: block; font: 800 9.5px 'Archivo', sans-serif; letter-spacing: .16em; color: #4a4a46; }
.lgp-ends b { display: block; font: 900 16px 'Archivo', sans-serif; margin-top: 6px; }

.lgp a:focus-visible, .lgp button:focus-visible { outline: 3px solid #00FF50; outline-offset: 2px; }

@media (max-width: 1100px) {
    .lgp { grid-template-columns: minmax(0, 1fr); }
    .lgp-art, .hp-scrolled .lgp-art { position: relative; top: 0; height: 300px; }
}
@media (max-width: 640px) {
    .lgp-sec { grid-template-columns: minmax(0, 1fr); }
    .lgp-num { font-size: 40px; margin-bottom: 8px; }
    .lgp-print { margin-left: 0; }
    .lgp-body, .lgp-intro, .lgp-outro { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .lgp-art-img, .lgp-art, .lgp-toc { transition: none; }
}

/* — print / PDF: the text only, black on white, links spelled out — */
@media print {
    body > *:not(#hpMain), .lgp-skip, .lgp-art, .lgp-bar, .lgp-toc, .lgp-ends, .lgp-anchor, .lgp-num { display: none !important; }
    html, body, .lgp, .lgp-paper { background: #fff !important; color: #000 !important; }
    .lgp { display: block; padding-top: 0; }
    .lgp-in { max-width: none; padding: 0; }
    .lgp .lgp-h1 { font-size: 34pt; color: #000; }
    .lgp .lgp-print-url { display: block; margin: 0 0 8pt; font: 600 10pt 'Archivo', sans-serif; }
    .lgp-meta { color: #000; border-color: #000; }
    .lgp-beta { background: none; color: #000 !important; border: 1px solid #000; box-shadow: none; }
    .lgp-beta-tag { background: none; border: 1px solid #000; }
    .lgp-sec { display: block; padding: 12pt 0; border-color: #999; break-inside: avoid-page; }
    .lgp .lgp-sec-hd h2 { font-size: 15pt; color: #000; }
    .lgp-body, .lgp-intro, .lgp-outro, .lgp-ai-t { font-size: 11pt; line-height: 1.5; color: #000; max-width: none; }
    .lgp-ai { background: none; color: #000; border: 1px solid #000; border-left: 4pt solid #000; break-inside: avoid-page; }
    .lgp .lgp-ai-k { color: #000; }
    .lgp-doc a[href^="http"]::after, .lgp-doc a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
