:root {
  color-scheme: dark;
  --background: #050505;
  --text: #f5f5f5;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.navbar {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.9);
}

.nav-container,
.footer-container {
  width: min(calc(100% - 36px), 1120px);
  margin-inline: auto;
}

.nav-container {
  display: flex;
  height: 100%;
  align-items: center;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.legal-content {
  width: min(calc(100% - 36px), 800px);
  margin: 0 auto;
  padding: 120px 0 80px;
}

.legal-content h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin: 2.2rem 0 0.8rem;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

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

.legal-content ul {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}

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

.legal-content a:not(.back-link) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #d9d9dc;
  text-decoration: none;
}

.legal-updated {
  margin-bottom: 2.5rem !important;
  color: #8b8b92 !important;
  font-size: 0.78rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.2rem;
  color: #a6a6ac;
  font-size: 0.82rem;
  text-decoration: none;
}

.back-link:hover,
.legal-content a:hover {
  color: #ffffff;
}

.footer-section {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}

.footer-copyright p {
  margin: 0;
  color: #8b8b92;
  font-size: 0.68rem;
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .legal-content {
    padding-top: 106px;
  }
}
