/* Legal pages (privacy.html, terms.html), 2026-11-16. Builds on the blog reader (css/pages/page-blog.css: header column, reading column,
   contents beside it). Only what a legal text adds: numbered section headings, lists, links in the text, the "Last updated" line, the preview
   line and the closing contact block. Tokens only, so light and dark follow the theme. */
.lg .lg-head{padding-bottom:clamp(20px,2.4vw,36px)}
.lg .lg-head h1{font-size:clamp(40px,5.4vw,80px);margin-bottom:20px}
.lg-by{gap:6px 18px}
.lg-upd-l{color:var(--mut)}
.lg-upd time{color:var(--ink);letter-spacing:.12em}
.lg-pv{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;margin:18px 0 0;font:400 15px/1.5 var(--sans);color:var(--mut)}
.lg-pv[hidden]{display:none}
.lg-pv-t{font:600 12px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ink);padding-bottom:4px;border-bottom:2px solid var(--pink)}
.v7 .lg-art{padding-top:clamp(36px,4.4vw,72px)}

/* the text */
.lg-body{counter-reset:lg}
.lg-sec{counter-increment:lg}
.lg-sec+.lg-sec{margin-top:8px}
.lg-body h2{display:flex;gap:16px;align-items:baseline;margin-top:56px}
.lg-sec:first-child h2{margin-top:0}
.lg-body h2:before{content:counter(lg,decimal-leading-zero);flex:none;font:600 13px/1 var(--sans);letter-spacing:.12em;color:var(--mut);transform:translateY(-.35em)}
.lg-body ul,.lg-body ol{margin:0 0 26px;padding:0 0 0 1.25em;color:var(--ink)}
.lg-body ul{list-style:disc}
.lg-body ol{list-style:decimal}
.lg-body li{margin:0 0 12px;padding-left:4px;font-size:calc(19px * var(--bl-scale,1));line-height:1.7}
.lg-body li::marker{color:var(--mut)}
.lg-body strong{font-weight:650;color:var(--ink)}
.lg-body a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.lg-body a:hover{text-decoration-thickness:2px}
.lg-body a:focus-visible{outline:2px solid var(--pink);outline-offset:3px;border-radius:3px}

/* closing contact block: a hairline, a short line and the way to the contact page (no numbers here: footer and contact page only) */
.lg-contact{position:relative;margin-top:64px;padding-top:24px;border-top:1px solid var(--line)}
.lg-contact:before{content:"";position:absolute;left:0;top:-1px;width:44px;height:2px;background:var(--cta-grad)}
.lg-contact .bl-k{margin:0 0 12px}
.lg-contact-t{margin:0 0 22px;font:400 clamp(24px,2.2vw,32px)/1.25 var(--serif);letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.lg-contact-a{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin:0}
.lg .lg-contact-a .btn{width:auto;flex:none}

@media(max-width:700px){
 .lg-body li{font-size:calc(17px * var(--bl-scale,1))}
 .lg-body h2{gap:12px;margin-top:44px}
 .lg-contact{margin-top:48px}
}
@media print{
 .lg-side,.lg-contact .btn,.bl-end{display:none}
}

/* 2026-11-24 owner: no numbers before the section titles (the contents list keeps them); titles in the theme colour with an effect.
   Page title: burgundy-to-magenta gradient text that rises in on load. Section titles: burgundy, rise out of a mask when they enter, with a
   short gradient underline that draws in after them. Dark theme: soft pink. */
.lg-body h2:before{content:none;display:none}
.lg-body h2{display:block;position:relative;color:var(--burg);padding-bottom:16px;margin-bottom:22px}
.lg-body h2:after{content:"";position:absolute;left:0;bottom:0;width:56px;height:2px;border-radius:2px;background:var(--cta-grad);transform:scaleX(0);transform-origin:0 50%;transition:transform .9s cubic-bezier(.65,0,.2,1) .25s}
.lg-body h2.lg-in:after{transform:scaleX(1)}
.lg-body h2{clip-path:inset(0 0 100% 0);transform:translateY(26px);transition:clip-path .9s cubic-bezier(.77,0,.18,1),transform .9s cubic-bezier(.16,1,.3,1)}
.lg-body h2.lg-in{clip-path:inset(-20% -4% -30% -4%);transform:none}
.lg .lg-head h1{background:var(--cta-grad);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;padding-bottom:.08em;
 opacity:0;transform:translateY(30px);transition:opacity .9s ease,transform 1.1s cubic-bezier(.16,1,.3,1)}
.lg .lg-head h1.lg-in{opacity:1;transform:none}
:root[data-theme=dark] .lg-body h2{color:#eaa3cf}
:root[data-theme=dark] .lg .lg-head h1{background:linear-gradient(135deg,#e46db5 0%,#f7aad7 100%);-webkit-background-clip:text;background-clip:text}
@media(prefers-reduced-motion:reduce){.lg-body h2,.lg .lg-head h1{clip-path:none;transform:none;opacity:1;transition:none}.lg-body h2:after{transform:none;transition:none}}
