/* ===== PÁGINAS LEGAIS (privacidade, termos, exclusão de dados) ===== */

.legal-hero {
    padding: 120px 0 50px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf5 100%);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102,126,234,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.legal-hero .back-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 30px;
    transition: gap 0.2s ease;
}

.legal-hero .back-link:hover {
    gap: 12px;
}

.legal-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(102,126,234,0.12) 0%, rgba(118,75,162,0.12) 100%);
    color: #667eea;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.legal-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: #333;
    margin-bottom: 14px;
}

.legal-updated {
    color: #666;
    font-size: 0.95rem;
}

.legal-section {
    background: white;
    padding: 60px 0 80px;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

.legal-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #333;
    margin: 44px 0 14px;
    scroll-margin-top: 90px;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 26px 0 10px;
}

.legal-content p {
    margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 16px 22px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: #667eea;
    font-weight: 500;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px;
    font-size: 0.95rem;
}

.legal-content th,
.legal-content td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #e6e8ef;
    vertical-align: top;
}

.legal-content th {
    background: #f5f7fa;
    color: #333;
    font-weight: 600;
}

.legal-table-wrap {
    overflow-x: auto;
}

/* Aviso de modelo */
.legal-notice {
    display: flex;
    gap: 14px;
    background: #fff8e6;
    border: 1px solid #f3d27a;
    border-radius: 12px;
    padding: 16px 20px;
    color: #6b5200;
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 36px;
}

.legal-notice i {
    margin-top: 3px;
    color: #c99400;
}

/* Caixa de destaque (contato / passos) */
.legal-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 18px 0 24px;
}

.legal-box p:last-child,
.legal-box ul:last-child,
.legal-box ol:last-child {
    margin-bottom: 0;
}

/* Índice */
.legal-toc {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 10px;
}

.legal-toc strong {
    display: block;
    color: #333;
    margin-bottom: 8px;
}

.legal-toc ol {
    margin-bottom: 0;
    columns: 2;
    column-gap: 30px;
}

.legal-toc li {
    margin-bottom: 4px;
    break-inside: avoid;
}

.legal-toc a {
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 100px 0 40px;
    }

    .legal-hero h1 {
        font-size: 1.9rem;
    }

    .legal-toc ol {
        columns: 1;
    }
}
