/* ConstruAlves - estilo das páginas de documentos (Política de Privacidade, Termos e Condições) */
:root {
    --cor-marca: #973132;
    --cor-marca-forte: #C0282E;
    --cor-texto: #1f2328;
    --cor-texto-suave: #57606a;
    --cor-fundo: #f4f1ee;
    --cor-papel: #ffffff;
    --cor-borda: #e3ddd7;
    --cor-destaque: #fbf4f3;
}

@media (prefers-color-scheme: dark) {
    :root {
        --cor-marca: #e07a7c;
        --cor-marca-forte: #ef8a8c;
        --cor-texto: #e6e3df;
        --cor-texto-suave: #a9a39c;
        --cor-fundo: #161414;
        --cor-papel: #201d1d;
        --cor-borda: #3a3434;
        --cor-destaque: #2a2222;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

a { color: var(--cor-marca); }
a:hover { color: var(--cor-marca-forte); }

.topo {
    background: #973132; /* cor da marca fixa: mantém contraste com o texto branco também no modo escuro */
    color: #fff;
}
.topo-conteudo {
    max-width: 860px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.marca {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
}
.marca:hover { color: #fff; }
.marca img {
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 8px;
    padding: 3px;
}
.botao-loja {
    display: inline-block;
    color: #973132;
    background: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    padding: 7px 14px;
    border-radius: 999px;
}
.botao-loja:hover { color: #C0282E; background: #f6eeee; }

main {
    max-width: 860px;
    margin: 24px auto;
    padding: 0 16px;
}

.documento {
    background: var(--cor-papel);
    border: 1px solid var(--cor-borda);
    border-radius: 12px;
    padding: 32px 40px;
    text-align: justify;
    hyphens: auto;
    overflow-wrap: break-word;
}

.documento h1 {
    margin: 0 0 4px;
    font-size: 1.6rem;
    line-height: 1.3;
    text-align: left;
    color: var(--cor-marca);
}
.documento .versao {
    margin: 0 0 24px;
    color: var(--cor-texto-suave);
    font-size: .9rem;
    text-align: left;
}
.documento h2 {
    margin: 32px 0 8px;
    font-size: 1.15rem;
    line-height: 1.35;
    text-align: left;
    color: var(--cor-marca);
}
.documento h3 {
    margin: 20px 0 6px;
    font-size: 1rem;
    text-align: left;
}
.documento p { margin: 0 0 12px; }
.documento ul { margin: 0 0 14px; padding-left: 1.4em; }
.documento li { margin-bottom: 4px; }
.documento dl { margin: 0 0 12px; }
.documento dt { font-weight: 700; margin-top: 10px; }
.documento dd { margin: 0 0 4px; }

.empresa {
    background: var(--cor-destaque);
    border-left: 4px solid var(--cor-marca);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 0 0 24px;
    text-align: left;
}
.empresa p { margin: 0 0 4px; }
.empresa p:last-child { margin-bottom: 0; }

.rodape {
    max-width: 860px;
    margin: 0 auto 32px;
    padding: 0 16px;
    color: var(--cor-texto-suave);
    font-size: .875rem;
    text-align: center;
}
.rodape nav { margin-bottom: 6px; }
.rodape nav a { margin: 0 8px; }

@media (max-width: 600px) {
    main { margin: 16px auto; }
    .documento { padding: 20px 16px; text-align: left; }
    .documento h1 { font-size: 1.35rem; }
    .documento h2 { font-size: 1.05rem; }
    .marca span { font-size: 1.05rem; }
}

@media print {
    body { background: #fff; color: #000; }
    .topo, .rodape nav, .botao-loja { display: none; }
    main { margin: 0; max-width: none; }
    .documento { border: 0; padding: 0; }
}
