/* ==========================================================================
   Estilos do Banner e Modal LGPD — Norte Corporate (Paleta Aço Escovado)
   ========================================================================== */
.lgpd-banner,
.lgpd-modal {
    font-family: 'Be Vietnam', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    position: fixed;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
    box-sizing: border-box;
}

.lgpd-banner.show,
.lgpd-modal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Banner Fixo no Rodapé */
.lgpd-banner {
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(22, 27, 36, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.25);
    z-index: 99999;
}

.lgpd-banner-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    line-height: 1.5;
    flex-wrap: wrap;
    padding: 6px 10px;
    justify-content: flex-start;
    color: #cbd5e1;
}

.lgpd-banner-text svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.lgpd-banner-text a {
    color: #f1f5f9;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.lgpd-banner-text a:hover {
    color: #ffffff;
}

.lgpd-banner-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    align-items: center;
}

.lgpd-banner-actions button {
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

/* Botão Aceitar Todos: Estilo Aço Escovado */
#lgpd-btn-accept-all {
    background-color: #2b323d;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#lgpd-btn-accept-all:hover {
    background-color: #3b4452;
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

/* Botão Gerenciar Preferências */
#lgpd-btn-manage {
    background-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

#lgpd-btn-manage:hover {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Modal de Preferências */
.lgpd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 18, 24, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.lgpd-modal-content {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 12px;
    max-width: 520px;
    width: 92%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.lgpd-modal-content h3 {
    margin: 0 0 10px 0;
    color: #1e232b;
    font-size: 19px;
    font-weight: 700;
}

.lgpd-modal-content p {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.lgpd-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.lgpd-category:last-child {
    border-bottom: none;
}

.lgpd-category-info {
    flex: 1;
    padding-right: 15px;
}

.lgpd-category-info strong {
    display: block;
    margin-bottom: 4px;
    color: #1e232b;
    font-size: 14px;
}

.lgpd-category-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.lgpd-modal-actions {
    margin-top: 25px;
    text-align: right;
}

#lgpd-btn-save-preferences {
    background-color: #1e232b;
    color: #ffffff;
    padding: 10px 22px;
    border: 1px solid #373d48;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

#lgpd-btn-save-preferences:hover {
    background-color: #2b323d;
    border-color: #4a5260;
}

#lgpd-btn-close-x {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s ease;
}

#lgpd-btn-close-x:hover {
    color: #1e232b;
}

/* Link "Preferências de cookies" no footer */
#open-lgpd-modal {
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
}

#open-lgpd-modal:hover {
    opacity: 0.85;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .lgpd-banner {
        flex-direction: column;
        padding: 14px 18px;
        gap: 12px;
        text-align: center;
    }

    .lgpd-banner-text {
        padding: 0;
        font-size: 13px;
        line-height: 1.45;
        justify-content: center;
        text-align: center;
    }

    .lgpd-banner-actions {
        margin-left: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .lgpd-banner-actions button {
        flex: 1;
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .lgpd-modal-content {
        padding: 24px 18px;
    }
}
