body {
    background-color: #0a0a0a;
    color: #f3f4f6;
    overflow-x: hidden;
}

.spotlight-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.spotlight {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform, opacity;
}

.spotlight-purple {
    background: radial-gradient(circle, rgba(147, 0, 233, 0.9) 0%, transparent 70%);
    animation: drift-purple 14s ease-in-out infinite, pulse-purple 6s ease-in-out infinite;
}

.spotlight-white {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
    animation: drift-white 16s ease-in-out infinite reverse, pulse-white 5s ease-in-out infinite;
}

@keyframes drift-purple {
    0%, 100% { transform: translate(-10vw, 20vh) scale(1); }
    50% { transform: translate(70vw, 60vh) scale(1.2); }
}

@keyframes drift-white {
    0%, 100% { transform: translate(60vw, 10vh) scale(1.1); }
    50% { transform: translate(10vw, 70vh) scale(0.9); }
}

@keyframes pulse-purple {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.5; }
}

@keyframes pulse-white {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

.glass-nav {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(147, 0, 233, 0.15);
}

.legal-content h2 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content h3 {
    color: #e5e7eb;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    color: #9ca3af;
    line-height: 1.75;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.legal-content a {
    color: #B233FF;
}

.legal-content a:hover {
    color: #fff;
}

.legal-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.legal-page-main {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

@media (max-width: 639px) {
    .legal-content h1 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    .legal-content h2 {
        font-size: 1.15rem;
    }

    .legal-nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .legal-nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0.75rem 1rem;
        background: rgba(20, 20, 20, 0.8);
        border-radius: 0.75rem;
        border: 1px solid rgba(147, 0, 233, 0.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spotlight { animation: none !important; opacity: 0.3 !important; }
}
