/* Legal modals (Privacy Policy / Cookies / Disclaimer) — mobile-first */

body.modal-open {
  overflow: hidden;
}

button.modal-trigger {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal.modal--open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__content {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding: 24px 20px 28px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  animation: modal-slide-up 0.25s ease-out;
}

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

.modal__close:hover {
  background: #e2e2e2;
}

.modal__title {
  margin: 0 32px 16px 0;
  font-size: 20px;
  font-weight: 900;
  color: #0056b3;
  text-transform: uppercase;
}

.modal__body {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.modal__body p {
  margin: 0 0 12px;
}

@keyframes modal-slide-up {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 576px) {
  .modal {
    align-items: center;
    padding: 20px;
  }

  .modal__content {
    max-width: 520px;
    max-height: 80vh;
    border-radius: 12px;
    padding: 32px;
    animation: modal-fade-in 0.25s ease-out;
  }

  @keyframes modal-fade-in {
    from {
      transform: translateY(-12px) scale(0.98);
      opacity: 0;
    }
    to {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
  }
}

@media (min-width: 992px) {
  .modal__content {
    max-width: 640px;
    padding: 40px;
  }

  .modal__title {
    font-size: 24px;
  }
}
