/* Legal Pages Styles - Privacy, Terms, Content Policy */

/* Hero Section for Legal Pages */
.legal-hero-section {
    background: var(--hero-gradient);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.legal-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)" /><stop offset="100%" style="stop-color:rgba(255,255,255,0)" /></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)" /><circle cx="800" cy="300" r="150" fill="url(%23a)" /><circle cx="400" cy="700" r="120" fill="url(%23a)" /></svg>');
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.legal-hero-section h1 {
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.legal-hero-section .lead {
    position: relative;
    z-index: 2;
}

/* Content Section */
.legal-content-section {
    padding: 4rem 0 6rem;
    background: var(--neutral-50);
}

/* Legal Card */
.legal-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

.legal-card h2 {
    color: var(--primary-700);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-100);
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card h3 {
    color: var(--neutral-800);
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-card p {
    color: var(--neutral-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-card ul {
    color: var(--neutral-700);
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.legal-card ul li strong {
    color: var(--neutral-900);
}

/* Contact Info in Legal Pages */
.legal-card .contact-info {
    background: var(--neutral-50);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.legal-card .contact-info li {
    padding: 0.5rem 0;
    color: var(--neutral-700);
    display: flex;
    align-items: center;
}

.legal-card .contact-info li i {
    color: var(--primary-600);
    width: 24px;
}

/* Back Button */
.btn-outline-primary {
    border: 2px solid var(--primary-600);
    color: var(--primary-600);
    background: transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Table of Contents (optional enhancement) */
.legal-toc {
    background: var(--neutral-100);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.legal-toc h4 {
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.legal-toc ul li {
    padding: 0.25rem 0;
}

.legal-toc ul li a {
    color: var(--primary-600);
    text-decoration: none;
    transition: var(--transition-fast);
}

.legal-toc ul li a:hover {
    color: var(--primary-800);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-hero-section {
        padding: 4rem 0 3rem;
    }

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

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

    .legal-card {
        padding: 1.5rem;
    }

    .legal-card h2 {
        font-size: 1.25rem;
    }

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

@media (max-width: 576px) {
    .legal-hero-section h1 {
        font-size: 1.75rem;
    }

    .legal-card {
        padding: 1.25rem;
        border-radius: var(--border-radius);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .legal-hero-section::before {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .legal-hero-section {
        background: none;
        padding: 1rem 0;
    }

    .legal-hero-section h1 {
        color: black;
        text-shadow: none;
    }

    .legal-hero-section .lead {
        color: #666;
    }

    .legal-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .btn-outline-primary {
        display: none;
    }
}
