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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Grid Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(30, 58, 138, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    position: relative;
    z-index: 100;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.4);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 6rem 2rem 2rem;
    transition: right 0.3s;
    z-index: 99;
    border-left: 1px solid rgba(30, 64, 175, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
    font-weight: 500;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #fff;
}

.mobile-menu .btn-primary {
    display: block;
    text-align: center;
    margin-top: 2rem;
}

/* Legal Container */
.legal-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 5% 5rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(30, 64, 175, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-header h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.last-updated {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.legal-content {
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.legal-section p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.legal-section ul li {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.legal-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-list {
    margin-top: 1rem;
}

.contact-list li {
    padding-left: 0;
}

.contact-list li::before {
    content: none;
}

.contact-list strong {
    color: #fff;
}

.legal-section a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.legal-section a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.legal-footer {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(30, 64, 175, 0.2);
    border-radius: 8px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.legal-footer p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links .btn-primary {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .legal-container {
        padding: 2rem 4% 3rem;
    }

    .legal-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .legal-section {
        margin-bottom: 2rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 0.95rem;
    }

    .legal-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem 4%;
    }

    .legal-container {
        padding: 1.5rem 4% 2.5rem;
    }

    .legal-section ul li {
        padding-left: 1.25rem;
    }
}