/* ==========================================================================
   COMPONENT: cookie-consent (LGPD-compliant banner)
   ========================================================================== */
.bc-cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-surface-1);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 950;
    overflow: hidden;
}
.bc-cookie-consent__compact {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
}
.bc-cookie-consent__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-2);
    border-radius: var(--radius-pill);
    font-size: 1.25rem;
}
.bc-cookie-consent__text strong {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--fw-bold);
    margin-bottom: 0.25rem;
}
.bc-cookie-consent__text span {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
}
.bc-cookie-consent__text a {
    color: var(--accent-secondary);
    text-decoration: underline;
}
.bc-cookie-consent__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.bc-cookie-consent__btn {
    padding: 0.55rem 1.1rem;
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-default);
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: all var(--duration-fast);
    white-space: nowrap;
}
.bc-cookie-consent__btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.bc-cookie-consent__btn--primary {
    background: var(--gradient-gold);
    color: #000;
    border-color: transparent;
}
.bc-cookie-consent__btn--primary:hover { transform: translateY(-1px); color: #000; }
.bc-cookie-consent__expanded {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}
.bc-cookie-consent.is-expanded .bc-cookie-consent__expanded { display: block; }
.bc-cookie-consent.is-expanded .bc-cookie-consent__compact { border-bottom: 1px solid var(--border-subtle); }
.bc-cookie-consent__category {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.bc-cookie-consent__category:last-of-type { border-bottom: none; }
.bc-cookie-consent__category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-2);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.bc-cookie-consent__category-info h4 {
    font-size: var(--text-base);
    font-weight: var(--fw-bold);
    margin-bottom: 0.25rem;
}
.bc-cookie-consent__category-info p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
}
.bc-cookie-consent__category-info small {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
}
/* Toggle switch */
.bc-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}
.bc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.bc-toggle__slider {
    position: absolute;
    inset: 0;
    background: var(--bg-surface-3);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--duration-fast);
}
.bc-toggle__slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--duration-fast);
}
.bc-toggle input:checked + .bc-toggle__slider { background: var(--accent-primary); }
.bc-toggle input:checked + .bc-toggle__slider::before { transform: translateX(18px); }
.bc-toggle input:disabled + .bc-toggle__slider { opacity: 0.5; cursor: not-allowed; }
.bc-cookie-consent__save {
    margin-top: 1rem;
    width: 100%;
}
@media (max-width: 640px) {
    .bc-cookie-consent__compact { grid-template-columns: 1fr; gap: 1rem; }
    .bc-cookie-consent__icon { width: 32px; height: 32px; }
    .bc-cookie-consent__actions { width: 100%; justify-content: stretch; }
    .bc-cookie-consent__btn { flex: 1; }
}

