/* Ink & Code: one stylesheet for the whole site. Values come from the approved design. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0C0F14;
  --surface: #11151C;
  --surface-bar: #0E1218;
  --footer-bg: #0A0D11;
  --line: #1F242D;
  --border: #262C36;
  --rule: #2A303A;
  --dot: #2C333E;
  --chip-border: #5B4A28;
  --text: #E9E7E2;
  --text-2: #B8BEC8;
  --muted: #9AA3AF;
  --nav: #C9CDD4;
  --code-num: #7A8392;
  --code-comment: #8B93A1;
  --ink: #8FA6FF;
  --ink-hover: #BCC8FF;
  --amber: #F0B95A;
  --on-amber: #15110A;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }

/* Cross-document view transitions: the content cross-fades, the header stays put.
   Off for reduced motion. Each page also blocks its first render on #main
   (<link rel="expect">), so the fade never lands on a half-parsed page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
/* No movement for the header group, even when the old page was scrolled past it. */
::view-transition-group(site-header) { animation: none; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--footer-bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: var(--ink);
  @media (prefers-reduced-motion: no-preference) {
    transition: color 0.15s ease-out, text-decoration-color 0.15s ease-out;
  }
}
a:hover { color: var(--ink-hover); }

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

img, svg { max-width: 100%; }

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.skip-link:hover { color: var(--on-amber); }

.container {
  /* box-sizing is border-box, so add the gutters to keep a 1200px content width */
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  /* Named so it stays in place while the page content cross-fades between pages. */
  view-transition-name: site-header;
}
.site-header .container {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  min-height: 44px;
}
.wordmark:hover { color: var(--text); }
.wordmark-amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  padding: 0 4px;
}
.wordmark-cursor {
  display: inline-block;
  width: 11px;
  height: 22px;
  margin-left: 5px;
  background: var(--amber);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-family: var(--mono);
  font-size: 15px;
}
.site-nav a {
  color: var(--nav);
  text-decoration: none;
  padding: 10px 0;
}
.site-nav a:hover { color: var(--text); }
.site-nav .lang-switch {
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

/* Block cursor: blinks three times, then stays solid (well under 5 s, WCAG 2.2.2).
   With reduced motion, or without animation support, it is simply solid. */
@keyframes ic-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.cursor {
  @media (prefers-reduced-motion: no-preference) {
    animation: ic-blink 1.1s steps(1, end) 3;
  }
}

/* ---------- Shared type ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--amber);
}
.eyebrow-prompt { color: var(--muted); }
.eyebrow-prompt .path { color: var(--amber); }

.section-title {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.section-text {
  margin: 0;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  border-radius: 8px;
  @media (prefers-reduced-motion: no-preference) {
    transition: translate 0.16s ease-out, filter 0.16s ease-out;
  }
}
.btn-primary:hover { color: var(--on-amber); filter: brightness(1.08); }
/* A small lift answers hover and keyboard focus; pressing sets it back down. */
.btn-primary:is(:hover, :focus-visible) {
  @media (prefers-reduced-motion: no-preference) {
    translate: 0 -2px;
  }
}
.btn-primary:active { translate: none; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: var(--text);
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-color: #4A5260;
  text-decoration-thickness: 1px;
}
.link-quiet:hover { color: var(--text); text-decoration-color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(233, 231, 226, 0.075) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--line);
}
.hero .container {
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.hero-title {
  margin: 0;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.hero-ink {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  padding-right: 0.06em;
}
.hero-ink svg {
  position: absolute;
  left: -2%;
  bottom: -0.1em;
  width: 104%;
  max-width: none;
  height: 0.2em;
  overflow: visible;
}
.hero-line { display: block; }
.hero-code {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--amber);
}
.hero-lead {
  margin: 0;
  max-width: 34em;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1.6;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

/* ---------- Hero load sequence (landing pages only; the one orchestrated moment) ----------
   Order: prompt, the two H1 lines, lead, buttons; the code window fades in alongside and
   its lines type in one by one; the ink underline draws itself. Everything settles by ~1.2 s.
   Animations only add a starting state (fill-mode backwards), so the resting state is the
   normal layout: without animation support, or with reduced motion, it simply shows. */
@keyframes ic-rise {
  from { opacity: 0; translate: 0 14px; }
}
@keyframes ic-draw {
  from { stroke-dashoffset: 1; }
}
@keyframes ic-line-in {
  from { opacity: 0; translate: -6px 0; }
}
.hero {
  --ic-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Prompt (1), lead (3) and buttons (4) step by sibling position; the H1 (2) animates by line. */
.hero-copy > :nth-child(1) { --ic-i: 1; }
.hero-copy > :nth-child(3) { --ic-i: 3; }
.hero-copy > :nth-child(4) { --ic-i: 4; }
.hero-copy > :not(.hero-title) {
  @media (prefers-reduced-motion: no-preference) {
    animation: ic-rise 0.5s var(--ic-ease) backwards;
    animation-delay: calc((var(--ic-i) - 1) * 110ms);
    animation-delay: calc((sibling-index() - 1) * 110ms);
  }
}
.hero-line:nth-child(1) { --ic-i: 1; }
.hero-line:nth-child(2) { --ic-i: 2; }
.hero-line {
  @media (prefers-reduced-motion: no-preference) {
    animation: ic-rise 0.55s var(--ic-ease) backwards;
    animation-delay: calc(var(--ic-i) * 70ms);
    animation-delay: calc(sibling-index() * 70ms);
  }
}
.hero-ink path {
  @media (prefers-reduced-motion: no-preference) {
    stroke-dasharray: 1;
    animation: ic-draw 0.65s cubic-bezier(0.5, 0, 0.3, 1) 0.5s backwards;
  }
}
.code-window {
  @media (prefers-reduced-motion: no-preference) {
    animation: ic-rise 0.6s var(--ic-ease) 0.2s backwards;
  }
}

/* Decorative code window */
.code-window {
  margin: 0;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  font-family: var(--mono);
  font-size: clamp(12px, 3.5vw, 15px);
  line-height: 1.8;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-bar);
}
.code-dots { display: flex; gap: 8px; }
.code-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot);
}
.code-file { font-size: 13px; color: var(--muted); }
.code-window pre {
  margin: 0;
  padding: 22px 26px 26px;
  overflow-x: auto;
  white-space: normal; /* the lines below keep their own spacing */
  color: var(--text);
  font: inherit;
}
@media (max-width: 420px) { .code-window pre { padding: 18px 14px 20px; } }
/* One block per code line, so each can appear on its own. */
.code-line { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 4ch; text-indent: -4ch; }
.code-line:nth-child(1) { --ic-i: 1; }
.code-line:nth-child(2) { --ic-i: 2; }
.code-line:nth-child(3) { --ic-i: 3; }
.code-line:nth-child(4) { --ic-i: 4; }
.code-line:nth-child(5) { --ic-i: 5; }
.code-line:nth-child(6) { --ic-i: 6; }
.code-line:nth-child(7) { --ic-i: 7; }
.code-line:nth-child(8) { --ic-i: 8; }
.code-line:nth-child(9) { --ic-i: 9; }
.code-line:nth-child(10) { --ic-i: 10; }
.code-line {
  @media (prefers-reduced-motion: no-preference) {
    animation: ic-line-in 0.22s ease-out backwards;
    animation-delay: calc(0.4s + var(--ic-i) * 55ms);
    animation-delay: calc(0.4s + sibling-index() * 55ms);
  }
}
.c-num { color: var(--code-num); }
.c-comment { color: var(--code-comment); }
.c-kw { color: var(--ink); }
.c-str, .c-ok { color: var(--amber); }
.c-muted { color: var(--muted); }
.code-cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  margin-left: 6px;
  vertical-align: -3px;
  background: var(--amber);
  /* Starts blinking once its line is in (~1.2 s); three blinks end by ~4.5 s. */
  @media (prefers-reduced-motion: no-preference) {
    animation-delay: 1.2s;
  }
}

/* ---------- Sections ---------- */
.section { border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section-inner {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.section-inner-wide-gap { gap: 56px; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

/* App card */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 56px;
  /* Side by side only when the tools column still fits three tools across. */
  @media (min-width: 1024px) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}
.app-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}
.app-icon {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 28px;
}
.chip {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
@media (max-width: 359px) {
  .chip { padding-inline: 10px; }
}
.app-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.app-privacy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
}

.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Nine tools: 3 x 3 from tablet up, 2 across on phones, 1 on the narrowest screens. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: start;
  min-width: 0;
  @media (min-width: 600px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  @media (max-width: 359px) {
    grid-template-columns: minmax(0, 1fr);
  }
}
.tools li {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: break-word;
  @media (max-width: 599px) {
    padding: 14px;
  }
}
/* Two across leaves the ninth tool alone: let it take the full row. */
.tools li:last-child:nth-child(odd) {
  @media (360px <= width < 600px) {
    grid-column: 1 / -1;
  }
}
.tool-name { font-weight: 600; }
.tool-desc {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 40px 32px;
}
.service {
  border-top: 2px solid var(--rule);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.service-text {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  text-wrap: pretty;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.cta-band p {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Contact */
.contact-inner {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 48px 64px;
  align-items: end;
}
.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.contact-email {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--mono);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 28px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 17px;
  min-width: 0;
}
.facts dt {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  padding-top: 2px;
}
.facts dd { margin: 0; }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; row-gap: 2px; padding: 24px; }
  .facts dd:not(:last-child) { margin-bottom: 14px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}
.site-footer .container {
  padding-top: 40px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-wordmark {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.footer-wordmark .wordmark-amp { font-size: 26px; padding: 0 3px; }
.footer-legal {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 15px;
}
.footer-nav a {
  color: var(--nav);
  padding: 10px 0;
}
.footer-nav a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter) var(--section-pad);
}
.legal {
  max-width: 40em;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.7;
}
.legal-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.legal-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.legal-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}
.legal-lang-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.legal h2 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
.legal h3 {
  margin: 36px 0 12px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.legal h4 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}
.legal p { margin: 0 0 18px; }
.legal ul, .legal ol { margin: 0 0 18px; padding-left: 1.4em; }
.legal li { margin-bottom: 8px; }
.legal li > ul, .legal li > ol { margin: 8px 0 0; }
.legal li::marker { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a {
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

.legal section {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.legal > section:first-of-type { margin-top: 48px; }

.legal-summary {
  margin: 0 0 32px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
}
.legal-summary > :last-child { margin-bottom: 0; }

.legal-toc {
  margin: 0 0 32px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
}
.legal-toc ol {
  margin: 0;
  padding-left: 4.5ch;
  columns: 2 260px;
  column-gap: 40px;
}
.legal-toc li {
  margin: 0;
  break-inside: avoid;
}
.legal-toc a {
  display: block;
  padding: 11px 0;
  color: var(--nav);
  text-decoration: none;
}
.legal-toc a:hover { color: var(--ink-hover); text-decoration: underline; }

.legal dl { margin: 0 0 18px; }
.legal dt {
  color: var(--text);
  font-weight: 600;
}
.legal dd { margin: 0 0 14px; }
@media (min-width: 640px) {
  .legal dl {
    display: grid;
    grid-template-columns: minmax(0, 14em) 1fr;
    gap: 12px 28px;
  }
  .legal dd { margin: 0; }
}

.table-wrap {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.legal table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.55;
}
.legal caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.legal th, .legal td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  overflow-wrap: break-word;
}
.legal thead th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.legal tbody th { color: var(--text); font-weight: 600; }
.legal tbody tr:last-child th, .legal tbody tr:last-child td { border-bottom: 0; }
.legal th + th, .legal th + td, .legal td + td { border-left: 1px solid var(--border); }

@media (max-width: 640px) {
  .legal table { font-size: 15px; }
  .legal th, .legal td { padding: 10px 12px; }
}

/* ---------- 404 ---------- */
.notfound .container {
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 48px 64px;
}
.notfound-block {
  /* Both language blocks share the same rows, so heading, text and button line up. */
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  justify-items: start;
  row-gap: 16px;
}
