/* Legal Pages Styles (Privacy & Terms) */

.legal-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #667eea 50%, #764ba2 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(96, 165, 250, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.legal-hero .hero-content {
    position: relative;
    z-index: 1;
}

.legal-hero .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.legal-hero .hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.legal-content {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: calc(100vh - 300px);
}

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

/* Table of Contents */
.toc {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.4s ease;
}

.toc:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
}

.toc h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    letter-spacing: -0.01em;
}

.toc ul {
    list-style: none;
}

.toc ul li {
    margin-bottom: 0.75rem;
}

.toc ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    padding: 0.75rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    font-weight: 500;
}

.toc ul li a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.25rem;
}

/* Legal Article */
.legal-article {
    background: white;
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.legal-section {
    margin-bottom: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 1rem;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #667eea);
    border-radius: 2px;
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

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

.legal-section ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.legal-section ul li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.6;
}

.legal-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.legal-section a:hover {
    text-decoration: underline;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.08));
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    border: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.highlight-box p {
    margin: 0;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

/* Legal Footer */
.legal-footer {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(59, 130, 246, 0.1);
    text-align: center;
}

.legal-footer p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
        margin-bottom: 2rem;
    }

    .legal-hero .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 4rem 0;
        margin-top: 70px;
    }

    .legal-hero .hero-content h1 {
        font-size: 2rem;
    }

    .legal-hero .hero-content p {
        font-size: 1rem;
    }

    .legal-content {
        padding: 2rem 0;
    }

    .legal-article {
        padding: 1.5rem;
    }

    .legal-section {
        margin-bottom: 2rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .toc h3 {
        font-size: 1rem;
    }

    .toc ul li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .legal-hero .hero-content h1 {
        font-size: 1.5rem;
    }

    .legal-article {
        padding: 1rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1rem;
    }

    .highlight-box {
        padding: 1rem;
    }
}
