.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
}

/* Modal content box */
.modal-content {
  background: var(--bg);
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  border-radius: 0px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Close button */
.modal .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  text-decoration: none;
  font-size: 2rem;
  color: var(--text);
}

.modal .close:hover {
  color: var(--primary);
}

/* Optional: style headings and paragraphs */
.modal h2 {
  margin-top: 0;
}

.modal h3 {
  margin-top: 1.5rem;
}

.modal p,
.modal ul {
  line-height: 1.6;
}

.modal-link {
  text-decoration: none;
  color: var(--bg);
}

.modal-link:hover {
  color: var(--primary);
}

/* Responsive modal text */
@media (max-width: 992px) {
  .modal-content {
    font-size: var(--font-size-xs);
    padding: 1rem 1.25rem;
  }
}