/* Aviso de cookies + links legais do rodapé */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: var(--branco);
  color: var(--almost-black);
  border: 1px solid var(--lilas);
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 2rem rgba(var(--preto-rgb), 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner * {
  transition: none;
}

.cookie-banner__text {
  flex: 1 1 18rem;
}

.cookie-banner__text p {
  margin: 0;
}

.cookie-banner__title {
  font-weight: var(--font-bold);
  margin-bottom: 0.25rem !important;
}

.cookie-banner a {
  color: #6d28d9;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex: 0 0 auto;
}

/* Os dois botões têm o mesmo peso visual, como a LGPD pede */
.cookie-banner__btn,
.cookie-manage-btn {
  font: inherit;
  font-weight: var(--font-semibold);
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: 2px solid #6d28d9;
  background: var(--branco);
  color: #6d28d9;
  cursor: pointer;
}

.cookie-banner__btn:hover,
.cookie-manage-btn:hover {
  background: #6d28d9;
  color: var(--branco);
}

.cookie-banner__btn:focus-visible,
.cookie-manage-btn:focus-visible,
.footer__legal a:focus-visible,
.footer__legal button:focus-visible {
  outline: 3px solid var(--almost-black);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 1rem;
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__btn {
    flex: 1 1 0;
  }
}

/* Links legais no rodapé */
.footer__legal {
  margin: 3.75rem 0 0;
  padding: 0.5rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--almost-black);
}

.footer__legal a,
.footer__legal button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  cursor: pointer;
}

.footer__legal a:hover,
.footer__legal button:hover {
  color: #6d28d9;
}
