/* ============================================================
   LEGAL & 404 PAGES — Shared template overrides
   These pages reuse the lab's nav (style.css) but:
   - Hide the hamburger menu (not needed on standalone pages)
   - Hide the mobile overlay
   - Hide the particle canvas
   - Allow page scrolling (not SPA viewport-locked)
   ============================================================ */

/* ---- Body: allow natural scroll ---- */
body.lab-standalone-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #111111;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ---- Hide SPA-only elements ---- */
body.lab-standalone-page .lab-nav-hamburger,
body.lab-standalone-page .lab-mobile-overlay,
body.lab-standalone-page .lab-nav-canvas {
    display: none !important;
}

/* ---- Nav: make it non-fixed for scroll pages ---- */
body.lab-standalone-page .lab-nav-wrapper {
    position: relative;
}

/* ---- Main content area ---- */
body.lab-standalone-page .lab-standalone-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 32px) 40px;
    box-sizing: border-box;
}

/* ---- Footer: static, not fixed (keeps dark background from style.css) ---- */
body.lab-standalone-page .lab-footer-band {
    position: relative;
}

/* ---- Skip link ---- */
.lab-skip-link {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 10001;
    padding: 10px 14px;
    border: 1px solid rgba(17, 17, 17, 0.22);
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-size: var(--lab-fs-label);
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lab-skip-link:focus,
.lab-skip-link:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ============================================================
   LEGAL PAGE CONTENT — layout for cookie, privacy, legal notice
   ============================================================ */

.lab-legal-shell {
    width: min(100%, 920px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lab-legal-kicker {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-size: var(--lab-fs-label);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.52);
}

.lab-legal-title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: 0.02em;
    color: #111111;
}

.lab-legal-intro,
.lab-legal-shell p,
.lab-legal-shell li {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-size: var(--lab-fs-body-sm);
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: 0.01em;
    color: rgba(17, 17, 17, 0.84);
}

.lab-legal-grid {
    display: grid;
    gap: 22px;
}

.lab-legal-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.lab-legal-section h2 {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-size: var(--lab-fs-caption);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.54);
}

.lab-legal-section ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

/* ---- Mobile legal ---- */
@media (max-width: 600px) {
    .lab-legal-shell {
        gap: 20px;
    }

    .lab-legal-intro,
    .lab-legal-shell p,
    .lab-legal-shell li {
        font-size: 14px;
        line-height: 1.8;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    body.lab-standalone-page .lab-nav-wrapper::after {
        animation: none;
    }
}
