/* Shared styles for the legal documents. Same tokens as the landing page,
   set as a reading document rather than a marketing page. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-var.woff2') format('woff2');
  font-weight: 600 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/BarlowCondensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/BarlowCondensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --riverbed: #0F2A22;
  --riverbed-500: #2E7561;
  --amber: #F59E0B;
  --cyan-dark: #0E7490;
  --cream: #FAF7F0;
  --cream-100: #F1ECE1;
  --ink: #111C18;
  --stone: #5C6B66;
  --head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --wordmark: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;
  --radius:12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
a { color: var(--cyan-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--riverbed); }
:focus-visible { outline: 2px solid var(--cyan-dark); outline-offset: 2px; }

.doc-header { background: var(--riverbed); padding-block: var(--s5); }
.doc-header .inner {
  max-width: 72ch; margin-inline: auto; padding-inline: var(--s5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.wordmark { display: flex; align-items: center; gap: var(--s3); color: var(--cream); text-decoration: none; }
.wordmark:hover { color: var(--cream); }
.mark { height: 30px; width: auto; display: block; }
.wordmark-text { font-family: var(--wordmark); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.back-link { font-size: 14px; color: rgba(250,247,240,0.78); text-decoration: none; }
.back-link:hover { color: var(--cream); }

main { max-width: 72ch; margin-inline: auto; padding: var(--s8) var(--s5) var(--s8); }

h1 {
  font-family: var(--head);
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--s3);
}
.updated { font-size: 14px; color: var(--stone); margin-bottom: var(--s7); }
.lede { font-size: 19px; line-height: 1.65; color: var(--ink); margin-bottom: var(--s7); }

h2 {
  font-family: var(--head);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  margin-top: var(--s8);
  margin-bottom: var(--s4);
  padding-top: var(--s5);
  border-top: 1px solid rgba(15,42,34,0.14);
}
h3 {
  font-family: var(--head);
  font-size: 21px;
  font-weight: 600;
  margin-top: var(--s6);
  margin-bottom: var(--s3);
}
p { margin-bottom: var(--s4); }
ul, ol { margin: 0 0 var(--s4) var(--s5); }
li { margin-bottom: var(--s2); }
strong { font-weight: 600; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--s5);
  font-size: 15px;
}
.table-scroll { overflow-x: auto; margin-bottom: var(--s5); }
th, td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid rgba(15,42,34,0.12); vertical-align: top; }
th { font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone); }

/* Anything Padraig or the solicitor still has to supply. Deliberately loud —
   this page must not go live with a placeholder still in it. */
.todo {
  background: rgba(245,158,11,0.14);
  border: 1px solid rgba(180,83,9,0.4);
  border-radius: var(--radius);
  padding: var(--s5);
  margin-bottom: var(--s6);
  font-size: 15px;
}
.todo strong { font-family: var(--head); letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; display: block; margin-bottom: var(--s2); color: #8A4B08; }
mark { background: rgba(245,158,11,0.35); color: inherit; padding: 1px 5px; border-radius: 4px; font-weight: 600; }

.callout {
  background: var(--cream-100);
  border-left: 3px solid var(--riverbed-500);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s5);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Footnote under a table — smaller than body, still legible. */
.small-note { font-size: 14px; color: var(--stone); }

footer {
  background: var(--riverbed);
  color: rgba(250,247,240,0.62);
  padding-block: var(--s7);
  font-size: 14px;
}
footer .inner { max-width: 72ch; margin-inline: auto; padding-inline: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
footer a { color: rgba(250,247,240,0.78); }
footer a:hover { color: var(--cream); }
