/* Lofiest - legal.css : 404 + privacy/terms document pages */

/* ---- 404 - a page adrift ---- */
.nf-hero { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: var(--sp-12) 0; position: relative; overflow: hidden; }
.nf-num {
    font-family: 'Sora', sans-serif; font-weight: 800; line-height: 0.9; letter-spacing: -0.02em;
    font-size: clamp(6rem, 20vw, 15rem);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nf-underline { display: block; width: 130px; height: 6px; border-radius: 4px; margin: 0.3rem auto 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
    .nf-num { animation: nf-drift 11s var(--ease-drift) infinite alternate; }
    .nf-underline { animation: nf-sway 7s ease-in-out infinite alternate; }
}
@keyframes nf-drift { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-12px) rotate(-1.2deg); } }
@keyframes nf-sway { from { transform: rotate(-2deg) translateX(-7px); } to { transform: rotate(2deg) translateX(7px); } }
.nf-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: var(--sp-3) 0 var(--sp-4); font-weight: 700; }
.nf-hero p { color: var(--text-secondary); max-width: 520px; line-height: 1.7; margin-bottom: var(--sp-6); }

/* ---- Legal document ---- */
.legal { max-width: 820px; margin: 0 auto; padding: var(--sp-10) 0; }
.legal-head { text-align: center; margin-bottom: var(--sp-8); }
.legal-head h1 {
    font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.6rem; }
.legal-card { padding: var(--sp-6); margin-bottom: 1.1rem; }
.legal-card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.9rem;
    display: flex; align-items: center; gap: 0.6rem; }
.legal-card h2 .icon { color: var(--accent-primary); }
.legal-card h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.5rem; color: var(--text-primary); }
.legal-card p, .legal-card li { color: var(--text-secondary); line-height: 1.7; font-size: 0.96rem; }
.legal-card p { margin-bottom: 0.8rem; }
.legal-card ul { padding-inline-start: 1.3rem; margin-bottom: 0.8rem; }
.legal-card li { margin-bottom: 0.4rem; }
.legal-card a { color: var(--accent-primary); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-card strong { color: var(--text-primary); }
.highlight-box { background: var(--glass-bg-strong); border: 1px solid var(--glass-border); border-radius: var(--r-md);
    padding: 1rem 1.2rem; margin: 1rem 0; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: var(--sp-8); }
.legal-toc a { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; padding: 0.4rem 0.9rem;
    border: 1px solid var(--glass-border); border-radius: var(--r-full); background: var(--glass-bg); transition: all 0.2s; }
.legal-toc a:hover { color: var(--accent-primary); border-color: var(--accent-primary); }
