


.privacy-modal,
#privacy-modal,
#terms-modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  background: white;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.2s ease;
  margin: auto;
}

.privacy-modal::backdrop,
#privacy-modal::backdrop,
#terms-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.privacy-modal,
#privacy-modal,
#terms-modal {
  max-height: 85vh;
  overflow-y: auto;
}

.modal-x {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
  line-height: 1;
  padding: 4px 8px;
}

.modal-x:hover {
  color: #000;
}

.privacy-modal h2,
#privacy-modal h2,
#terms-modal h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.privacy-modal section,
#privacy-modal section,
#terms-modal section {
  padding: 0 1.5rem;
  margin-bottom: 1.25rem;
}

.privacy-modal section h3,
#privacy-modal section h3,
#terms-modal section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.privacy-modal section p,
#privacy-modal section p,
#terms-modal section p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

.modal-footer {
  padding: 1.25rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 0.5rem;
}

.modal-footer .btn {
  background: var(--color-emerald-300);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}

.modal-footer .btn:hover {
  background:var(--color-emerald-400);
}