:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-strong: #171717;
  --text: #ffffff;
  --muted: #c8c8c8;
  --line: rgba(255, 255, 255, 0.16);
  --button: #222222;
  --button-hover: #2d2d2d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
  padding: 18px 28px 28px;
}

.site-header {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-nav,
.legal-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-stack {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a,
.legal-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.legal-nav a:hover,
.legal-content a:hover {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.home-main {
  min-height: calc(100vh - 118px);
  display: grid;
  place-items: center;
}

.hero-panel {
  width: min(100%, 430px);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.hero-logo {
  width: min(100%, 402px);
  height: auto;
}

.hero-copy {
  width: min(100%, 402px);
  margin: 0;
  text-align: center;
  color: #f0f0f0;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--button);
  color: #f8f8f8;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-button:hover {
  background: var(--button-hover);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding-top: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.legal-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.legal-header {
  justify-content: space-between;
  gap: 24px;
}

.wordmark-link {
  display: inline-flex;
}

.legal-logo {
  width: min(100%, 280px);
  height: auto;
}

.legal-main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 72px 0 64px;
}

.legal-label,
.legal-updated {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-main h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.02;
}

.legal-content {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.legal-content p,
.legal-content a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-footer {
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 20px 24px;
  }

  .nav-links {
    display: none;
  }

  .site-nav {
    gap: 0;
  }

  .legal-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-strong);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .mobile-menu:not([hidden]) {
    display: grid;
    gap: 8px;
  }

  .mobile-menu a {
    display: block;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
  }

  .home-main {
    min-height: calc(100vh - 96px);
  }

  .hero-panel {
    width: min(100%, 320px);
    gap: 16px;
  }

  .hero-copy {
    font-size: 1.15rem;
  }

  .legal-header {
    align-items: flex-start;
  }

  .legal-main {
    padding: 44px 0 52px;
  }
}
