/* Public privacy policy and terms. Uses the site theme variables. */
.legal-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-primary, #0a0f1a);
  color: var(--text-primary, #e8eef8);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.7777778;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.legal-brand img {
  display: block;
  border-radius: 50%;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.92rem;
}

.legal-nav a {
  color: var(--purple-text, #c4b5fd);
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-doc {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.legal-doc h1 {
  margin: 0 0 0.8571429em;
  font-size: 2.25em;
  font-weight: 800;
  line-height: 1.1111111;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.legal-meta {
  margin: 0 0 1.5rem;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.95rem;
}

.legal-doc h2 {
  margin: 1.8666667em 0 1.0666667em;
  font-size: 1.6666667em;
  font-weight: 700;
  line-height: 1.3333333;
  color: var(--text-primary);
}

.legal-doc h2 + p,
.legal-doc h2 + ul {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  margin: 1.3333333em 0;
  color: var(--text-primary);
}

.legal-doc p:first-of-type {
  margin-top: 0;
}

.legal-doc ul {
  margin: 1.3333333em 0;
  padding-left: 1.5555556em;
}

.legal-doc a {
  color: var(--purple-text, #c4b5fd);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-foot {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .legal-body {
    font-size: 1.25rem;
    line-height: 1.8;
  }

  .legal-doc h1 {
    font-size: 2.8em;
    line-height: 1;
    margin-bottom: 0.8571429em;
  }

  .legal-doc h2 {
    font-size: 1.8em;
    line-height: 1.1111111;
    margin-top: 1.5555556em;
    margin-bottom: 0.8888889em;
  }

  .legal-doc p,
  .legal-doc li,
  .legal-doc ul {
    margin-top: 1.2em;
    margin-bottom: 1.2em;
  }

  .legal-doc ul {
    padding-left: 1.6em;
  }

  .legal-doc h2 + p,
  .legal-doc h2 + ul,
  .legal-doc p:first-of-type {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .legal-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
