/* Shared stylesheet for the two legal pages.
   
   These are plain static HTML, not React routes. That is deliberate: they are
   text documents, so they have no reason to pull the 526 kB app bundle, and
   as real files under public/ they are indexable on a crawler's first pass
   and need no SPA rewrite rule on the host to resolve.
   
   Colours and type are the site's own tokens, copied from the :root block in
   src/index.css so the pages read as part of the same site. If those change,
   change them here too — there is no build step linking the two. */

:root {
  --background: #f3f3ec;
  --foreground: #17233b;
  --muted-foreground: #7a818b;
  --rule: rgba(23, 35, 59, 0.14);
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header ------------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0 1.75rem;
}

.wordmark {
  display: inline-block;
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--foreground);
  text-decoration: none;
}

.wordmark:hover { opacity: 0.7; }

.masthead .tagline {
  margin: 0.4rem 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* Document ----------------------------------------------------------- */

main { padding: 3.5rem 0 4rem; }

h1 {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

.updated {
  margin: 1rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.lede {
  margin: 2rem 0 0;
  font-size: 1.05rem;
  color: var(--foreground);
}

h2 {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 3rem 0 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

h2:first-of-type { margin-top: 3.25rem; }

p { margin: 0 0 1.1rem; }

ul {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
}

li { margin-bottom: 0.55rem; }

a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover { opacity: 0.65; }

strong { font-weight: 600; }

address {
  font-style: normal;
  margin: 0 0 1.1rem;
}

/* Footer ------------------------------------------------------------- */

.pagefoot {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.pagefoot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.pagefoot a { text-decoration: none; }

.pagefoot a:hover { color: var(--foreground); }
