.terms-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.terms-modal.hidden {
  display: none;
}

.terms-content {
  background: white;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  font-family: 'Inter', sans-serif;
}

.terms-content h2 {
  color: #1A5276;
  font-size: 22px;
  margin-bottom: 10px;
  text-align: center;
}

.terms-subtitle {
  text-align: center;
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
}

.terms-summary {
  background: #EBF5FB;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #3498DB;
}

.terms-summary h3 {
  color: #2874A6;
  font-size: 16px;
  margin-bottom: 10px;
}

.terms-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-summary li {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.terms-details {
  margin-bottom: 20px;
}

.terms-details h3 {
  color: #1A5276;
  font-size: 16px;
  margin-bottom: 15px;
}

.terms-details h4 {
  color: #2874A6;
  font-size: 14px;
  margin-top: 15px;
  margin-bottom: 8px;
}

.terms-details p {
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 10px;
}

.terms-details ul {
  margin-left: 20px;
  font-size: 13px;
  line-height: 1.7;
}

.terms-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid #ECF0F1;
}

.terms-footer p {
  font-size: 13px;
  margin-bottom: 15px;
  color: #555;
}

.agree-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.agree-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.terms-content::-webkit-scrollbar {
  width: 8px;
}

.terms-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.terms-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}
