:root {
  --bg: #0c1722;
  --panel: #101f2d;
  --surface: #142636;
  --line: #263a4d;
  --line-2: #2e465d;
  --text: #e6edf3;
  --muted: #9aafc0;
  --accent: #7da9d6;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #3a556f #182736;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #182736;
}

*::-webkit-scrollbar-thumb {
  background: #3a556f;
  border: 2px solid #182736;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.page-shell {
  width: min(800px, calc(100vw - 24px));
  /* Slightly narrower for reading comfort */
  margin: 24px auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #122435;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 28px;
  width: auto;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}

.pill-link:hover,
.pill-link.active {
  color: var(--text);
  background: var(--line-2);
  border-color: var(--accent);
}

.hero {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--text);
}

.hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .meta {
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-family: monospace;
}

.content {
  display: grid;
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 20px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul,
.card ol {
  margin: 8px 0 12px;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
}

.card li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.card strong {
  color: var(--text);
  font-weight: 600;
}

.legal-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.legal-footer a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 720px) {
  .page-shell {
    width: calc(100vw - 14px);
    margin: 7px auto;
    padding: 10px;
  }

  .page-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .top-links {
    justify-content: center;
  }
}