/* ==================== Legal Pages Styles ==================== */

/* Legal Page Hero */
.legal-hero {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a24 100%);
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.legal-breadcrumb a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: var(--transition);
}

.legal-breadcrumb a:hover {
    color: var(--primary-pink);
}

.legal-breadcrumb i {
    font-size: 0.7rem;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Legal Content */
.legal-content {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

/* Sidebar Navigation */
.legal-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.legal-nav h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-nav ul li {
    margin-bottom: 0.5rem;
}

.legal-nav ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 0.9rem;
}

.legal-nav ul li a:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-purple);
    transform: translateX(5px);
}

/* Legal Article */
.legal-article {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 3rem;
}

.legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

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

.legal-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(168, 85, 247, 0.3);
}

.legal-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: white;
}

.legal-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.legal-section ul,
.legal-section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-section ul li,
.legal-section ol li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.legal-section a {
    color: var(--primary-purple);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.legal-section a:hover {
    color: var(--primary-pink);
    border-bottom-color: var(--primary-pink);
}

.legal-section strong {
    color: white;
    font-weight: 600;
}

/* Cookie Table */
.cookie-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 26, 36, 0.5);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-table thead {
    background: rgba(168, 85, 247, 0.1);
}

.cookie-table th {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookie-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background: rgba(168, 85, 247, 0.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-sidebar {
        position: static;
        background: var(--bg-card);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: var(--radius-xl);
        padding: 2rem;
    }
    
    .legal-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 8rem 0 3rem;
    }
    
    .legal-title {
        font-size: 2.25rem;
    }
    
    .legal-article {
        padding: 2rem 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.75rem;
    }
    
    .legal-section h3 {
        font-size: 1.25rem;
    }
    
    .legal-nav ul {
        grid-template-columns: 1fr;
    }
    
    .cookie-table {
        font-size: 0.85rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .legal-title {
        font-size: 1.75rem;
    }
    
    .legal-article {
        padding: 1.5rem 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.95rem;
    }
    
    .cookie-table {
        display: block;
        overflow-x: scroll;
    }
}
