/* =============================================================
   comum.css — partes compartilhadas por todas as páginas públicas
   (rodapé compacto, banner de cookies LGPD, páginas legais)
   ============================================================= */

/* ---------- Rodapé compacto ---------- */
footer.site-footer {
    background: #10233f;
    color: #cbd5e1;
    padding: 36px 0 0;
    font-size: .9rem;
}
.site-footer .footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 28px 40px;
    padding-bottom: 24px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-footer .footer-section h3 {
    font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; margin: 0 0 12px; padding: 0;
}
.site-footer .footer-section h3::after { display: none; }
.site-footer .footer-brand h3 { font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
.site-footer .footer-brand p { color: #94a3b8; margin: 0 0 14px; line-height: 1.5; max-width: 300px; font-size: .88rem; }
.site-footer .social-links { display: flex; gap: 8px; margin: 0; }
.site-footer .social-links a {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .07); color: #fff; font-size: .9rem; text-decoration: none;
    transition: background-color .2s, transform .2s;
}
.site-footer .social-links a:hover { background: #e83e8c; transform: translateY(-2px); padding: 0; }
.site-footer .social-links a[hidden] { display: none; }

.site-footer .footer-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 28px;
}
.site-footer .footer-nav li { margin: 0; }
.site-footer a { color: #cbd5e1; text-decoration: none; font-size: .88rem; transition: color .2s; }
.site-footer .footer-nav a:hover { color: #fff; padding-left: 0; }

.site-footer #footer-contato p {
    display: flex; gap: 10px; align-items: baseline; margin: 0 0 7px; color: #cbd5e1; font-size: .88rem;
}
.site-footer #footer-contato i { color: #e83e8c; width: 14px; flex-shrink: 0; }

.site-footer .footer-bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px;
    padding: 14px 0; text-align: left; color: #7c8aa0; font-size: .78rem;
}
.site-footer .footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
.footer-legal a, .link-cookies {
    color: #94a3b8; font-size: .78rem; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
}
.footer-legal a:hover, .link-cookies:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 768px) {
    footer.site-footer { padding-top: 28px; }
    .site-footer .footer-content { grid-template-columns: 1fr 1fr; gap: 22px; }
    .site-footer .footer-brand { grid-column: 1 / -1; }
    .site-footer .footer-nav ul { grid-template-columns: 1fr; }
    .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 86px; } /* espaço p/ botão do WhatsApp */
}
@media (max-width: 420px) {
    .site-footer .footer-content { grid-template-columns: 1fr; }
}

/* ---------- Banner de cookies (LGPD) — faixa fina no rodapé da tela ---------- */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 24px;
    background: rgba(255, 255, 255, .97); color: #1f2937;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid #e5e7eb; box-shadow: 0 -10px 30px -12px rgba(16, 24, 40, .25);
    padding: 12px max(24px, calc((100vw - 1200px) / 2)); padding-right: max(96px, calc((100vw - 1200px) / 2));
    font-family: 'Montserrat', system-ui, sans-serif; font-size: .85rem; line-height: 1.45;
    animation: cookieIn .35s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes cookieIn { from { transform: translateY(100%); } to { transform: none; } }
.cookie-banner[hidden] { display: none; }
.cookie-texto h2 { font-size: .9rem; margin: 0 0 2px; color: #0f172a; display: flex; align-items: center; gap: 6px; }
.cookie-texto p { margin: 0; color: #4b5563; }
.cookie-banner a { color: #1e4a7e; font-weight: 600; }
.cookie-acoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-btn {
    border-radius: 50px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: .82rem; cursor: pointer; white-space: nowrap;
    border: 1px solid #d1d5db; background: #fff; color: #1f2937; transition: background-color .2s, border-color .2s;
}
.cookie-btn:hover { border-color: #1e4a7e; color: #1e4a7e; }
.cookie-btn--primario { background: #1e4a7e; border-color: #1e4a7e; color: #fff; }
.cookie-btn--primario:hover { background: #3a7bd5; border-color: #3a7bd5; color: #fff; }
.cookie-opcoes { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cookie-opcoes[hidden] { display: none; }
.cookie-opcao { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer; background: #fff; }
.cookie-opcao input { margin-top: 3px; width: 16px; height: 16px; accent-color: #1e4a7e; flex-shrink: 0; }
.cookie-opcao strong { display: block; font-size: .8rem; color: #111827; }
.cookie-opcao span { font-size: .75rem; color: #6b7280; }
.cookie-acoes { grid-column: 2; grid-row: 1; }
@media (max-width: 860px) {
    .cookie-banner { grid-template-columns: 1fr; padding: 12px 14px 14px; padding-right: 14px; }
    .cookie-acoes { grid-column: 1; grid-row: auto; justify-content: stretch; }
    .cookie-acoes .cookie-btn { flex: 1 1 auto; }
    .cookie-opcoes { grid-template-columns: 1fr; grid-row: auto; }
}

/* ---------- Páginas legais ---------- */
.legal-page { background: #f6f7fb; min-height: 100vh; font-family: 'Montserrat', system-ui, sans-serif; color: #1f2937; }
.legal-topo { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 10; }
.legal-topo .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.legal-topo .marca { font-weight: 800; font-size: 1.3rem; color: #1e4a7e; text-decoration: none; }
.legal-topo .marca em { font-style: normal; color: #e83e8c; }
.legal-topo .voltar { color: #1e4a7e; font-weight: 600; text-decoration: none; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; }
.legal-conteudo { max-width: 820px; margin: 0 auto; padding: 40px 20px 60px; }
.legal-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: clamp(22px, 4vw, 44px); }
.legal-card h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: #10233f; margin-bottom: 6px; letter-spacing: -.02em; }
.legal-atualizado { color: #6b7280; font-size: .85rem; margin-bottom: 26px; }
.legal-card h2 { font-size: 1.1rem; color: #10233f; margin: 28px 0 10px; }
.legal-card p, .legal-card li { font-size: .95rem; line-height: 1.75; color: #374151; }
.legal-card p { margin-bottom: 12px; }
.legal-card ul { padding-left: 20px; margin-bottom: 12px; }
.legal-card a { color: #1e4a7e; font-weight: 600; }
.legal-card table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .88rem; }
.legal-card th, .legal-card td { text-align: left; padding: 10px 12px; border: 1px solid #e5e7eb; vertical-align: top; }
.legal-card th { background: #f8fafc; color: #10233f; }
.legal-indice { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 18px; margin-bottom: 8px; }
.legal-indice ol { padding-left: 18px; columns: 2; column-gap: 28px; }
.legal-indice li { font-size: .88rem; line-height: 1.9; }
@media (max-width: 600px) { .legal-indice ol { columns: 1; } .legal-card table { display: block; overflow-x: auto; } }

/* WhatsApp flutuante sobe enquanto o aviso de cookies estiver aberto */
.whatsapp-float { transition: bottom .3s ease, transform .3s ease; }
body:has(.cookie-banner:not([hidden])) .whatsapp-float { bottom: 90px; }
@media (max-width: 860px) { body:has(.cookie-banner:not([hidden])) .whatsapp-float { bottom: 150px; } }
