:root {
  --bg: #06090d;
  --bg-soft: #0f1a28;
  --panel: rgba(15, 26, 40, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f8ff;
  --muted: #a7b1bc;
  --brand: #1d43a8;
  --brand-deep: #1d43a8;
  --brand-soft: #dfe8f3;
  --accent: #f7c86b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.landing {
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.hero {
  width: min(760px, 100%);
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fade-up 680ms ease both;
}

.brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 96px;
  height: 96px;
  display: block;
  animation: drift 6s ease-in-out infinite;
  filter: drop-shadow(0 18px 36px rgba(10, 22, 44, 0.45));
}

.brand-name {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.brand-name-accent {
  color: var(--accent);
}

.lede {
  max-width: 35rem;
  margin: 0 0 12px;
  font-size: clamp(1.08rem, 1.9vw, 1.16rem);
  line-height: 1.62;
  color: var(--muted);
  text-wrap: balance;
}

.support {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.08rem, 1.9vw, 1.16rem);
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

.text-link {
  transition: color 140ms ease, border-color 140ms ease;
}

.site-footer {
  width: min(520px, 100%);
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.96rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-page {
  min-height: 100vh;
  padding: 32px 0 72px;
  background: var(--bg);
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-top: 4px;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

.brand-mini img {
  width: 38px;
  height: 38px;
}

.brand-mini-wordmark {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mini-wordmark span {
  color: var(--accent);
}

.text-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
  border-color: rgba(244, 248, 255, 0.28);
}

.legal-card {
  width: min(820px, 100%);
  padding: 34px 32px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.legal-card h1,
.legal-card h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.legal-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
  line-height: 1;
}

.legal-card h2 {
  font-size: 1.02rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-card p {
  margin: 0 0 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 68ch;
}

.legal-card > p:first-of-type {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-contact {
  display: inline-block;
  align-items: center;
  margin: 4px 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.legal-contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 248, 255, 0.22);
}

.legal-contact a:hover,
.legal-contact a:focus-visible {
  border-color: rgba(244, 248, 255, 0.6);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 820px) {
  .landing {
    padding: 28px 0 32px;
  }

  .hero {
    max-width: none;
  }

  .brand-row {
    gap: 18px;
  }

  .brand-mark {
    width: 82px;
    height: 82px;
  }

  .brand-name {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .lede,
  .support {
    max-width: 100%;
  }

  .legal-page {
    padding-top: 26px;
  }

  .legal-topbar {
    margin-bottom: 24px;
  }

  .legal-card {
    padding: 26px 22px;
    border-radius: 14px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
