/* Legal Modal Styles */
.legal-modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.legal-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.legal-modal {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.legal-modal-overlay.active .legal-modal {
  transform: translateY(0);
}

.legal-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.legal-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.legal-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.legal-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f59e0b;
}

.legal-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.legal-modal-body h3 {
  font-size: 1.2rem;
  color: #f59e0b;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

.legal-modal-body ul {
  list-style: none;
  padding-right: 1.5rem;
  margin: 1rem 0;
}

.legal-modal-body li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-right: 1rem;
}

.legal-modal-body li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: #f59e0b;
}

/* Legal Link Styles */
.legal-link {
  color: #f59e0b;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px dotted rgba(245, 158, 11, 0.5);
  transition: all 0.2s ease;
}

.legal-link:hover {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .legal-modal {
    max-height: 95vh;
    border-radius: 12px 12px 0 0;
  }

  .legal-modal-header {
    padding: 1rem 1.5rem;
  }

  .legal-modal-header h2 {
    font-size: 1.25rem;
  }

  .legal-modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .legal-modal {
    border-radius: 12px 12px 0 0;
    max-height: 98vh;
  }

  .legal-modal-body {
    padding: 1rem;
    font-size: 0.95rem;
  }
}
