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

:root {
  --bg: #0a0a0a;
  --bg-surface: #141414;
  --text: #f0f0f0;
  --text-muted: #888;
  --accent: #e0e0e0;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Hero (Landing Page) ── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.hero__title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero__tagline {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero__tagline span {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--text-muted);
}

.hero__tagline span:first-child {
  color: var(--accent);
  font-weight: 400;
}

/* ── Legal Pages ── */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal .legal__date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal p {
  margin-bottom: 1rem;
  color: var(--accent);
}

.legal ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--text-muted);
}

.legal__back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.legal__back:hover {
  color: var(--text);
}

/* ── 404 Page ── */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.not-found__code {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.03em;
  line-height: 1;
}

.not-found__text {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 300;
}

.not-found__link {
  margin-top: 2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.not-found__link:hover {
  border-color: var(--text);
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .legal {
    padding: 2.5rem 1.25rem 4rem;
  }

  .legal h1 {
    font-size: 1.5rem;
  }

  .legal h2 {
    font-size: 1.1rem;
  }
}
