/* Aviso de cookies (js/consent.js): barra fina e discreta na base da tela.
   Não bloqueia nada: o site continua navegável e nada de medição carrega antes da escolha. */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -6px 20px -14px rgba(19, 43, 58, .35);
  font-size: .8125rem; line-height: 1.45; color: var(--ink-2);
}
@supports (backdrop-filter: blur(8px)) {
  .cookie-bar { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); }
}
.cookie-bar:focus { outline: none; }
.cookie-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 52px; padding-block: 8px; }
.cookie-bar__text a { color: var(--action); font-weight: 600; text-underline-offset: 3px; }
.cookie-bar__text a:hover { color: var(--action-hover); }
/* Recusar e Aceitar com o mesmo tamanho: recusar precisa ser tão fácil quanto aceitar */
.cookie-bar__actions { display: flex; gap: 8px; flex: none; }
.cookie-bar__btn {
  min-width: 92px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: 9px; background: var(--bg);
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.cookie-bar__btn:hover { border-color: var(--action); color: var(--action-hover); }
.cookie-bar__btn--ok { border-color: var(--action); background: var(--action); color: #fff; }
.cookie-bar__btn--ok:hover { background: var(--action-hover); border-color: var(--action-hover); color: #fff; }

@media (max-width: 599px) {
  .cookie-bar__inner { flex-direction: column; align-items: stretch; padding-block: 10px 12px; }
  .cookie-bar__actions .cookie-bar__btn { flex: 1; min-height: 40px; }
}

/* botão flutuante do WhatsApp sobe enquanto a barra está na tela */
.wa-float { bottom: calc(16px + var(--cookie-bar-h, 0px)); }

@media (prefers-reduced-motion: no-preference) {
  .cookie-bar { animation: cookie-in 360ms var(--ease) 400ms both; }
  .cookie-bar.is-leaving { animation: cookie-out 200ms var(--ease) both; }
}
@keyframes cookie-in { from { transform: translateY(100%); } }
@keyframes cookie-out { to { transform: translateY(100%); } }

/* "Preferências de cookies" no rodapé: botão com cara de link */
.cookie-prefs {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-decoration: none;
}
.cookie-prefs:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .cookie-prefs, .legal-footer .cookie-prefs { color: #C9D8E2; }
.site-footer .cookie-prefs:hover, .legal-footer .cookie-prefs:hover { color: #fff; }
.site-footer__legal .cookie-prefs:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__legal { flex-wrap: wrap; column-gap: 20px; row-gap: 0; }
