/* ========================================================================
 * Cookie Banner — LGPD Phase 2
 * Estilo segue o design system publico (Playfair Display + Poppins + brand)
 * ====================================================================== */

.lgpd-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: -200%;
    z-index: 9998;
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    color: #1F2A2E;
    border: 1px solid #E5DDD0;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(31, 42, 46, 0.18);
    padding: 18px 20px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.92rem;
    line-height: 1.55;
    transition: bottom .35s cubic-bezier(.22, .61, .36, 1);
}
.lgpd-banner--visible {
    bottom: 16px;
}

.lgpd-banner__body {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.lgpd-banner__txt {
    flex: 1 1 360px;
    color: #4A5A60;
}
.lgpd-banner__txt strong { color: #1F2A2E; }
.lgpd-banner__txt a {
    color: #2BA39E;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.lgpd-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Botoes (compartilhados banner + modal) */
.lgpd-btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .12s ease;
}
.lgpd-btn:hover { transform: translateY(-1px); }
.lgpd-btn:active { transform: translateY(0); }
.lgpd-btn--primary {
    background: #37C4BE;
    color: #fff;
}
.lgpd-btn--primary:hover { background: #2BA39E; }
.lgpd-btn--secondary {
    background: #F1ECE4;
    color: #1F2A2E;
}
.lgpd-btn--secondary:hover { background: #E5DDD0; }
.lgpd-btn--ghost {
    background: transparent;
    color: #4A5A60;
}
.lgpd-btn--ghost:hover {
    background: #F1ECE4;
    color: #1F2A2E;
}

/* =========== Modal de personalizacao =========== */
.lgpd-modal[hidden] { display: none; }
.lgpd-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lgpd-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 42, 46, 0.55);
    backdrop-filter: blur(2px);
    cursor: pointer;
}
.lgpd-modal__card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: min(560px, 100%);
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(31, 42, 46, 0.28);
    font-family: 'Poppins', system-ui, sans-serif;
    color: #1F2A2E;
}
.lgpd-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #E5DDD0;
}
.lgpd-modal__head h3 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2A2E;
}
.lgpd-modal__close {
    appearance: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #4A5A60;
    cursor: pointer;
    padding: 0 8px;
}
.lgpd-modal__close:hover { color: #1F2A2E; }
.lgpd-modal__body {
    padding: 20px 22px;
    overflow-y: auto;
    color: #4A5A60;
    font-size: 0.94rem;
}
.lgpd-modal__lead {
    margin: 0 0 18px;
    color: #4A5A60;
}
.lgpd-modal__foot {
    padding: 14px 22px;
    border-top: 1px solid #E5DDD0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #FAF8F4;
}

/* Toggles por categoria */
.lgpd-toggle {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #E5DDD0;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.lgpd-toggle:hover { border-color: #37C4BE; background: #F8FFFE; }
.lgpd-toggle input[type=checkbox] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #37C4BE;
    flex-shrink: 0;
}
.lgpd-toggle strong {
    color: #1F2A2E;
    font-size: 0.95rem;
}
.lgpd-toggle p {
    margin: 4px 0 0;
    color: #4A5A60;
    font-size: 0.86rem;
    line-height: 1.5;
}
.lgpd-toggle--locked {
    background: #F1ECE4;
    cursor: not-allowed;
}
.lgpd-toggle--locked:hover {
    border-color: #E5DDD0;
    background: #F1ECE4;
}
.lgpd-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    background: #fff;
    color: #4A5A60;
    border: 1px solid #E5DDD0;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    vertical-align: middle;
}

/* Responsivo */
@media (max-width: 640px) {
    .lgpd-banner {
        left: 8px;
        right: 8px;
        padding: 14px 16px;
        font-size: 0.86rem;
    }
    .lgpd-banner--visible { bottom: 8px; }
    .lgpd-banner__actions {
        width: 100%;
        flex-direction: column-reverse;
    }
    .lgpd-banner__actions .lgpd-btn { width: 100%; }
}
