/* Legal pages — Terms & Privacy */

.legal-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 2rem 1.25rem 3rem;
}

.legal-top {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-back {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 2rem 1.75rem;
}

.legal-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.legal-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.legal-content {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

.legal-content > p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.75rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

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

.legal-footer-links {
  max-width: 720px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-footer-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-footer-links a:hover {
  text-decoration: underline;
}

.legal-footer-links span {
  margin: 0 0.5rem;
  opacity: 0.4;
}
