/* Páginas legais (privacidade, termos e exclusão de dados). Mesmas cores da home. */
:root {
    --c-p-900: #0a1929;
    --c-p-800: #132f4c;
    --c-wa: #25d366;
    --c-wa-texto: #075e54;
    --c-n-50: #f8fafc;
    --c-n-200: #e2e8f0;
    --c-n-500: #64748b;
    --c-n-700: #334155;
    --c-n-900: #0f172a;
    --c-t-s: #b3bac5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--c-n-50);
    color: var(--c-n-700);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   TOPO
======================================== */
.topo {
    background: linear-gradient(135deg, var(--c-p-900) 0%, var(--c-p-800) 100%);
    color: white;
}

.topo__barra,
.topo__titulo {
    max-width: 880px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.topo__barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.topo__logo img {
    display: block;
    width: 110px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.topo__voltar {
    padding: 9px 16px;
    background: white;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 12px;
    white-space: nowrap;
    transition: 0.3s;
}

.topo__voltar:hover {
    transform: translateY(-2px);
}

.topo__titulo {
    padding-top: 28px;
    padding-bottom: 76px;
}

.selo {
    display: block;
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-wa);
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.topo__meta {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--c-t-s);
}

.abas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    list-style: none;
}

.abas a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s;
}

.abas a:hover {
    border-color: var(--c-wa);
}

.abas a[aria-current="page"] {
    background: white;
    border-color: white;
    color: var(--c-p-900);
}

/* ========================================
   DOCUMENTO
======================================== */
.doc {
    max-width: 880px;
    margin: -48px auto 0;
    padding: 0 20px 40px;
}

.doc__corpo {
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(10, 25, 41, 0.08);
}

.doc section + section {
    margin-top: 32px;
}

.doc h2 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--c-p-900);
}

.doc h3 {
    margin: 20px 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-p-900);
}

.doc p + p,
.doc p + ul,
.doc ul + p,
.doc ol + p {
    margin-top: 12px;
}

.doc ul,
.doc ol {
    padding-left: 22px;
}

.doc li + li {
    margin-top: 6px;
}

.doc strong {
    color: var(--c-n-900);
}

.doc a {
    color: var(--c-wa-texto);
    font-weight: 600;
    text-underline-offset: 2px;
}

.destaque {
    margin-top: 16px;
    padding: 16px 18px;
    background: var(--c-n-50);
    border-left: 4px solid var(--c-wa);
    border-radius: 12px;
}

.contato {
    margin-top: 16px;
    padding: 18px 20px;
    background: var(--c-n-50);
    border-radius: 12px;
    font-style: normal;
}

.contato strong {
    display: block;
    margin-bottom: 4px;
}

.opcoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.opcao {
    padding: 20px;
    border: 1px solid var(--c-n-200);
    border-radius: 14px;
}

.opcao h3 {
    margin-top: 0;
}

.opcao p + p {
    margin-top: 8px;
}

.nota {
    font-size: 0.9rem;
    color: var(--c-n-500);
}

/* ========================================
   RODAPÉ
======================================== */
.rodape {
    padding: 8px 20px 40px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--c-n-500);
}

.rodape__af3 {
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rodape a {
    color: var(--c-n-500);
}

:focus-visible {
    outline: 2px solid var(--c-wa);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .topo__titulo {
        padding-top: 16px;
        padding-bottom: 68px;
    }

    .doc__corpo {
        padding: 24px 20px;
    }

    .opcoes {
        grid-template-columns: 1fr;
    }
}

@media print {
    .topo {
        background: none;
        color: black;
    }

    .topo__voltar,
    .abas {
        display: none;
    }

    .topo__logo img {
        filter: none;
    }

    .topo__meta {
        color: var(--c-n-500);
    }

    .doc {
        margin-top: 0;
    }

    .doc__corpo {
        padding: 0;
        box-shadow: none;
    }
}
