/* SCAE Livros · Cookie consent banner (LGPD + Consent Mode v2)
   Banner discreto no rodapé. Aparece até o leitor decidir.
   Após decisão, persiste em localStorage por 365 dias. */

.scae-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: #1a1714;
  color: #f3ecdf;
  padding: 18px 22px;
  border-radius: 6px;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,.5), 0 4px 12px -4px rgba(0,0,0,.3);
  font-family: "Spectral", Georgia, serif;
  font-size: 14.5px;
  line-height: 1.5;
  z-index: 9999;
  display: none;
  animation: scae-consent-in .3s ease-out;
}
.scae-consent.is-visible { display: block; }

@keyframes scae-consent-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.scae-consent__title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  margin: 0 0 6px;
  color: #f4ead8;
}
.scae-consent__text {
  margin: 0 0 14px;
  color: #d4c8b3;
}
.scae-consent__text a {
  color: #c98744;
  text-decoration: underline;
}
.scae-consent__text a:hover {
  color: #f4ead8;
}
.scae-consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.scae-consent__btn {
  flex: 1;
  min-width: 120px;
  padding: 11px 16px;
  border: 0;
  border-radius: 4px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.scae-consent__btn--accept {
  background: #b8482e;
  color: #f3ecdf;
}
.scae-consent__btn--accept:hover { background: #d2563a; }

.scae-consent__btn--reject {
  background: transparent;
  color: #d4c8b3;
  border: 1px solid #4a4239;
}
.scae-consent__btn--reject:hover {
  background: rgba(255,255,255,.06);
  color: #f4ead8;
}

/* Pequeno link "preferências" se o user já decidiu — permite mudar */
.scae-consent-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  background: rgba(26,23,20,.9);
  color: #c98744;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 9998;
  display: none;
  border: 1px solid rgba(201,135,68,.3);
  cursor: pointer;
}
.scae-consent-toggle:hover {
  background: #1a1714;
  color: #f4ead8;
}

@media (max-width: 600px) {
  .scae-consent {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 14px 16px;
    font-size: 13.5px;
  }
  .scae-consent__btn { font-size: 10.5px; padding: 10px 12px; }
}
