/* Aviso de cookies e links legais. Arquivo próprio para servir às três páginas
   (início, 404 e política) sem depender de styles.css. */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500; /* acima do cabeçalho e da barra de seleção; abaixo do drawer e dos modais */
  box-sizing: border-box;
  width: min(440px, calc(100% - 40px));
  padding: 22px 24px 20px;
  background: #FBF9F5;
  color: #2E2A25;
  border: 1px solid #E8E1D6;
  border-top: 2px solid #C5A059;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(31, 28, 25, .16);
  font-family: "Karla", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.cookie-banner[hidden] { display: none; }
.cookie-title {
  margin: 0 0 6px;
  font-family: "Marcellus", serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
}
.cookie-text { margin: 0; color: #6D645B; }
.cookie-text a {
  color: #855A2D;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(197, 160, 89, .55);
  text-underline-offset: 3px;
}
.cookie-text a:hover { color: #2E2A25; text-decoration-color: #C5A059; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
/* Recusar e Aceitar têm o mesmo destaque, sem induzir a escolha. */
.cookie-btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #C5A059;
  border-radius: 4px;
  background: transparent;
  color: #2E2A25;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 240ms cubic-bezier(.4,0,.2,1), color 240ms cubic-bezier(.4,0,.2,1);
}
.cookie-btn:hover { background: #C5A059; color: #2E2A25; }
.cookie-btn:focus-visible, .cookie-text a:focus-visible, .footer-legal a:focus-visible, .cookie-link-btn:focus-visible {
  outline: 2px solid #855A2D;
  outline-offset: 2px;
}
@media (max-width: 560px) {
  .cookie-banner { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px 18px 16px; }
}

/* Links "Política de privacidade" e "Preferências de cookies" nos rodapés. */
.footer-legal { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.footer-legal a, .cookie-link-btn {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(197, 160, 89, .55);
  text-underline-offset: 3px;
}
.footer-legal a:hover, .cookie-link-btn:hover { color: #2E2A25; text-decoration-color: #C5A059; }
.cookie-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.cookie-link-btn[hidden] { display: none; }
