.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 41, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  position: sticky;
  top: 0;
  padding: 20px 25px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.modal-header h2 {
  color: var(--white);
  font-size: 1.4rem;
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: rotate(90deg);
}

.modal-body {
  padding: 25px;
}

.modal-body h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 20px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--yellow);
}

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

.modal-body p {
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 0.95rem;
}

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

.modal-body ul li {
  color: var(--gray-600);
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.modal-body .info-box {
  background: var(--gray-50);
  border-left: 4px solid var(--yellow);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  margin: 15px 0;
}

.modal-body .info-box p {
  margin: 0;
}

.modal-body .update-date {
  color: var(--gray-600);
  font-size: 0.85rem;
  margin-bottom: 15px;
  padding: 8px 12px;
  background: var(--gray-50);
  border-radius: 6px;
  display: inline-block;
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
  }

  .modal {
    max-height: 95vh;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 20px;
  }
}
