/* Route Line restyle for the legal pages. Mirrors app/(marketing)/marketing.css
   tokens (brand/tokens.css). Visual only; content lives in the HTML. */
@font-face {
  font-family: "Plex Sans Light";
  src: url("/brand/fonts/IBMPlexSans-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #120e0b;
  --line: #3a3029;
  --linen: #f2ece4;
  --stone: #9c948b;
  --text-2: rgba(242, 236, 228, 0.74);
  --gutter: 40px;
  --inline: max(var(--gutter), calc((100% - 1360px) / 2));
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--linen);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--linen); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 20;
  padding: 10px 16px;
  background: #fff;
  color: #0d0e10;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Header: same treatment as the landing nav */
.nav {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 var(--gutter) 0 calc(var(--gutter) - 10px);
  border-bottom: 1px solid rgba(255, 240, 225, 0.13);
}
.nav-inner { display: flex; align-items: center; }
.lockup { display: block; flex: none; padding: 10px; line-height: 0; }
.lockup img { display: block; width: 136px; height: auto; }
.footer .lockup { margin-left: -10px; }
.footer .lockup img { width: 128px; }

main { flex: 1; }
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}
.legal h1 {
  margin: 0 0 24px;
  color: var(--linen);
  font-family: "Plex Sans Light", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.legal h2 {
  margin: 56px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--linen);
  font-family: "Plex Sans Light", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.legal p { margin: 0 0 16px; }
.legal strong { color: var(--linen); font-weight: 500; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 8px; padding-left: 4px; }
.legal li::marker { color: var(--stone); }
.legal a {
  color: var(--linen);
  text-decoration: underline;
  text-decoration-color: var(--stone);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal a:hover { text-decoration-color: var(--linen); }

.legal table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 24px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.legal th, .legal td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal th {
  color: var(--stone);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Footer: same treatment as the landing footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 30px var(--inline);
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-size: 13px;
}
.footer p { margin: 0; }
.footer a { color: var(--stone); text-decoration: none; }
.footer a:hover { color: var(--linen); }
.footer-links { margin-left: auto; }
.footer-copy { flex-basis: 100%; }

@media (max-width: 759px) {
  :root { --gutter: 20px; }
  .legal { padding: 48px 20px 72px; }
  .legal h2 { margin-top: 44px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
}
