/* Legal Page Styles - Design inspirado no Moloni com cores Walaka */

/* Legal Hero Section - Fundo escuro como Moloni */
.legal-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 80px; /* Espaço para header fixo */
}

[data-theme="dark"] .legal-hero {
    background: linear-gradient(135deg, #030712 0%, #111827 50%, #1f2937 100%);
}

.legal-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.legal-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #3b82f6; /* Azul vibrante Walaka */
    margin: 0;
    letter-spacing: -0.01em;
}

/* Legal Content Section */
.legal-content {
    background: #ffffff;
    padding: 60px 0;
    min-height: 60vh;
}

[data-theme="dark"] .legal-content {
    background: #111827;
    color: #f3f4f6;
}

.legal-content .container {
    max-width: 1000px;
}

/* Navigation Menu */
.legal-nav {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    position: sticky;
    top: 100px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .legal-nav {
    background: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.legal-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.legal-nav li {
    margin: 0;
}

.legal-nav a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-block;
}

.legal-nav a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .legal-nav a {
    color: #9ca3af;
}

[data-theme="dark"] .legal-nav a:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

/* Legal Sections */
.legal-section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px;
}

.legal-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #3b82f6;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .legal-section h2 {
    color: #f3f4f6;
    border-bottom-color: #60a5fa;
}

.legal-section > p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 2rem;
}

[data-theme="dark"] .legal-section > p {
    color: #d1d5db;
}

.legal-subsection {
    margin-bottom: 2.5rem;
}

.legal-subsection h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

[data-theme="dark"] .legal-subsection h3 {
    color: #60a5fa;
}

.legal-subsection p {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
}

[data-theme="dark"] .legal-subsection p {
    color: #d1d5db;
}

.legal-subsection ul,
.legal-subsection ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-subsection li {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .legal-subsection li {
    color: #d1d5db;
}

.legal-subsection strong {
    color: #1e293b;
    font-weight: 600;
}

[data-theme="dark"] .legal-subsection strong {
    color: #f3f4f6;
}

/* Download Section */
.legal-downloads {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border-left: 4px solid #3b82f6;
}

[data-theme="dark"] .legal-downloads {
    background: #1f2937;
    border-left-color: #60a5fa;
}

.legal-downloads h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

[data-theme="dark"] .legal-downloads h4 {
    color: #f3f4f6;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.download-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.download-btn i {
    font-size: 1.1rem;
}

/* Company Info */
.company-info {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

[data-theme="dark"] .company-info {
    background: #1f2937;
}

.info-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

[data-theme="dark"] .info-item h3 {
    color: #f3f4f6;
}

.info-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .info-item p {
    color: #d1d5db;
}

.info-item strong {
    color: #1e293b;
    font-weight: 600;
}

[data-theme="dark"] .info-item strong {
    color: #f3f4f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-hero {
        padding: 80px 0 60px;
        margin-top: 70px;
    }

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

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

    .legal-content {
        padding: 40px 0;
    }

    .legal-nav {
        position: static;
        padding: 1rem;
    }

    .legal-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }

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

    .legal-subsection h3 {
        font-size: 1.25rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .legal-hero-title {
        font-size: 2rem;
    }

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

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

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Highlight active nav link */
.legal-nav a.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
}

[data-theme="dark"] .legal-nav a.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}
