@import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --background: #071821;
  --surface: #0c1f2a;
  --border: rgba(255, 255, 255, 0.1);
  --cyan: #00BDD2;
  --text: #F5FAFC;
  --muted: #9fb2bd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 24, 33, 0.94);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.legal-main,
.site-footer__inner {
  width: min(100% - 32px, 900px);
  margin-inline: auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand {
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  letter-spacing: 0.24em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.back-link {
  min-height: 44px;
  padding-inline: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
}

.legal-main {
  padding-block: 72px 96px;
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-family: 'Chivo Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  line-height: 1.05;
}

.legal-intro {
  max-width: 760px;
  margin: 24px 0 56px;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-section {
  padding-block: 32px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.3;
}

.legal-section p {
  margin: 0 0 14px;
  color: var(--muted);
}

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

.legal-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-section li + li {
  margin-top: 8px;
}

.identity-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
  padding: 20px 0;
  border-block: 1px solid var(--border);
}

.identity-list dt {
  color: var(--text);
  font-weight: 600;
}

.identity-list dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .site-header__inner,
  .legal-main,
  .site-footer__inner {
    width: min(100% - 40px, 900px);
  }

  .legal-main {
    padding-block: 48px 64px;
  }

  .legal-intro {
    margin-bottom: 40px;
  }

  .identity-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .identity-list dd + dt {
    margin-top: 12px;
  }

  .site-footer__inner {
    padding-block: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}
