/* ============================================================
   Guardião Sênior — banner de consentimento de cookies
   Usa as variáveis CSS já definidas em cada página
   (index.html inline e assets/secondary.css).
   ============================================================ */

.cc-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 460px;
    background: var(--white, #ffffff);
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .14), 0 4px 12px rgba(0, 0, 0, .08);
    padding: 20px 22px;
    z-index: 10000;
    font-family: var(--font-body, system-ui, sans-serif);
    line-height: 1.55;
}

.cc-banner[hidden] {
    display: none;
}

.cc-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--slate-900, #0f172a);
    margin: 0 0 6px;
    outline: none;
}

.cc-desc {
    font-size: 0.9rem;
    color: var(--slate-600, #475569);
    margin: 0 0 12px;
}

.cc-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-700, #1e40af);
    background: var(--blue-50, #eff6ff);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 0 12px;
}

.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
}

.cc-btn-accept {
    background: var(--blue-600, #1a56db);
    color: var(--white, #ffffff);
}

.cc-btn-accept:hover {
    background: var(--blue-700, #1e40af);
}

.cc-btn-refuse {
    background: var(--white, #ffffff);
    color: var(--slate-700, #334155);
    border-color: var(--slate-300, #cbd5e1);
}

.cc-btn-refuse:hover {
    border-color: var(--blue-300, #93c5fd);
    color: var(--blue-700, #1e40af);
}

.cc-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-600, #1a56db);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cc-link:hover {
    color: var(--blue-700, #1e40af);
}

/* Controle "Preferências de cookies" nos rodapés — botão real,
   com aparência de link do rodapé. */
.cc-prefs-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--slate-500, #64748b);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    min-height: 44px;
}

.cc-prefs-btn:hover {
    color: var(--blue-600, #1a56db);
}

/* rodapé escuro das páginas secundárias */
.site-footer .cc-prefs-btn {
    color: var(--slate-300, #cbd5e1);
}

.site-footer .cc-prefs-btn:hover {
    color: var(--white, #ffffff);
}

@media (max-width: 640px) {
    .cc-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        padding: 18px;
    }

    .cc-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-btn {
        width: 100%;
    }
}
