:root {
  --ink: #171717;
  --muted: #707070;
  --line: rgb(23 23 23 / 11%);
  --paper: #fff;
  --coral: #ff694a;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: Geist, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.legal-back {
  position: fixed;
  z-index: 2;
  top: 28px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-back::before {
  content: "←";
  color: var(--coral);
  font-size: 17px;
  line-height: 1;
}

.legal-back:focus-visible,
.legal-back:hover { color: var(--coral); }

.legal-identity {
  position: fixed;
  z-index: 2;
  top: 31px;
  right: 44px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1.3;
  text-align: right;
}

.legal-identity span { display: block; }

.legal-page {
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  padding: clamp(156px, 19vh, 216px) 0 96px;
}

.legal-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.legal-lede {
  max-width: 550px;
  margin: 28px 0 62px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.legal-content {
  max-width: 680px;
  border-top: 1px solid var(--line);
}

.legal-section {
  padding: 31px 0 34px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 13px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

p {
  max-width: 650px;
  margin: 0;
  color: #474747;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
}

p + p { margin-top: 16px; }

.legal-content a {
  text-decoration-color: rgb(255 105 74 / 62%);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-footnote {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 680px) {
  .legal-back { top: 20px; left: 24px; }
  .legal-identity { top: 24px; right: 24px; font-size: 9px; }
  .legal-page { width: min(100% - 48px, 680px); padding-top: 132px; padding-bottom: 56px; }
  h1 { font-size: clamp(40px, 12vw, 54px); }
  .legal-lede { margin-bottom: 45px; font-size: 15px; }
  .legal-section { padding: 27px 0 29px; }
  p { font-size: 15px; line-height: 1.6; }
}

.notfound-actions a {
  color: var(--muted, #5c5c5c);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.notfound-actions a:first-child {
  color: inherit;
}
