.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding-inline: var(--gutter);
  color: var(--white);
  background: var(--ink);
}

.legal-topbar img {
  width: 188px;
  height: auto;
  filter: brightness(0) invert(1);
}

.legal-topbar nav {
  display: flex;
  gap: 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.legal-topbar a {
  transition: color 180ms ease;
}

.legal-topbar a:hover {
  color: var(--blue-soft);
}

.legal-main {
  min-height: 70vh;
  padding: 148px var(--gutter) 156px;
  background: var(--white);
}

.legal-content {
  width: min(860px, 100%);
  margin-inline: auto;
}

.legal-label {
  margin: 0 0 44px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.legal-content h1 {
  margin: 0 0 96px;
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
}

.legal-content h2 {
  margin: 64px 0 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.25;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.legal-content p {
  margin: 0 0 20px;
}

.legal-content ul {
  margin: 0;
  padding-left: 20px;
}

.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content address {
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
  line-height: 1.75;
}

.legal-footer .footer-layout {
  grid-template-columns: 2fr 1fr auto;
}

.legal-footer nav {
  justify-self: end;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  place-items: center;
  padding: 80px var(--gutter);
  color: var(--white);
  background: var(--ink);
}

.not-found-inner {
  width: min(980px, 100%);
}

.not-found .legal-label {
  color: var(--blue-soft);
}

.not-found h1 {
  max-width: 820px;
  margin: 0;
  font-size: 76px;
  font-weight: 300;
  line-height: 1.02;
}

.not-found p:not(.legal-label) {
  max-width: 500px;
  margin: 48px 0 0;
  color: rgba(251, 252, 250, 0.68);
  font-size: 17px;
  line-height: 1.65;
}

.not-found a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .legal-topbar {
    min-height: 64px;
    gap: 16px;
  }

  .legal-topbar img {
    width: 148px;
  }

  .legal-topbar nav {
    gap: 16px;
    font-size: 8px;
  }

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

  .legal-content h1,
  .not-found h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .legal-content h1 {
    margin-bottom: 48px;
  }

  .legal-content h2 {
    margin-top: 48px;
    font-size: 1.35rem;
  }

  .legal-footer .footer-layout {
    grid-template-columns: 1fr;
  }

  .legal-footer nav {
    justify-self: start;
  }

  .not-found {
    padding-block: 64px;
  }

  .not-found p:not(.legal-label) {
    margin-top: 28px;
    font-size: 16px;
  }
}
