:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #101721;
  --panel-soft: #151e2b;
  --text: #f4f7fb;
  --muted: #aeb9c9;
  --accent: #59d7f7;
  --accent-soft: rgba(89, 215, 247, 0.16);
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(89, 215, 247, 0.14), transparent 34rem),
    linear-gradient(180deg, #080b10 0%, #0d121a 55%, #080b10 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.84);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.brand span {
  color: var(--muted);
  font-size: 0.88rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  font-size: 0.92rem;
}

.hero {
  padding: 72px 0 42px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.7rem);
  line-height: 0.95;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 22px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 10px 0 48px;
}

.card {
  display: block;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  border-radius: 8px;
}

.card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.16rem;
}

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

.doc {
  padding: 46px 0 64px;
}

.doc header {
  margin-bottom: 22px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.doc .source {
  color: var(--muted);
}

.text-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 33, 0.92);
}

.legal-text {
  white-space: pre-wrap;
  margin: 0;
  color: #e8eef8;
  font: inherit;
}

.footer {
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 48px;
  }

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

  .text-panel {
    padding: 16px;
  }
}
