:root {
  --ink: #10211d;
  --paper: #f4f0e7;
  --white: #fffdf7;
  --lime: #bee36b;
  --violet: #5365ce;
  --line: rgba(11, 18, 16, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--violet);
}

a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.legal-header,
.legal-main,
.legal-footer {
  width: min(760px, calc(100vw - 40px));
  margin: 0 auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
}

.brand svg {
  width: 36px;
  height: 36px;
  flex: none;
}

.back-link {
  font-size: 0.9rem;
  font-weight: 600;
}

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

h1 {
  margin: 0 0 8px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
}

.updated {
  margin: 0 0 36px;
  color: rgba(11, 18, 16, 0.62);
  font-size: 0.9rem;
}

h2 {
  margin: 40px 0 10px;
  font-size: 1.2rem;
  line-height: 1.3;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 1.3em;
}

li + li {
  margin-top: 6px;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: rgba(11, 18, 16, 0.62);
}

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

.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.not-found .code {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 18px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #1b302a;
  color: var(--white);
}
