/* ========== BRAND COLOR SCHEME ========== */
:root {
    /* Primary Brand Colors */
    --primary: #6C3DB8;
    --primary-light: #8B5FBF;
    --primary-dark: #5A2F9E;
    --primary-rgb: 108, 61, 184;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F6FC;
    --gray: #6B7280;
    --dark: #1F2937;
    --border: #E5E7EB;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-light: linear-gradient(135deg, rgba(108, 61, 184, 0.1) 0%, rgba(139, 95, 191, 0.05) 100%);
    
    /* Shadows */
    --shadow: 0 4px 20px rgba(108, 61, 184, 0.15);
    --shadow-hover: 0 8px 30px rgba(108, 61, 184, 0.25);
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* ========== HEADER STYLES ========== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.5rem;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav__cta {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ========== LEGAL PAGES HERO ========== */
.legal-hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 160px 0 80px;
    text-align: center;
    margin-top: 80px;
}

.legal-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.last-updated {
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
}

/* ========== LEGAL CONTENT STYLES ========== */
.legal-content {
    background: var(--white);
}

.legal-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 120px;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
}

.legal-nav {
    list-style: none;
}

.legal-nav-item {
    margin-bottom: 0.5rem;
}

.legal-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.legal-nav-link:hover, .legal-nav-link.active {
    background: var(--primary);
    color: var(--white);
    border-left-color: var(--primary-dark);
}

.legal-main {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
}

.legal-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.important-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(108, 61, 184, 0.1);
    border-radius: 8px;
    border: 1px solid var(--primary);
}

.important-notice i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.legal-section h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}

.legal-section h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
}

.legal-section p {
    margin-bottom: 1rem;
    color: var(--gray);
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.legal-section strong {
    color: var(--dark);
    font-weight: 600;
}

/* ========== GRID LAYOUTS ========== */
.usage-grid, .rights-grid, .services-grid, .obligations-grid, .confidentiality-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.usage-grid, .rights-grid, .services-grid {
    grid-template-columns: repeat(2, 1fr);
}

.obligations-grid {
    grid-template-columns: 1fr;
}

.confidentiality-grid {
    grid-template-columns: repeat(3, 1fr);
}

.cookies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

/* ========== COMPONENT STYLES ========== */
.usage-item, .obligation-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.usage-icon, .obligation-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.usage-content h4, .obligation-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
}

.right-item, .service-item, .cookie-type, .confidentiality-item {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.right-item:hover, .service-item:hover, .cookie-type:hover, .confidentiality-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.right-item h4, .service-item h4, .cookie-type h4, .confidentiality-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.contact-method i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-details {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    margin-top: 1rem;
}

/* ========== FOOTER STYLES ========== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.footer-tagline {
    color: #bdc3c7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--white);
    gap: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    margin: 0;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-sidebar {
        position: static;
    }
    
    .usage-grid, .rights-grid, .services-grid, .confidentiality-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 140px 0 60px;
    }
    
    .legal-hero h1 {
        font-size: 2.5rem;
    }
    
    .legal-main {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav__menu {
        display: none;
    }
}

@media (max-width: 576px) {
    .legal-hero {
        padding: 120px 0 50px;
    }
    
    .legal-hero h1 {
        font-size: 2rem;
    }
    
    .legal-main {
        padding: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .cookies-grid {
        grid-template-columns: 1fr;
    }
    
    .usage-item, .obligation-item {
        flex-direction: column;
        text-align: center;
    }
    
    .usage-icon, .obligation-icon {
        align-self: center;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000FF;
        --primary-light: #3333FF;
        --primary-dark: #0000CC;
    }
}