/* =====================================================
   LEGAL PAGES STYLES - Dark Theme
   ===================================================== */

.legal-content {
  padding: 7rem 1rem 4rem;
  min-height: calc(100vh - 300px);
  background: var(--background);
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary-light);
}

.back-link svg {
  width: 20px;
  height: 20px;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.title-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

.title-with-icon h1 {
  margin-bottom: 0;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease;
}

.legal-card:hover {
  border-color: var(--text-dim);
}

.legal-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-card h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background: var(--primary);
  border-radius: 2px;
}

.legal-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-card h3:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

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

.legal-card p.mt-2 {
  margin-top: 1rem;
}

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

.legal-card ul {
  color: var(--text-muted);
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  list-style: disc;
}

.legal-card ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-card a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-card a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.info-item svg {
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.info-item .label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.info-item p {
  margin-bottom: 0.125rem;
  color: var(--text-muted);
}

.text-muted {
  color: var(--text-muted);
}

.rights-list {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.rights-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.1);
  flex-wrap: wrap;
}

.rights-list li strong {
  color: var(--primary-light);
  min-width: 180px;
  font-weight: 600;
}

.rights-list li span {
  color: var(--text-muted);
}

.last-updated {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

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

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

  .title-with-icon {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .title-icon {
    width: 32px;
    height: 32px;
  }

  .legal-card {
    padding: 1.25rem;
  }

  .rights-list li {
    flex-direction: column;
    gap: 0.25rem;
  }

  .rights-list li strong {
    min-width: auto;
  }

  .info-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .info-item svg {
    display: none;
  }
}
