/* Shared by privacy.html and 404.html. Uses the tokens from style.css */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(7rem, 16vw, 11rem) var(--gutter) clamp(4rem, 10vw, 7rem);
}
.legal .section-label {
  padding: 0;
}
.legal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1;
  margin: 0.5rem 0 1rem;
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 3rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}
.legal p,
.legal li {
  color: var(--ink-soft);
  max-width: 65ch;
}
.legal p {
  margin-bottom: 1rem;
}
.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.legal-back {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.legal-placeholder {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 0 0.25rem;
}

/* 404 */
.notfound {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
}
.notfound .section-label {
  padding: 0;
}
.notfound-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 13vw, 9rem);
  line-height: 0.95;
}
.notfound-text {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  max-width: 40ch;
}
.notfound .project-link {
  align-self: flex-start;
}
.notfound-bar {
  margin-top: 2.5rem;
  width: min(260px, 60vw);
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.notfound-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: notfoundFill 4s linear forwards;
}
@keyframes notfoundFill {
  to {
    transform: translateX(0);
  }
}
