.legal-page { width:min(760px,calc(100% - 48px)); margin:64px auto 96px; }
.legal-page h1 { font-size:clamp(38px,6vw,56px); line-height:1.1; letter-spacing:-.045em; }
.legal-page .eyebrow { margin-bottom:18px; }
.legal-intro { margin-top:24px; font-size:20px; color:var(--muted); }
.legal-date { margin-top:18px; color:var(--muted); font-size:14px; }
.legal-page section { margin-top:40px; }
.legal-page h2 { font-size:24px; line-height:1.3; letter-spacing:-.025em; margin-bottom:16px; }
.legal-page section p + p { margin-top:16px; }
.legal-page li { line-height:1.65; padding-left:4px; margin:12px 0; }
.legal-page ul { padding-left:24px; }
.legal-page a{ color:var(--primary); text-decoration:underline; text-underline-offset:4px; }
.footer { flex-wrap:wrap; }
.footer-legal { display:flex; flex-basis:100%; order:2; gap:20px; align-items:center; justify-content:center; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color:var(--primary); text-decoration:underline; text-underline-offset:4px; }
@media(max-width:650px) { .legal-page { margin-top:36px; } }
@media(max-width:480px) { .footer-legal { order:4; font-size:11px; } }

/* Keep both footer rows centered independently of the side content widths. */
.footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
.footer>div:first-child,.footer>.brand{grid-column:1;grid-row:1;justify-self:start}
.footer>.footer-socials{grid-column:2;grid-row:1;justify-self:center;justify-content:center}
.footer>span{grid-column:3;grid-row:1;justify-self:end}
.footer>.footer-legal{grid-column:1/-1;grid-row:2;justify-self:center}
@media(max-width:650px){
 .footer{grid-template-columns:minmax(0,1fr) auto}
 .footer>span{grid-column:2}
 .footer>.footer-socials{grid-column:1/-1;grid-row:2}
 .footer>.footer-legal{grid-row:3}
}

/* Buttons inside legal-style pages (the 404 page) keep their own white text. */
.legal-page a.button{color:#fff;text-decoration:none;margin-top:12px}
