/* Colours come from /design/tokens.css, which the legal layout loads first.
   This page keeps one derived value of its own: dense legal text wants a
   lighter hairline than --rule-hair gives it. */
:root {
  --rule: color-mix(in srgb, var(--ink) 12%, transparent);
}

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Crimson Text", Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
}

.legalese {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 6rem);
}

.logo {
  display: inline-block;
  margin-bottom: 2.5rem;
  padding-bottom: 0.2rem;
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 3px 0 -2px var(--rule);
}
.logo:hover { color: var(--orange); border-bottom-color: var(--orange); }

h1, h2, h3 {
  font-family: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.2;
  color: var(--ink);
}
h1 {
  font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.2rem);
  margin: 0 0 0.4rem;
}
h2 {
  font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.4rem);
  margin: 2.4rem 0 0.6rem;
}

.version {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

nav { margin-bottom: 2rem; font-style: italic; }
nav a {
  color: var(--orange-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
nav a:hover { border-bottom-color: var(--orange); }

ol, ul { margin: 0 0 1.1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--orange); }

dl { margin: 1rem 0; }
dt { font-weight: 700; margin-top: 0.75rem; }
dd { margin: 0 0 0.4rem 1.25rem; }

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

abbr {
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-soft);
  cursor: help;
}
