:root {
  color-scheme: light;
  --ink: #101614;
  --muted: #59635f;
  --paper: #f7f7f3;
  --white: #ffffff;
  --line: #d9ddd9;
  --teal: #007f73;
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #22b8a8;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid #2d3532;
  background: var(--ink);
  color: var(--white);
}

.nav-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-family: "IBM Plex Sans Condensed", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #76d7cd;
  color: #9be7df;
  font: 600 14px/1 "IBM Plex Mono", monospace;
}

.back-link,
.footer-links a {
  font-weight: 600;
  text-underline-offset: 4px;
}

.legal-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font: 600 13px/1.4 "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "IBM Plex Sans Condensed", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
}

.intro {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.updated {
  margin: 28px 0 0;
  font: 500 13px/1.5 "IBM Plex Mono", monospace;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: space-between;
  gap: 64px;
  padding: 56px 0 88px;
}

.legal-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.legal-nav a {
  color: var(--muted);
  text-underline-offset: 4px;
}

.legal-content section {
  padding: 0 0 38px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.legal-content section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.1;
}

.legal-content p,
.legal-content ul {
  margin: 12px 0;
}

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

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  background: var(--white);
}

.site-footer {
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  min-height: 96px;
}

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

@media (max-width: 760px) {
  .nav-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

  .legal-hero {
    padding-top: 52px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 36px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
