/* Banner de cookies e privacidade */
.ck-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 30px);
  width: min(960px, calc(100% - 32px));
  background: var(--color-white, #fff);
  color: var(--color-primary, #1a1449);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(26, 20, 73, .28);
  border-top: 4px solid var(--color-accent, #4eae33);
  padding: 22px 26px;
  z-index: 2147483000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.ck-banner.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.ck-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; }
.ck-text { font-size: .875rem; line-height: 1.55; margin: 0 0 1rem; color: #3d3d4e; }
.ck-text a { color: var(--color-dark, #00577f); font-weight: 600; }

.ck-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ck-btn {
  border: 2px solid var(--color-primary, #1a1449);
  background: transparent;
  color: var(--color-primary, #1a1449);
  font: 700 .85rem var(--font-primary, 'Montserrat', sans-serif);
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s ease;
}
.ck-btn:hover { background: var(--color-primary, #1a1449); color: #fff; }
.ck-btn-primary { background: var(--color-accent, #4eae33); border-color: var(--color-accent, #4eae33); color: #fff; }
.ck-btn-primary:hover { background: #3f9028; border-color: #3f9028; }
.ck-btn:focus-visible, .ck-fab:focus-visible, .ck-switch input:focus-visible + .ck-slider {
  outline: 3px solid var(--color-dark, #00577f);
  outline-offset: 2px;
}

/* Preferências */
.ck-prefs { display: none; margin-bottom: 1rem; border-top: 1px solid #e5e5ee; }
.ck-banner.show-prefs .ck-prefs { display: block; }
.ck-cat { padding: 14px 0; border-bottom: 1px solid #e5e5ee; }
.ck-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ck-cat-name { font-weight: 700; font-size: .9rem; }
.ck-cat-desc { font-size: .8rem; color: #5a5a6e; margin: 6px 0 0; line-height: 1.5; }
.ck-always { font-size: .75rem; font-weight: 700; color: var(--color-accent, #4eae33); white-space: nowrap; }

.ck-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.ck-switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.ck-slider { position: absolute; inset: 0; background: #c3c3cf; border-radius: 26px; transition: background .2s; }
.ck-slider::before {
  content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s;
}
.ck-switch input:checked + .ck-slider { background: var(--color-accent, #4eae33); }
.ck-switch input:checked + .ck-slider::before { transform: translateX(20px); }

/* Ícone flutuante */
.ck-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  background: var(--color-accent, #4eae33);
  color: #fff;
  font-size: 1.6rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  z-index: 2147482000;
  transition: transform .2s ease, background .2s;
}
.ck-fab.is-visible { display: flex; }
.ck-fab:hover { transform: scale(1.08); background: #3f9028; }

@media (max-width: 576px) {
  .ck-banner { bottom: 10px; padding: 18px; }
  .ck-actions { flex-direction: column; }
  .ck-btn { width: 100%; }
  .ck-fab { left: 12px; bottom: 12px; width: 48px; height: 48px; font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-banner, .ck-fab, .ck-slider, .ck-slider::before { transition: none; }
}

/* Páginas legais */
.legal-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--color-primary, #1a1449); margin: 2rem 0 .75rem; }
.legal-content h4 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.legal-content p, .legal-content li { line-height: 1.7; }
.legal-content .table { font-size: .9rem; }
