/* =========================================
   1. BASE & RESET (Common)
   ========================================= */
:root {
    --primary: #c6c6c6;
    --background: #0f1418;
    --surface: #1b2025;
    --on-surface: #dfe3e9;
    --on-surface-variant: #cfc4c5;
    --secondary: #adc6ff;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .font-space {
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   2. MOBILE STYLES (Default)
   ========================================= */

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

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 24, 0.6);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
}

header .btn {
    width: auto;
    padding: 0 16px;
    font-size: 13px;
    height: 32px; /* Matches the visual height of the logo */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    height: 44px;
    font-size: 14px;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

/* Main Content */
main {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    position: relative;
    z-index: 10;
}

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

h1 {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 24px;
    text-align: center;
}

.last-updated {
    color: var(--on-surface-variant);
    margin-bottom: 40px;
    font-style: italic;
    font-size: 13px;
    text-align: center;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.legal-section p {
    color: var(--on-surface-variant);
    margin-bottom: 16px;
    font-size: 15px;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
}

.blob {
    position: fixed;
    top: 20%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(5,102,217,0.15) 0%, rgba(156,73,235,0.15) 100%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    border-radius: 4px;
    margin-bottom: 24px;
}

@keyframes roaming {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30vw, 30vh) scale(1.3); }
    50% { transform: translate(-10vw, 50vh) scale(0.8); }
    75% { transform: translate(-25vw, 15vh) scale(1.2); }
}

.animate-roaming {
    animation: roaming 20s infinite ease-in-out;
}

/* Footer */
footer {
    padding: 60px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo-col {
    grid-column: 1 / -1;
    margin-bottom: 24px;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-label {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
}

.footer-connect-section {
    margin-bottom: 48px;
}

.footer-connect-header {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.footer-connect-header .footer-label {
    margin-bottom: 0;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--on-surface-variant);
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desktop-only {
    display: none;
}

.footer-cert {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-cert .material-symbols-outlined {
    font-size: 16px;
    color: var(--secondary);
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 500;
}

.back-to-top .material-symbols-outlined {
    font-size: 18px;
}

.social-links {
    display: flex;
    gap: 24px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    z-index: 2000;
    transition: transform 0.5s ease;
}

.translate-y-full {
    transform: translateY(150%);
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cookie-title {
    font-size: 18px;
}

.cookie-desc {
    font-size: 13px;
    color: var(--on-surface-variant);
    margin-bottom: 24px;
}

.cookie-actions {
    display: grid;
    gap: 12px;
}

/* =========================================
   3. DESKTOP STYLES (min-width: 1024px)
   ========================================= */
@media (min-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .logo {
        font-size: 24px;
    }

    header .btn {
        padding: 0 20px;
        font-size: 14px;
        height: 36px; /* Matches the visual height of the logo on desktop */
    }

    .btn-primary:hover {
        transform: scale(0.95);
        background: #e2e2e2;
    }

    /* Main Content */
    main {
        padding-top: calc(var(--header-height) + 60px);
        padding-bottom: 100px;
    }

    h1 {
        font-size: clamp(32px, 5vw, 48px);
        margin-bottom: 32px;
        text-align: left;
    }

    .last-updated {
        margin-bottom: 64px;
        font-size: 14px;
        text-align: left;
    }

    .legal-section {
        margin-bottom: 48px;
    }

    .legal-section h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .blob {
        width: 1000px;
        height: 1000px;
        filter: blur(200px);
    }

    /* Footer */
    footer {
        padding: 80px 0 40px;
    }

    .footer-main-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 80px;
        margin-bottom: 80px;
    }

    .footer-logo-col {
        grid-column: auto;
        margin-bottom: 0;
    }

    .footer-links li {
        margin-bottom: 16px;
    }

    .footer-links a:hover {
        color: var(--secondary);
        padding-left: 4px;
    }

    .footer-connect-section {
        margin-bottom: 0;
        max-width: none;
    }

    .footer-connect-header {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 20px;
    }

    .footer-bottom {
        padding-top: 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        font-size: 14px;
    }

    .footer-bottom-left {
        flex-direction: row;
        gap: 24px;
    }

    .footer-bottom-right {
        justify-self: end;
    }

    .desktop-only {
        display: flex;
    }

    /* Cookie Banner */
    .cookie-banner {
        bottom: 32px;
        right: 32px;
        left: auto;
        width: 400px;
        padding: 32px;
    }

    .cookie-title {
        font-size: 20px;
    }

    .cookie-desc {
        font-size: 14px;
        margin-bottom: 32px;
    }
}
