/* ==========================================================================
   Nairaloop — Terms & Conditions Modal
   ========================================================================== */

.nl-terms-modal-wrap .modal-dialog {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nl-terms-dialog {
  max-width: 800px;
  width: 95%;
  margin: 1.5rem auto;
  transform: scale(0.96);
}

.nl-terms-modal-wrap.show .nl-terms-dialog {
  transform: scale(1);
}

.nl-terms-modal {
  position: relative;
  border: none;
  border-radius: 24px;
  background: var(--faq-modal-bg, #ffffff);
  box-shadow: var(--faq-modal-shadow, 0 24px 64px rgba(0, 0, 0, 0.12));
  overflow: hidden;
  font-family: 'Poppins', var(--nl-font);
}

.nl-terms-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--faq-close-bg, #f3f4f6);
  color: var(--faq-close-color, #6b7280);
  font-size: 18px;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nl-terms-modal__close:hover {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  transform: scale(1.05);
}

.nl-terms-modal__body {
  padding: 40px 48px 48px;
  max-height: 80vh;
  overflow-y: auto;
}

.nl-terms-modal__header {
  padding-right: 56px;
  margin-bottom: 28px;
}

.nl-terms-modal__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--faq-question-color, #1e1b4b);
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.nl-terms-modal__updated {
  font-size: 14px;
  color: var(--faq-answer-color, #6b7280);
  margin: 0;
}

.nl-terms-modal__intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--faq-answer-color, #6b7280);
  margin: 0 0 28px;
}

.nl-terms-modal__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nl-terms-section {
  padding: 24px 0;
  border-top: 1px solid var(--terms-divider, #ececec);
}

.nl-terms-section:first-child {
  border-top: none;
  padding-top: 0;
}

.nl-terms-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--faq-question-color, #1e1b4b);
  margin: 0 0 12px;
  line-height: 1.35;
}

.nl-terms-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--faq-answer-color, #6b7280);
  margin: 0 0 12px;
}

.nl-terms-section p:last-child {
  margin-bottom: 0;
}

.nl-terms-section ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  font-size: 15px;
  line-height: 1.8;
  color: var(--faq-answer-color, #6b7280);
}

.nl-terms-section li {
  margin-bottom: 6px;
}

.nl-terms-section li:last-child {
  margin-bottom: 0;
}

.nl-terms-section__contact strong {
  color: var(--faq-question-color, #1e1b4b);
}

[data-theme="dark"] {
  --terms-divider: rgba(255, 255, 255, 0.08);
}

.nl-terms-section__contact a {
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nl-terms-section__contact a:hover {
  color: #6d28d9;
  text-decoration: underline;
}

[data-theme="dark"] .nl-terms-section__contact a {
  color: #8b7cff;
}

@media (max-width: 768px) {
  .nl-terms-dialog {
    width: 100%;
    margin: 0.5rem auto;
  }

  .nl-terms-modal {
    border-radius: 20px;
  }

  .nl-terms-modal__body {
    padding: 24px 20px 32px;
    max-height: 88vh;
  }

  .nl-terms-modal__close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

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

  .nl-terms-section__title {
    font-size: 16px;
  }

  .nl-terms-section p,
  .nl-terms-section ul {
    font-size: 14px;
  }
}
