/* Footer legal modals (Privacy Policy / Cookies / Disclaimer) — mobile first */

.footer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 32, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  z-index: 10050;
}

.footer-modal-overlay[hidden] {
  display: none;
}

.footer-modal {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  color: #1a2437;
  border-radius: 16px 16px 0 0;
  padding: 28px 20px 24px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  animation: footerModalSlideUp 0.2s ease-out;
}

.footer-modal:focus {
  outline: none;
}

.footer-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #f1f3f6;
  color: #1a2437;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.footer-modal__close:hover,
.footer-modal__close:focus-visible {
  background: #e2e6ec;
}

.footer-modal__content h2 {
  margin: 0 0 16px;
  padding-right: 32px;
  font-size: 1.4rem;
  line-height: 1.3;
}

.footer-modal__content p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-modal__content p:last-child {
  margin-bottom: 0;
}

body.footer-modal-open {
  overflow: hidden;
}

@keyframes footerModalSlideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 560px) {
  .footer-modal-overlay {
    align-items: center;
    padding: 24px;
  }

  .footer-modal {
    max-width: 560px;
    border-radius: 16px;
    padding: 32px 32px 28px;
  }
}

@media (min-width: 900px) {
  .footer-modal {
    max-width: 640px;
    padding: 40px 40px 32px;
  }

  .footer-modal__content h2 {
    font-size: 1.6rem;
  }
}
