:root {
  color-scheme: dark;
  --bg: #09090f;
  --surface: #11111a;
  --text: #f7f5ff;
  --muted: #aaa6bb;
  --border: #2b2939;
  --primary: #9b5cff;
  --primary-soft: #d7c0ff;
  --max-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgb(121 73 219 / 18%), transparent 34rem),
    radial-gradient(circle at 10% 35%, rgb(50 126 213 / 11%), transparent 32rem), var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
}

a {
  color: var(--primary-soft);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  background: #fff;
  color: #111;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 1.7rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem 1.25rem;
  font-size: 0.9rem;
}

main {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero {
  max-width: 52rem;
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.2;
}

h1 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  letter-spacing: -0.045em;
}

.legal-page h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
}

.lead {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.updated {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.legal-section,
.notice {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgb(17 17 26 / 88%);
}

.card {
  padding: 1.5rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-section {
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.legal-section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.legal-section h3 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: var(--text);
}

.notice {
  margin-block: 1rem;
  padding: 1rem 1.2rem;
  border-color: rgb(105 221 162 / 35%);
  background: rgb(40 97 70 / 24%);
  color: #c9f7dd;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  padding: 0.8rem 1.15rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #7741db, var(--primary));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
