/* Legal pages — content styles only; header & back-to-top use style.css + mobile.css */

.legal-page {
  background: var(--bg-dark);
  overflow-x: hidden;
  max-width: 100%;
}

.legal-main {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 4rem;
  min-height: calc(100vh - var(--header-height));
  max-width: 100%;
  overflow-x: hidden;
}

.legal-page-header {
  margin-bottom: 2.5rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}

.legal-back:hover {
  color: var(--accent-purple);
}

.legal-back svg {
  width: 18px;
  height: 18px;
}

.legal-page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
  overflow-wrap: break-word;
}

.legal-content {
  max-width: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.5;
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.legal-content p strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.legal-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-content a:hover {
  color: #a78bfa;
}

@media (max-width: 767px) {
  .legal-main {
    padding-top: calc(var(--header-height) + 1.5rem);
  }
}
