/* ============================================================================
   LEGAL PAGES STYLES — Terminal HUD Aesthetic
   Privacy Policy & Terms of Service
   ============================================================================ */

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

body.legal-page {
    background: #050505;
    min-height: 100vh;
    color: #b9ccb2;
    font-family: 'Rajdhani', sans-serif;
    cursor: none;
    overflow-x: hidden;
}

/* --- Scanlines --- */
.bg-scanlines {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
}

/* --- Custom Cursor --- */
#custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease;
}

#custom-cursor.cursor-active {
    transform: translate(-50%, -50%) scale(1.4) rotate(45deg);
    filter: drop-shadow(0 0 6px #00FF41);
}

body.legal-page *,
body.legal-page a,
body.legal-page button { cursor: none; }

/* --- Scrollbar (global — file is only loaded on legal pages) --- */
body.legal-page {
    scrollbar-width: thin;
    scrollbar-color: #00FF41 #0a0a0a;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #00FF41; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,65,0.6); }

/* --- Bloom --- */
.bloom-text { text-shadow: 0 0 12px rgba(0, 255, 65, 0.5); }

/* --- Layout --- */
.legal-main {
    padding-top: 5rem;
    padding-bottom: 6rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Header --- */
.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    position: relative;
}

.legal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #00FF41;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
}

.legal-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    color: #e5e2e1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 255, 65, 0.25);
}

.legal-header .last-updated {
    font-family: 'IBM Plex Mono', monospace;
    color: rgba(185, 204, 178, 0.45);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* --- Content Typography --- */
.legal-content {
    padding: 0.5rem 0;
}

.legal-content h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00FF41;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
}

.legal-content h2::before {
    content: '// ';
    opacity: 0.35;
}

.legal-content h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(0, 255, 65, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.legal-content h3::before {
    content: '> ';
    color: #ffb800;
    opacity: 0.8;
}

.legal-content p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    color: #b9ccb2;
}

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

.legal-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.8;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: #b9ccb2;
}

.legal-content li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(0, 255, 65, 0.35);
    font-family: 'IBM Plex Mono', monospace;
}

.legal-content strong {
    color: #e5e2e1;
    font-weight: 600;
}

/* --- Contact Block --- */
.contact-info {
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-left: 3px solid #00FF41;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #00FF41;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.contact-info h3::before { content: none; }

.contact-info p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #b9ccb2;
    letter-spacing: 0.05em;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.contact-info a {
    color: #00FF41;
    text-decoration: none;
}

.contact-info a:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .legal-main {
        padding-top: 4rem; /* nav is h-16 (4rem) on mobile */
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }

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

    /* FOOTER: stack vertically so wide copyright text doesn't overflow,
       and reduce padding to match page side padding */
    body.legal-page footer {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        gap: 0.35rem;
    }
}

@media (max-width: 480px) {
    .legal-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
