/* Paginas publicas fora da entrada (erros, politica de privacidade): o
   mesmo desenho do ecra de login — fundo claro quente, marca verde, botoes
   escuros em pilula — sem depender do SB Admin. */
:root {
    --fams-verde: #516024;
    --fams-verde-claro: #eef2e3;
    --fams-escuro: #1a1818;
    --fams-castanho: #423228;
    --fams-fundo: #f4f4f2;
    --fams-texto: #4b4f55;
    --fams-suave: #82868b;
    --fams-linha: #ecebe6;
}

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

html, body { margin: 0; }

body.publico {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--fams-fundo);
    color: var(--fams-escuro);
    font-family: 'Nunito', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.publico a { color: var(--fams-verde); }

.publico-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.publico-marca {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: inherit;
    text-decoration: none;
}

.publico-marca img { width: 40px; height: auto; }

.publico-marca-nome {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.1;
    color: var(--fams-verde);
}

.publico-marca-lema {
    display: block;
    font-size: .72rem;
    line-height: 1.2;
    color: #6c6f66;
}

.publico-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 1rem 1rem 3rem;
}

.publico-rodape {
    padding: 1.5rem;
    text-align: center;
    font-size: .8rem;
    color: var(--fams-suave);
}

/* ---- botoes ---- */
.btn-fams {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.6rem;
    border: 1px solid var(--fams-escuro);
    border-radius: 999px;
    background: var(--fams-escuro);
    color: #fff !important;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease;
}

.btn-fams:hover { background: var(--fams-castanho); border-color: var(--fams-castanho); }

.btn-fams-claro {
    background: transparent;
    color: var(--fams-escuro) !important;
    border-color: #d9d7cf;
}

.btn-fams-claro:hover { background: #fff; border-color: var(--fams-escuro); }

.btn-fams:focus-visible { outline: 3px solid rgba(81, 96, 36, .5); outline-offset: 2px; }

/* ---- paginas de erro ---- */
.erro {
    align-self: center;
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.erro-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--fams-verde-claro);
    color: var(--fams-verde);
    font-size: 1.75rem;
}

.erro-codigo {
    margin: 0;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--fams-verde);
}

.erro h1 {
    margin: .35rem 0 .75rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.erro p.erro-texto {
    margin: 0 auto 2rem;
    max-width: 440px;
    color: var(--fams-texto);
}

.erro-accoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

/* ---- documento (politica de privacidade) ---- */
.documento {
    width: 100%;
    max-width: 780px;
    background: #fff;
    border-radius: 16px;
    border-top: 4px solid var(--fams-verde);
    padding: 2.5rem 3rem;
    box-shadow: 0 1px 3px rgba(26, 24, 24, .06);
}

.documento h1 { margin: 0 0 .25rem; font-size: 2rem; font-weight: 800; line-height: 1.2; }

.documento .documento-data { margin: 0 0 1.5rem; font-size: .85rem; color: var(--fams-suave); }

.documento .documento-indice {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.documento-indice a {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--fams-fundo);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.documento-indice a:hover { background: var(--fams-verde-claro); }

.documento section { padding-top: 1.5rem; border-top: 1px solid var(--fams-linha); margin-top: 1.5rem; }

.documento h2 { margin: 0 0 .75rem; font-size: 1.2rem; font-weight: 800; }

.documento h3 { margin: 1.25rem 0 .35rem; font-size: 1rem; font-weight: 700; }

.documento p, .documento li { color: var(--fams-texto); }

.documento p { margin: 0 0 .75rem; }

.documento ul { margin: 0 0 .75rem; padding-left: 1.25rem; }

.documento address { font-style: normal; color: var(--fams-texto); }

@media (max-width: 600px) {
    .publico-marca-lema { display: none; }
    .documento { padding: 1.75rem 1.25rem; border-radius: 12px; }
    .erro h1 { font-size: 1.6rem; }
}
