/* The legal pages (terms, privacy, cookies): the homepage's paper, tokens,
   header, menu and footer, and a reading column for the text. No
   entrances, no italics. The values are the homepage's own (index.html),
   copied here because the homepage keeps its styles inline. */

:root {
  --bg:          #EDE7DA;
  --surface:     #E9E3D4;
  --line:        rgba(44,82,57,0.22);
  --fg:          #12140F;
  --muted:       #43473E;
  --em:          #0E6B49;
  --em-ink:      #EDE7DA;
  --focus:       #0E6B49;
  --brand:       #1F3A2E;
  --shell-max:   1400px;
  --shell-inset: clamp(1.5rem, 5vw, 4rem);
  --nav-h:       64px;
}
html { background: var(--bg); }
body { background: transparent; color: var(--fg); font-family: 'Hanken Grotesk', system-ui, sans-serif; }
*:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  z-index: 200; padding: 8px 20px;
  background: var(--em); color: var(--em-ink);
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 0 0 8px 8px; text-decoration: none; white-space: nowrap;
}
.skip-link:focus { top: 0; outline: none; }

.wrapper, #site-nav-inner, .shell-bar {
  max-width: var(--shell-max); margin-left: auto; margin-right: auto;
  padding-left: var(--shell-inset); padding-right: var(--shell-inset);
}

.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); line-height: 1;
}
.link-quiet { color: var(--muted); text-decoration: none; }
.link-quiet:hover { color: var(--fg); }

.btn-p {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.375rem;
  color: #E9E3D4; background: var(--brand);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2;
  border: 0; border-radius: 6px; cursor: pointer; text-decoration: none;
}
.btn-p::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; background: rgba(18,20,15,0.16);
  opacity: 0; transition: opacity 160ms ease;
}
.btn-p:hover::after { opacity: 1; }

/* the bar: the homepage's slim paper bar with its hairline, held at the
   top of the window */
#site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
#site-nav-inner { position: relative; height: var(--nav-h); display: flex; align-items: center; gap: 2rem; }
.nav-wordmark-link {
  display: inline-block; text-decoration: none;
  padding: 29px 29px 29px 0; margin: -29px -29px -29px 0;
  transition: opacity 300ms ease;
}
.nav-wordmark-link img { display: block; height: 32px; width: auto; }
.nav-wordmark-link:hover { opacity: 0.7; }
.nav-links { display: flex; align-items: center; gap: 2rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9375rem; font-weight: 500; color: var(--muted); text-decoration: none;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 9px; left: 0;
  width: 100%; height: 1.5px; background: var(--em);
  opacity: 0; transition: opacity 200ms ease;
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { opacity: 1; }
#nav-cta { min-height: 44px; padding: 0 1rem; font-size: 0.9375rem; white-space: nowrap; }

#menu-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  color: var(--fg); background: transparent; border: 0; border-radius: 6px; cursor: pointer;
}
#menu-toggle.mob-menu-open { background: rgba(18,20,15,0.06); }
@media (max-width: 767px) {
  :root { --nav-h: 56px; }
  #site-header { z-index: 100; }
  #site-nav-inner { gap: 0.5rem; padding-right: 8px; }
  .nav-links { display: none; }
  #nav-cta-wrap { margin-left: auto; }
  #menu-toggle { display: inline-flex; }
}
@media (max-width: 359px) {
  #site-nav-inner { gap: 0.25rem; padding-right: 4px; }
  #nav-cta { padding: 0 0.625rem; font-size: 0.875rem; }
}
#mob-scrim {
  position: fixed; inset: 0; z-index: 98; background: rgba(0,0,0,0.52);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 200ms ease, visibility 0ms linear 200ms;
}
#mob-scrim.mob-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 200ms ease, visibility 0ms linear 0ms; }
#mobile-menu {
  position: absolute; top: 100%; right: 1.125rem; margin-top: 0.5rem;
  min-width: 50vw; max-width: 60vw;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 44px -18px rgba(18,20,15,0.45);
  padding: 0.375rem 0 0.5rem;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0ms linear 180ms;
}
#mobile-menu.mob-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity 180ms ease, transform 180ms ease, visibility 0ms linear 0ms; }
.mob-nav-list { list-style: none; margin: 0; padding: 0.25rem 0; }
.mob-nav-link {
  display: flex; align-items: center; min-height: 48px; padding: 0 1.25rem;
  font-size: 1.0625rem; font-weight: 500; color: var(--fg); text-decoration: none;
}
.mob-nav-link:active { background-color: rgba(18,20,15,0.05); }
@media (prefers-reduced-motion: reduce) {
  #mob-scrim, #mobile-menu, .btn-p::after, .nav-link::after, .nav-wordmark-link { transition: none; }
}

/* the footer, as on the homepage */
.foot-mark { display: block; height: 32px; width: auto; margin: 0 0 30px; }
.foot-links { font-size: 0.9375rem; line-height: 1.5; }
.foot-meta { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; line-height: 1.8; letter-spacing: 0.02em; color: var(--muted); }
footer .foot-links a[aria-current="page"] { color: var(--fg); }
@media (max-width: 639px) {
  footer > .wrapper:first-child { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.5rem; row-gap: 2rem; padding-top: 3rem; padding-bottom: 2.5rem; }
  footer > .wrapper:first-child > div:first-child { grid-column: 1 / -1; }
  .foot-mark { margin-bottom: 16px; }
  footer .foot-links > li + li { margin-top: 0 !important; }
  footer .foot-links a { display: flex; align-items: center; min-height: 44px; }
  footer p.foot-links { margin-top: 0.5rem; }
  footer .label { margin-bottom: 0.5rem; }
}

/* the text: headings in the homepage's section-heading face (Fraunces
   600), the body at the homepage's body size and leading, in ink, on a
   column of about 70 characters */
.legal { max-width: 34rem; }
.legal h1 {
  margin: 0 0 1.25rem; font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-variation-settings: 'opsz' 144; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(2.25rem, 5vw, 3.75rem); color: var(--fg); text-wrap: balance;
}
.legal h2 {
  margin: 3rem 0 0.875rem; font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-variation-settings: 'opsz' 144; letter-spacing: -0.015em; line-height: 1.1;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem); color: var(--fg); text-wrap: balance;
}
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: 1.0625rem; font-weight: 600; color: var(--fg); }
.legal p { margin: 0.875rem 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--fg); text-wrap: pretty; }
.legal ul { margin: 0.875rem 0 0; padding-left: 1.375rem; }
.legal ul li { margin-top: 0.375rem; font-size: 1.0625rem; line-height: 1.55; color: var(--fg); list-style-type: disc; }
.legal strong { font-weight: 600; color: var(--fg); }
.legal a { color: var(--em); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--fg); }
.legal hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0 0; }
.legal .label { color: var(--muted); }
.legal .eyebrow { color: var(--em); margin: 0 0 1.25rem; }
.legal .updated { margin: 0; line-height: 1.5; }

.legal-table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; }
.legal-table th {
  text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  padding: 0.625rem 1.5rem 0.625rem 0; border-bottom: 1px solid var(--line);
}
.legal-table td {
  padding: 0.75rem 1.5rem 0.75rem 0; border-bottom: 1px solid var(--line);
  font-size: 1rem; line-height: 1.55; color: var(--fg); vertical-align: top;
}
.legal-table td:first-child { font-weight: 500; min-width: 14ch; }
@media (max-width: 600px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .legal-table td { display: block; padding: 0.25rem 0; border: none; }
}
