/* Reset e Base */
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a1a;
    color: white;
    line-height: 1.6;
}

.legal-main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.legal-container {
    background-color: #262626;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 10px;
}

h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    opacity: 0.9;
}

ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    opacity: 0.9;
}

.last-update {
    font-style: italic;
    color: #888;
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

.back-link:hover {
    color: color-mix(in srgb, var(--primary-color), black 15%);
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.logo span {
    color: var(--primary-color);
}

.login-btn {
    background: var(--primary-color);
    color: var(--on-primary) !important;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
}

.login-btn:hover {
    background-color: color-mix(in srgb, var(--primary-color), black 15%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

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

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 28px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 200px;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 20px;
        box-sizing: border-box;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: 0;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .login-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}
