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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.025;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo,
.footer-logo {
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo {
    font-size: 1.5rem;
    text-decoration: none;
}

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

.nav-links a,
.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a[aria-current='page'],
.mobile-menu a:hover,
.mobile-menu a[aria-current='page'] {
    color: var(--text-primary);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    border-radius: 50px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 999;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    padding: 5rem 2rem 2rem;
    background: rgba(10, 10, 15, 0.98);
    border-left: 1px solid var(--glass-border);
    transition: right 0.3s ease;
}

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

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-menu .nav-cta {
    margin-top: 2rem;
    text-align: center;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    display: none;
    background: rgba(0, 0, 0, 0.5);
}

.menu-overlay.active {
    display: block;
}

.legal-page {
    position: relative;
    padding: 9rem 5% 6rem;
}

.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 70vw;
    height: 30rem;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 65%);
    pointer-events: none;
}

.legal-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 4rem;
}

.legal-header h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 20%, var(--accent-indigo) 70%, var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--text-secondary);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-section h2 {
    margin-bottom: 1rem;
    font-size: 1.55rem;
    line-height: 1.35;
}

.legal-section h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.15rem;
}

.legal-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 1rem 0 0 1.25rem;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 0.65rem;
    padding-left: 0.4rem;
}

.legal-section a {
    color: #a5b4fc;
}

.protected-email {
    color: #a5b4fc;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer {
    padding: 4rem 5% 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-info,
.footer-address {
    color: var(--text-secondary);
}

.footer-address {
    margin: 0.5rem 0 1.25rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #a5b4fc;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    padding-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 600px) {
    .legal-page {
        padding-top: 7.5rem;
    }

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

    .legal-section {
        margin-bottom: 2.25rem;
        padding-bottom: 2.25rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}
