﻿:root {
    --primary: #2563eb;
    --accent: #22d3ee;
    --dark: #0f172a;
    --text-main: #1e293b;
    --text-light: #64748b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background: #f8fafc;
}

header {
    background: var(--dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-content {
    background: white;
    margin: 40px auto;
    max-width: 900px;
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.update-date {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.legal-content section {
    margin-bottom: 35px;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    margin-top: 30px;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: var(--dark);
    font-weight: 600;
}

/* Footer styles moved to index.css for global consistency */
@media (max-width: 768px) {
    .legal-content {
        padding: 40px 25px;
        margin: 20px;
    }
}

/* --- STANDARD HEADER STYLES (Copied from index.html) --- */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav_links {
    display: flex;
    gap: 30px;
}

.nav_links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    text-decoration: none;
}

.nav_links a:hover {
    color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    /* Slightly smaller for header */
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: #1e40af;
    /* primary-dark */
    transform: translateY(-2px);
    color: white;
}

.btn-text {
    background: transparent;
    color: white;
    /* Header is dark */
}

.btn-text:hover {
    color: var(--accent);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Adjust logo to match */
.logo span {
    color: var(--accent);
}

/* --- MOBILE MENU & RESPONSIVENESS (Universal) --- */

/* Desktop: Hide Hamburger */
@media (min-width: 769px) {

    .mobile-menu-btn,
    .mobile-nav-overlay {
        display: none !important;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 20px;
        width: 100%;
    }

    header {
        position: sticky !important;
        top: 0;
        z-index: 1000;
        padding: 10px 0;
        background: rgba(15, 23, 42, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.3s;
    }

    .header-content {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo {
        position: relative;
        z-index: 1003;
        flex-grow: 1;
        /* Occupy remaining space */
        display: flex;
        justify-content: center;
        /* Center content */
        margin-right: 42px;
        /* Offset the hamburger width to center perfectly */
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        width: 42px;
        height: 42px;
        cursor: pointer;
        color: white;
        z-index: 1003;
        font-size: 1.4rem;
        transition: all 0.2s;
    }

    .mobile-menu-btn:active {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.15);
    }

    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #0f172a;
        z-index: 1002;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-30px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .mobile-nav-overlay a {
        font-size: 1.5rem;
        font-weight: 500;
        color: white;
        text-decoration: none;
        padding: 12px 30px;
        border-radius: 12px;
        width: 80%;
        max-width: 250px;
        text-align: center;
        background: rgba(255, 255, 255, 0.02);
        transition: all 0.2s;
    }

    .mobile-nav-overlay a:active {
        background: rgba(59, 130, 246, 0.1);
        color: #22d3ee;
    }

    .mobile-nav-overlay .btn-primary {
        background: #2563eb;
        width: 80%;
        max-width: 250px;
        font-size: 1.1rem;
        padding: 15px;
        margin-top: 10px;
        border-radius: 50px;
        opacity: 1 !important;
    }

    .nav_links,
    .auth-buttons {
        display: none !important;
    }
}

/* Final cleanup: ensure the page content doesn't overlap the fixed header */
.legal-content,
.hero,
.mission,
.team {
    position: relative;
    z-index: 1;
}

/* Footer Fixes */
.footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
}