/* =========================================================
   3BF Agência — cookiebar.css
   Barra de consentimento de cookies (LGPD), de ponta a ponta,
   fixa na parte inferior da tela. Injetada por main.js em
   TODAS as páginas — nenhum script de Analytics/Marketing
   carrega antes do visitante decidir aqui.
   ========================================================= */

.cookiebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--navy-900);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, 0.5);
  animation: cookiebar-in 0.4s var(--ease);
}
.cookiebar--closing { animation: cookiebar-out 0.25s var(--ease) forwards; }

@keyframes cookiebar-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes cookiebar-out {
  to { transform: translateY(100%); opacity: 0; }
}

.cookiebar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--gut);
}

.cookiebar__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookiebar__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  flex: 1 1 320px;
  max-width: 640px;
}
.cookiebar__text .ulink { color: #fff; }

.cookiebar__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex: none;
}
.cookiebar__actions .btn,
.cookiebar__save { padding: 0.7rem 1.2rem; font-size: 0.75rem; }
.cookiebar__reject, .cookiebar__customize { --btn-bg: transparent; --btn-fg: #fff; border: 1px solid rgba(255, 255, 255, 0.28); }
.cookiebar__reject:hover, .cookiebar__customize:hover { border-color: rgba(255, 255, 255, 0.55); }

.cookiebar__panel {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.85rem;
}
.cookiebar__panel[hidden] { display: none; }

.cookiebar__toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.cookiebar__toggle--locked { cursor: default; opacity: 0.75; }
.cookiebar__toggle input { margin-top: 0.2rem; width: 18px; height: 18px; flex: none; accent-color: var(--orange-500); }
.cookiebar__toggle span { display: grid; gap: 0.15rem; }
.cookiebar__toggle b { font-family: var(--font-display); font-size: 0.8125rem; }
.cookiebar__toggle small { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); line-height: 1.4; }

.cookiebar__save { align-self: start; }

@media (max-width: 860px) {
  .cookiebar__inner { padding: 1rem 1.15rem; }
  .cookiebar__main { flex-direction: column; align-items: stretch; }
  /* Em row, flex:1 1 320px dá largura mínima ao texto. Em column
     (aqui embaixo), o mesmo flex-basis vira ALTURA — sem isso o texto
     ganhava 320px de altura à toa. */
  .cookiebar__text { flex: none; max-width: none; }
  .cookiebar__actions { justify-content: stretch; }
  .cookiebar__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cookiebar, .cookiebar--closing { animation: none; }
}

/* Ícones Font Awesome nos links do rodapé — mesmo tamanho da letra
   (herdado por padrão, sem precisar fixar font-size), só com largura
   fixa pra alinhar os textos em coluna e um respiro até o nome. */
.footer .ulink i {
  width: 1.1em;
  text-align: center;
  margin-right: 0.5em;
  color: inherit;
}

/* Tabela de categorias de cookies na página de Política de Privacidade */
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
}
.cookies-table th, .cookies-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.cookies-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--muted);
}
