﻿/* ========================================
   LEGAL PAGES STYLING
   Políticas de Privacidade, Termos e Cookies
   ======================================== */

.legal-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========================================
   HEADER
   ======================================== */

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.legal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.legal-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.legal-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: #6366f1;
    font-weight: 600;
    font-size: 0.9rem;
}

.legal-badge i {
    color: #6366f1;
}

/* ========================================
   CONTENT
   ======================================== */

.legal-content {
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-section h2 i {
    color: #6366f1;
    font-size: 1.5rem;
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 1rem;
}

.legal-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #475569;
}

.legal-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-section a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legal-section a:hover {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.legal-section strong {
    color: #1e293b;
    font-weight: 600;
}

.legal-section code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #6366f1;
}

/* ========================================
   INFO BOXES
   ======================================== */

.info-box,
.warning-box,
.contact-box {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
}

.info-box i {
    color: #3b82f6;
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
}

.warning-box i {
    color: #f59e0b;
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.contact-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

.contact-box i {
    color: #22c55e;
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.info-box p,
.warning-box p,
.contact-box p {
    margin: 0;
}

.info-box ul,
.warning-box ul,
.contact-box ul {
    margin: 0.5rem 0 0 0;
}

/* ========================================
   PURPOSE LIST (Finalidades)
   ======================================== */

.purpose-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.purpose-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #6366f1;
    transition: all 0.3s ease;
}

.purpose-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.purpose-item i {
    color: #6366f1;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.purpose-item strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.purpose-item p {
    margin: 0;
    color: #64748b;
}

/* ========================================
   SECURITY GRID
   ======================================== */

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.security-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.security-item:hover {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

.security-item i {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.security-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.security-item p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* ========================================
   RIGHTS GRID
   ======================================== */

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.right-item {
    padding: 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    text-align: center;
    transition: all 0.3s ease;
}

.right-item:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateY(-3px);
}

.right-item i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.75rem;
}

.right-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.right-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   LGPD GRID
   ======================================== */

.lgpd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.lgpd-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    transition: all 0.3s ease;
}

.lgpd-item:hover {
    background: #dcfce7;
    transform: translateY(-3px);
}

.lgpd-item i {
    color: #22c55e;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.lgpd-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.lgpd-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   COOKIES CARDS
   ======================================== */

.cookie-card {
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid;
    transition: all 0.3s ease;
}

.cookie-card.essential {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.cookie-card.functional {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #60a5fa;
}

.cookie-card.analytics {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #818cf8;
}

.cookie-card.marketing {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #f472b6;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.cookie-card.essential .cookie-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.cookie-card.functional .cookie-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.cookie-card.analytics .cookie-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.cookie-card.marketing .cookie-icon {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.cookie-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.cookie-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.cookie-badge.required {
    background: #dc2626;
    color: #fff;
}

.cookie-badge.optional {
    background: #22c55e;
    color: #fff;
}

.cookie-details {
    margin-top: 1.5rem;
}

.cookie-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1rem 0 0.75rem;
}

.cookie-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.cookie-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
}

/* ========================================
   COOKIE TABLE
   ======================================== */

.cookie-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.cookie-table thead {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.cookie-table th {
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.cookie-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #475569;
}

.cookie-table tbody tr:hover {
    background: #f8fafc;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.badge-essential,
.badge-functional,
.badge-analytics {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.badge-essential {
    background: #fef3c7;
    color: #d97706;
}

.badge-functional {
    background: #dbeafe;
    color: #2563eb;
}

.badge-analytics {
    background: #e0e7ff;
    color: #4f46e5;
}

/* ========================================
   THIRD PARTY GRID
   ======================================== */

.third-party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.third-party-card {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.third-party-card:hover {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.third-party-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.third-party-card h4 i {
    color: #6366f1;
}

.third-party-card p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* ========================================
   BROWSER GRID
   ======================================== */

.browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.browser-card {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.browser-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

.browser-card i {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.browser-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.browser-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.browser-card a:hover {
    color: #4f46e5;
}

/* ========================================
   FAQ COOKIES
   ======================================== */

.faq-cookies {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.faq-item-cookie {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #6366f1;
}

.faq-item-cookie h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.faq-item-cookie p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

/* ========================================
   NAVIGATION
   ======================================== */

.legal-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.legal-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-nav-link:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.legal-nav-link i {
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .legal-content {
        padding: 2.5rem;
    }

    .security-grid,
    .rights-grid,
    .third-party-grid,
    .browser-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding: 2rem 0;
    }

    .legal-header {
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
    }

    .legal-icon {
        width: 60px;
        height: 60px;
    }

    .legal-icon i {
        font-size: 2rem;
    }

    .legal-title {
        font-size: 2rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .cookie-header {
        flex-direction: column;
        text-align: center;
    }

    .cookie-icon {
        margin: 0 auto;
    }

    .security-grid,
    .rights-grid,
    .lgpd-grid,
    .third-party-grid,
    .browser-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cookie-info-grid {
        grid-template-columns: 1fr;
    }

    .legal-navigation {
        flex-direction: column;
    }

    .legal-nav-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1.5rem 1rem;
    }

    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .purpose-item,
    .lgpd-item {
        flex-direction: column;
        text-align: center;
    }

    .purpose-item i,
    .lgpd-item i {
        margin: 0 auto;
    }
}