/* shared/css/legal.css — the legal pages and the "page not found" page of every site (templates/); the accent and the link
   colours (--link, --link-dark: AA on white and on black, lib/sites.mjs `link`) come from the body, the brand's and the
   button's colours from the site's own css/brand.css */
*{box-sizing:border-box}
html{background:#fff;overscroll-behavior:none}
body{margin:0;overscroll-behavior:none;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#141220;background:#fff;line-height:1.6}
/* the brand lines up with the text column below it (.legal: 760 px wide at most, 22 px inside) at every width */
.lg-head{border-bottom:1px solid #e8e5ef;padding:14px max(22px,calc(50% - 358px))}
.lg-brand{display:inline-flex;align-items:center;gap:9px;font-family:"Schibsted Grotesk",-apple-system,sans-serif;font-weight:800;font-size:18px;line-height:1.2;color:#141220;text-decoration:none}
.lg-brand svg{flex:0 0 auto}
/* a word wider than its line wraps instead of scrolling the page sideways (P6, measured: at 320 px with Linux CI's
   Liberation Sans the h1's "ProtectMyDataSolutions" ends at 322.5 px; narrower, the body's mailbox links and a bare
   domain do too); a word that fits its line never breaks, so nothing moves at the widths where everything fits */
.legal{max-width:760px;margin:0 auto;padding:32px 22px 56px;overflow-wrap:anywhere}
.legal h1{font-size:clamp(26px,5vw,38px);line-height:1.15;margin:0 0 18px}
/* up to 360 px the h1 steps down so its first word, "ProtectMyDataSolutions", stays whole on a 320 px phone (P6 fix
   round 1, measured with Arial = Liberation Sans metrics: 271.6 px of the 276 px line at 23.5 px, 277.4 px at 24 px) */
@media(max-width:360px){.legal h1{font-size:23.5px}}
.legal h2{font-size:22px;margin:32px 0 10px}
.legal h3{font-size:18px;margin:24px 0 8px}
.legal a{color:var(--link);font-weight:600}
.legal .interim{background:#fff6e5;border:1px solid #f2d7a6;border-radius:12px;padding:12px 16px}
.legal .review-note{background:#f3f1fa;border:1px solid #d9d3ee;border-radius:12px;padding:12px 16px}
.lg-updated{color:#6b6472;font-size:14px;margin-top:40px}
/* centred at every width, also a line that wraps (a long mailbox on a phone) */
.lg-foot{display:flex;flex-wrap:wrap;gap:18px;justify-content:center;text-align:center;border-top:1px solid #e8e5ef;padding:20px 22px;font-size:14px}
.lg-foot a{color:#413c57;overflow-wrap:anywhere}
/* the "page not found" page: the message centred in the room between the header and the footer, the footer at the
   bottom of the screen, and one button back to the home page (its colours: css/brand.css) */
body.lg-404{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.lg-404 main.legal{flex:1 0 auto;width:100%;display:flex;flex-direction:column;justify-content:center;text-align:center}
.lg-404 .legal p{margin:0 0 8px}
.legal a.lg-btn{display:inline-flex;align-items:center;justify-content:center;max-width:100%;margin-top:18px;padding:12px 24px;border-radius:980px;font-size:16px;line-height:1.3;text-decoration:none}
@media(prefers-color-scheme:dark){html{background:#000}body{color:#f5f5f7;background:#000}.lg-brand{color:#f5f5f7}.lg-head,.lg-foot{border-color:#2a2a2d}.lg-foot a{color:#a1a1a6}.legal .interim{background:#2a1a10;border-color:#5a3a20}.legal .review-note{background:#1d1a2b;border-color:#3a3550}.legal a{color:var(--link-dark)}.lg-updated{color:#a1a1a6}}
