:root {
  color-scheme: dark;
  --page: #0d0f13;
  --surface: #15181e;
  --surface-strong: #1b1f27;
  --text: #f3f5f7;
  --muted: #a9b0bc;
  --line: #2b303a;
  --cyan: #57d4de;
  --red: #ef6464;
  --green: #6fd09a;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 3px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - var(--content)) / 2));
  background: rgb(13 15 19 / 92%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img,
footer img {
  display: block;
  border-radius: 50%;
  background: var(--surface-strong);
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.add-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.add-app:hover,
.add-app:focus-visible {
  background: var(--cyan);
  color: #071114;
}

main {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.document-heading {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}

.lede {
  max-width: 700px;
  margin: 26px 0 30px;
  color: #c8ced7;
  font-size: 20px;
  line-height: 1.55;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--muted);
  font-size: 14px;
}

.document-meta span:first-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--green);
}

.terms-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  padding: 64px 0 96px;
}

.contents {
  align-self: start;
  position: sticky;
  top: 104px;
}

.contents > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contents nav {
  display: grid;
  border-left: 1px solid var(--line);
}

.contents a {
  padding: 6px 0 6px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.contents a:hover,
.contents a:focus-visible {
  color: var(--cyan);
}

.terms-document {
  min-width: 0;
}

.terms-document section {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 46px;
  margin: 0 0 46px;
  border-bottom: 1px solid var(--line);
}

.terms-document section:last-child {
  margin-bottom: 0;
}

.section-number {
  padding-top: 7px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

h2 {
  margin: 0 0 16px;
  font-size: 27px;
  line-height: 1.25;
}

.terms-document p {
  margin: 0 0 16px;
  color: #c4cad3;
}

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

.terms-document ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 22px;
  padding-left: 22px;
  color: #c4cad3;
}

.terms-document li::marker {
  color: var(--cyan);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - var(--content)) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 18px;
}

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

footer nav a:hover,
footer nav a:focus-visible,
footer nav a[aria-current="page"] {
  color: var(--cyan);
}

@media (max-width: 780px) {
  .site-header {
    padding-inline: 18px;
  }

  main {
    width: min(calc(100% - 36px), var(--content));
  }

  .document-heading {
    padding: 58px 0 46px;
  }

  .lede {
    font-size: 17px;
  }

  .terms-layout {
    display: block;
    padding: 38px 0 68px;
  }

  .contents {
    position: static;
    margin-bottom: 48px;
  }

  .contents nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 14px;
  }

  .terms-document section {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 36px;
    margin-bottom: 36px;
  }

  h2 {
    font-size: 23px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }
}

@media (max-width: 430px) {
  .brand small {
    display: none;
  }

  .add-app {
    min-height: 38px;
    padding-inline: 14px;
  }

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

  .terms-document section {
    grid-template-columns: 1fr;
  }

  .section-number {
    padding-top: 0;
  }
}

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

  .add-app {
    transition: none;
  }
}
