/* =====================
   MODALS (Privacy & Terms)
===================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 18, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

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

.modal-box {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

/* Sticky header inside modal */
.modal-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.modal-header h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.modal-close {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-3);
  transition: all 0.15s;
  font-family: var(--font-body);
}

.modal-close:hover {
  background: var(--green-pale);
  color: var(--green-darker);
}

/* Body */
.modal-body {
  padding: 28px;
}

.modal-body h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 24px 0 8px;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 10px;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
  list-style: disc;
}

.modal-body ul li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 4px;
}

.modal-updated {
  background: var(--green-pale);
  border-left: 3px solid var(--green);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--green-darker);
  font-weight: 600;
  margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 600px) {
  .modal-header { padding: 16px 20px; }
  .modal-body   { padding: 20px; }
}
