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

:root {
  --bg: #0a0a0a;
  --bg-surface: #111111;
  --text: #e0e0e0;
  --text-muted: #888888;
  --accent: #a0a0a0;
  --border: #222222;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;
}

/* --- Yggdrasil Canvas --- */

#yggdrasil {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Layout --- */

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
}

.content {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

/* --- Homepage --- */

.hero {
  text-align: center;
}

.hero h1 {
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.hero .dot {
  color: var(--text-muted);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* --- Legal Pages --- */

.content h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content p,
.content ul {
  margin-bottom: 1rem;
  color: var(--text);
}

.content ul {
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.3rem;
}

.content .placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* --- Footer --- */

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- Responsive --- */

@media (max-width: 480px) {
  .content {
    padding: 2rem 1rem 2rem;
  }

  footer nav {
    gap: 1rem;
  }
}
