/* Legal Page Styles */

.legal-page {
  min-height: calc(100vh - var(--header-height));
  background: var(--light-bg);
  padding: 3rem 2rem;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.legal-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Tab Navigation */
.legal-tabs {
  display: flex;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.legal-tab {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.legal-tab:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.legal-tab.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Tab Content */
.legal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.legal-panel {
  display: none;
  padding: 3rem;
  animation: fadeIn 0.3s ease;
}

.legal-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-panel h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.legal-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

/* Legal Sections */
.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-section h3::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 2px;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal-section ul li {
  list-style-type: disc;
}

.legal-section ol li {
  list-style-type: decimal;
}

.legal-section ul ul,
.legal-section ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.legal-section ul ul li,
.legal-section ol ul li {
  list-style-type: circle;
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Contact Info Box */
.contact-info {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-page {
    padding: 2rem 1rem;
  }

  .legal-header h1 {
    font-size: 1.75rem;
  }

  .legal-tabs {
    flex-direction: column;
  }

  .legal-tab {
    text-align: center;
  }

  .legal-panel {
    padding: 2rem 1.5rem;
  }

  .legal-panel h2 {
    font-size: 1.5rem;
  }
}
