/* Shared styles for the legal pages (privacy_policy.html, terms_of_service.html).
   The landing page keeps its own inlined CSS; these two share this file. */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050508;
    --nav: #0a0a0f;
    --text: #f0ece4;
    --text-muted: #8a8780;
    --accent: #5ec0e8;
    --rule: rgba(255, 255, 255, 0.09);
    --ease: cubic-bezier(0.215, 0.610, 0.355, 1);
    --nav-h: 84px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
}

/* ── Header ───────────────────────────────────────────── */
.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--nav-h);
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--nav);
    border-bottom: 1px solid var(--rule);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.studio-logo {
    height: 52px;
    width: auto;
    flex-shrink: 0;
}

.studio-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-nav {
    margin-left: auto;
}

.header-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.header-nav a:hover {
    color: #fff;
}

/* ── Document ─────────────────────────────────────────── */
.legal {
    max-width: 820px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 72px) 28px 100px;
}

.legal h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.6rem, 7vw, 4rem);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}

.legal-updated {
    margin-top: 14px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--rule);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.legal h2 {
    margin: 54px 0 18px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.legal h3 {
    margin: 36px 0 14px;
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--accent);
}

.legal p {
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

.legal strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.legal ul {
    margin: 0 0 22px 4px;
    padding-left: 22px;
}

.legal li {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.legal li::marker {
    color: var(--accent);
}

.legal a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(94, 192, 232, 0.35);
    overflow-wrap: anywhere;
    transition: border-color 0.3s var(--ease);
}

.legal a:hover {
    border-bottom-color: var(--accent);
}

/* ── Footer ───────────────────────────────────────────── */
footer {
    padding: 44px 28px 56px;
    text-align: center;
    border-top: 1px solid var(--rule);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 700px) {
    :root { --nav-h: 72px; }

    .floating-header {
        padding: 0 18px;
    }

    .studio-logo {
        height: 42px;
    }

    .studio-name {
        display: none;
    }

    .legal {
        padding: calc(var(--nav-h) + 48px) 20px 72px;
    }

    .legal h2 {
        margin-top: 42px;
        font-size: 1.6rem;
    }

    .legal p,
    .legal li {
        font-size: 0.97rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; }
}
