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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050508;
  color: #f2f0f7;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#galaxy {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.brand {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
}

.brand h1 {
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: lowercase;
  color: rgba(245, 242, 255, 0.92);
  text-shadow:
    0 0 40px rgba(140, 100, 255, 0.35),
    0 0 80px rgba(80, 160, 255, 0.2);
}

/* Legal pages */
body.legal {
  overflow: auto;
  background: #0a0a0f;
}

.legal-wrap {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  line-height: 1.65;
}

.legal-wrap a {
  color: #b8a6ff;
  text-decoration: none;
}

.legal-wrap a:hover {
  text-decoration: underline;
}

.legal-wrap .back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.legal-wrap h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.legal-wrap .meta {
  color: rgba(242, 240, 247, 0.55);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-wrap h2 {
  font-size: 1.1rem;
  font-weight: 560;
  margin: 1.75rem 0 0.6rem;
  letter-spacing: 0.02em;
}

.legal-wrap p,
.legal-wrap li {
  color: rgba(242, 240, 247, 0.82);
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
}

.legal-wrap ul {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.legal-wrap .note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(242, 240, 247, 0.45);
}
