.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 390px;
  background: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  animation: modalOpen .22s ease;
}

@keyframes modalOpen {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-box h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
}

.modal-box p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
}

.modal-box button {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.modal-box button:hover {
  opacity: .95;
}

.success-modal-box h3 {
  color: #008f2f;
}

.privacy-modal-box {
  max-width: 430px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.privacy-modal-box h3 {
  text-align: center;
}

.privacy-content {
  overflow-y: auto;
  max-height: 58vh;
  padding: 4px 4px 12px;
}

.privacy-content h4 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.privacy-content p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #333;
}