/*
 * IMPORTANT: For editing rules and coding guidelines, see AI_documents/Rules/Rules_for_the_AI.txt
 * For project overview and details, see AI_documents/Project_Overview_Doc.txt
 *
 * Production Directory: http://ainspire.ai/css/legal_page.css
 * Development Directory: http://localhost:8000/css/legal_page.css
 *
 * Used in legal page template
 * /templates/legal_page.php
 * Matches team page design patterns from team_page.css
 */

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed header when jumping to anchors */
.legal-category-section {
    scroll-margin-top: 120px;
}

/* Legal Page Specific Styles - Single Column Layout */

.legal-main {
    position: relative;
    background: #000;
    color: #fff;
}

/* Hero Section - Matching team page hero */
.legal-hero {
    position: relative;
    min-height: 40vh;
    border-bottom: 0.2px solid #8551f37d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgb(59 130 246 / 43%) 0%, rgb(30 64 175 / 8%) 30%, rgb(37 99 235 / 5%) 60%, rgb(247 247 247 / 3%) 100%);
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: opacity(0.12);
    pointer-events: none;
}

.legal-hero-content {
    margin-top: 20px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 40px;
}

.legal-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.legal-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.legal-hero-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.legal-meta-item {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* Legal Content - Single Column Layout */
.legal-content {
    padding: 5rem 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Legal Sections */
.legal-section {
    margin-bottom: 4rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.legal-section:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
}

/* Legal Category Section - for consolidated page */
.legal-category-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

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

.legal-category-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-category-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.legal-category-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.legal-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-section-content {
    line-height: 1.8;
}

.legal-section-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

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

/* Contact Section */
.legal-contact {
    margin-top: 5rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.legal-contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    z-index: 2;
}

.legal-contact-content {
    position: relative;
    z-index: 2;
}

.legal-contact-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.legal-contact-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.legal-contact-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.legal-contact-link:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.legal-contact-phone {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1199px) {
    .legal-container {
        padding: 0 30px;
    }

    .legal-hero-title {
        font-size: 3rem;
    }

    .legal-section {
        padding: 2rem;
    }

    .legal-contact {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .legal-container {
        padding: 0 20px;
    }

    .legal-hero-content {
        padding: 0 20px;
    }

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

    .legal-hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .legal-hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .legal-meta-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

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

    .legal-section {
        margin-bottom: 3rem;
        padding: 1.5rem;
    }

    .legal-section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

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

    .legal-contact {
        margin-top: 3rem;
        padding: 2rem;
    }

    .legal-contact-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .legal-contact-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .legal-contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .legal-contact-link {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 0 15px;
    }

    .legal-hero-content {
        padding: 0 15px;
    }

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

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

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

    .legal-section {
        margin-bottom: 2.5rem;
        padding: 1.25rem;
    }

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

    .legal-section-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .legal-contact {
        margin-top: 2.5rem;
        padding: 1.5rem;
    }

    .legal-contact-title {
        font-size: 1.6rem;
    }

    .legal-contact-content p {
        font-size: 0.95rem;
    }

    .legal-contact-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section {
    animation: fadeInUp 0.6s ease forwards;
}

.legal-section:nth-child(1) { animation-delay: 0.1s; }
.legal-section:nth-child(2) { animation-delay: 0.2s; }
.legal-section:nth-child(3) { animation-delay: 0.3s; }
.legal-section:nth-child(4) { animation-delay: 0.4s; }
.legal-section:nth-child(5) { animation-delay: 0.5s; }
.legal-section:nth-child(6) { animation-delay: 0.6s; }