:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #050507;
  color: #f5f5f7;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  width: min(56rem, 94vw);
  height: min(56rem, 94vw);
  border-radius: 50%;
  content: "";
  filter: blur(3px);
  pointer-events: none;
}

body::before {
  top: -42rem;
  left: 50%;
  background: radial-gradient(
    circle,
    rgba(114, 92, 255, 0.18),
    rgba(5, 5, 7, 0) 68%
  );
  transform: translateX(-50%);
}

body::after {
  right: -34rem;
  bottom: -42rem;
  background: radial-gradient(
    circle,
    rgba(49, 91, 255, 0.13),
    rgba(5, 5, 7, 0) 68%
  );
}

a {
  color: #b9b2ff;
}

.legal-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem
    max(2rem, env(safe-area-inset-bottom));
}

.legal-page {
  width: min(100%, 48rem);
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 4rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.legal-brand {
  color: rgba(245, 245, 247, 0.78);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-back {
  color: rgba(245, 245, 247, 0.48);
  text-decoration: none;
}

.legal-back:hover {
  color: rgba(245, 245, 247, 0.8);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.legal-updated {
  margin: 1.25rem 0 3rem;
  color: rgba(245, 245, 247, 0.4);
  font-size: 0.82rem;
}

.legal-content {
  color: rgba(245, 245, 247, 0.62);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content h2 {
  margin: 3rem 0 0.85rem;
  color: rgba(245, 245, 247, 0.92);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal-content h3 {
  margin: 2rem 0 0.5rem;
  color: rgba(245, 245, 247, 0.85);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.legal-content p {
  margin: 0 0 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.legal-content li {
  margin: 0.35rem 0;
}

.legal-content strong {
  color: rgba(245, 245, 247, 0.88);
}

.legal-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 245, 247, 0.08);
  color: rgba(245, 245, 247, 0.3);
  font-size: 0.76rem;
}

.legal-footer a {
  color: inherit;
  text-decoration: none;
}

.legal-footer a:hover {
  color: rgba(245, 245, 247, 0.7);
}

@media (max-width: 36rem) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 3rem;
  }

  .legal-content {
    font-size: 0.95rem;
  }
}
