/* D Lulu legal pages (/legal/*) — 2026-11-03.
 *
 * One stylesheet for the seven pages, in the dlulu.app look: DM Sans from the website's own
 * font files (/site/assets/fonts, no third party), the site's lavender page, ink and brand
 * gradient, its header and footer, light and dark. Long-form first: a ~68ch measure, a clear
 * heading scale, tables that scroll inside themselves on a phone, and on wide screens the
 * contents list rides beside the text.
 *
 * Served by routes/legal-pages.ts at /legal/legal.css. Counsel edits the HTML; nothing here
 * may change what the documents say — only how they look.
 */

/* ---------- Fonts (self-hosted, OFL; same files and ranges as /site/css/tokens.css) ---------- */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/site/assets/fonts/dm-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/site/assets/fonts/dm-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/site/assets/fonts/dm-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/site/assets/fonts/dm-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(/site/assets/fonts/dm-sans-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/site/assets/fonts/dm-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/site/assets/fonts/dm-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/site/assets/fonts/dm-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/site/assets/fonts/dm-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(/site/assets/fonts/dm-sans-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Tokens (the website's palette, site.css :root and /waitlist dark) ---------- */
:root {
  color-scheme: light;
  --bg: #F8F5FC;
  --surface: #FFFFFF;
  --surface-2: #F4F0FA;
  --text: #2A2540;            /* headings, strong */
  --body: #3E3955;            /* reading text: darker than the marketing body for long form */
  --muted: #6E6985;           /* 4.8:1 on the page */
  --line: #E8E4F0;
  --line-2: #DDD7EA;
  --accent: #6558B0;          /* links: the site's purple ink */
  --accent-soft: rgba(123, 104, 200, .1);
  --teal: #1E9C93;
  --bad: #C8323E;
  --good: #14866A;
  --warn-bg: #FFF5DC;
  --warn-bd: #F2DC9A;
  --warn-tx: #6B4E00;
  --code-bg: #F4F0FA;
  --grad: linear-gradient(100deg, #1E9C93 0%, #7B68C8 52%, #C9559A 100%);
  --grad-brand: linear-gradient(135deg, #4ECDC4, #7B68C8, #D46BA8);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(42, 37, 64, .04), 0 12px 32px -12px rgba(123, 104, 200, .18);
  --nav-bg: rgba(248, 245, 252, .82);
  --btn-bg: #2A2540;
  --btn-ink: #FFFFFF;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.215, .61, .355, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #15121F;
    --surface: #1E1A2C;
    --surface-2: #241F35;
    --text: #F4F1FA;
    --body: #D9D4E7;
    --muted: #A49EB9;
    --line: #2F2944;
    --line-2: #3A3352;
    --accent: #B4A8F0;
    --accent-soft: rgba(180, 168, 240, .12);
    --teal: #6FE0D8;
    --bad: #FF8A93;
    --good: #5FD8B4;
    --warn-bg: #2A2312;
    --warn-bd: #4F4118;
    --warn-tx: #F3D27A;
    --code-bg: #262038;
    --grad: linear-gradient(100deg, #6FE0D8 0%, #B7A9F2 55%, #F0A6CF 100%);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 24px 48px -28px rgba(0, 0, 0, .8);
    --nav-bg: rgba(21, 18, 31, .82);
    --btn-bg: #F4F1FA;
    --btn-ink: #1C1830;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
strong, b { color: var(--text); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: .5em; padding-left: .15em; }
li::marker { color: var(--muted); }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid #7B68C8; outline-offset: 3px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: #B4A8F0; } }
::selection { background: rgba(123, 104, 200, .22); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Draft notice ---------- */
.banner {
  background: var(--warn-bg); color: var(--warn-tx);
  border-bottom: 1px solid var(--warn-bd);
  padding: 9px var(--gutter); font-size: 13.5px; line-height: 1.45; font-weight: 600; text-align: center;
}

/* ---------- Header (the website's nav) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; gap: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); text-decoration: none; border-radius: 12px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(123, 104, 200, .5); }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--accent-soft); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-try {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; margin-left: 6px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(42, 37, 64, .55);
  transition: transform .2s var(--ease);
}
.nav-try:hover { transform: translateY(-1px); }
@media (max-width: 479px) {
  .nav-home { display: none; }      /* the logo is home on a phone */
  .nav-link { padding: 0 10px; }
  .nav-try { padding: 0 16px; }
}

/* ---------- Page column ---------- */
main {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) var(--gutter) 72px;
}

/* ---------- Title ---------- */
.title-block { margin-bottom: 28px; }
.title-block h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(36px, 7vw, 54px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800;
  text-wrap: balance;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title-block p.lead { margin: 0 0 14px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 40em; text-wrap: pretty; }
.meta-pill {
  display: inline-flex; flex-wrap: wrap; gap: 10px;
  padding: 6px 14px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--muted);
}

/* ---------- Headings in the text ---------- */
h2.section {
  margin: 2.6em 0 .6em;
  color: var(--text);
  font-size: clamp(23px, 3.4vw, 27px); line-height: 1.22; letter-spacing: -.025em; font-weight: 800;
  text-wrap: balance;
  scroll-margin-top: 88px;
}
h2.section .emoji { display: inline-block; margin-right: 8px; }
h3.sub {
  margin: 1.9em 0 .45em;
  color: var(--text);
  font-size: 19px; line-height: 1.35; letter-spacing: -.012em; font-weight: 700;
  scroll-margin-top: 88px;
}
h4 { color: var(--text); }

/* ---------- Cards and asides ---------- */
.changes-card {
  background: linear-gradient(135deg, rgba(78, 205, 196, .08) 0%, rgba(123, 104, 200, .08) 55%, rgba(212, 107, 168, .06) 100%), var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0 0;
  scroll-margin-top: 80px;
  font-size: 16px;
}
.changes-card h2 { margin: 0 0 4px; color: var(--text); font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -.015em; }
.changes-card .changes-when { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.changes-card ul { margin: 0 0 14px; padding-left: 20px; }
.changes-card li { margin-bottom: 8px; }
.changes-card .changes-foot { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 599px) {
  .changes-card, .summary-card { padding-left: 18px; padding-right: 18px; }
  .changes-card ul, .summary-card ul { padding-left: 18px; }
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 10px;
  margin: 28px 0 36px;
  box-shadow: var(--shadow);
  font-size: 16.5px;
}
.summary-card h3 { margin: 0 0 12px; color: var(--text); font-size: 17px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.summary-card ul { margin: 0 0 12px; padding-left: 20px; }
.summary-card li { margin-bottom: 8px; }
.summary-card li::marker { color: var(--teal); }

.callout, .zero, .risk {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  padding: 14px 18px;
  margin: 20px 0;
}
.callout > :last-child, .zero > :last-child, .risk > :last-child { margin-bottom: 0; }
.zero, .risk { border-left-color: var(--bad); }
.risk strong { color: var(--bad); }
.allcaps { text-transform: uppercase; font-weight: 700; letter-spacing: .03em; color: var(--text); }

.addr-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; margin: 18px 0;
  font-family: var(--mono); font-size: 14.5px; line-height: 1.6; color: var(--text);
}
code.inline {
  background: var(--code-bg); color: var(--text);
  padding: 2px 6px; border-radius: 6px;
  font-family: var(--mono); font-size: .86em;
  overflow-wrap: anywhere;
}

/* Community guidelines */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 22px 0 8px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pillar h3 { margin: 0 0 4px; color: var(--text); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 24px; }
@media (max-width: 599px) { .do-dont { grid-template-columns: 1fr; } }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 6px; background: var(--surface); font-size: 15.5px; }
.box.do { box-shadow: 0 3px 0 var(--good) inset; }
.box.dont { box-shadow: 0 3px 0 var(--bad) inset; }
.box h4 { margin: 4px 0 8px; font-size: 16px; font-weight: 800; }
.box.do h4 { color: var(--good); }
.box.dont h4 { color: var(--bad); }
.box ul { margin: 0 0 10px; padding-left: 18px; }

/* ---------- Tables ---------- */
table.data {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  margin: 18px 0 28px;
  font-size: 15px; line-height: 1.55;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
table.data th, table.data td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td:first-child { color: var(--text); font-weight: 600; }
/* Phones. Two-column tables (a label and its answer) stack: each row reads as the label, then the answer.
   Wider tables scroll inside themselves, with edge shadows that show there is more; the page never scrolls
   sideways. */
@media (max-width: 719px) {
  table.data:not(:has(th:nth-child(3))) { display: block; }
  table.data:not(:has(th:nth-child(3))) :is(thead, tbody, tr) { display: block; }
  table.data:not(:has(th:nth-child(3))) :is(th, td) { display: block; border-bottom: 0; }
  table.data:not(:has(th:nth-child(3))) tr { border-bottom: 1px solid var(--line); padding: 4px 0; }
  table.data:not(:has(th:nth-child(3))) tbody tr:last-child { border-bottom: 0; }
  table.data:not(:has(th:nth-child(3))) :is(th, td):first-child { padding-bottom: 2px; }
  table.data:not(:has(th:nth-child(3))) :is(th, td) + :is(th, td) { padding-top: 2px; }
  table.data:not(:has(th:nth-child(3))) thead th + th { color: var(--muted); font-weight: 600; }

  table.data:has(th:nth-child(3)) {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    background:
      linear-gradient(to right, var(--surface) 30%, transparent) left / 32px 100% no-repeat local,
      linear-gradient(to left, var(--surface) 30%, transparent) right / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(42, 37, 64, .16), transparent) left / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(42, 37, 64, .16), transparent) right / 12px 100% no-repeat scroll,
      var(--surface);
  }
  table.data:has(th:nth-child(3)) :is(th, td) { min-width: 11em; background-clip: padding-box; }
  table.data:has(th:nth-child(3)) :is(th, td):first-child { min-width: 8.5em; }
  table.data:has(th:nth-child(3)) th { background: none; }
}

/* ---------- Contents ---------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 12px;
  margin: 0 0 40px;
}
.toc h2 { margin: 0 0 8px; color: var(--text); font-size: 15px; line-height: 1.3; font-weight: 800; letter-spacing: -.005em; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; padding: 0; }
.toc a {
  display: block; padding: 6px 10px; margin: 0 -10px; border-radius: 10px;
  color: var(--body); font-size: 15px; line-height: 1.4; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.toc a:hover { background: var(--accent-soft); color: var(--text); }
@media (min-width: 640px) and (max-width: 1179px) {
  .toc ol { columns: 2; column-gap: 28px; }
  .toc li { break-inside: avoid; }
}

/* Wide screens: the contents ride beside the text. */
@media (min-width: 1180px) {
  main:has(> .toc) {
    max-width: calc(var(--measure) + 272px + 64px + 2 * var(--gutter));
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) 272px;
    column-gap: 64px;
    row-gap: 0;
    align-items: start;
  }
  main:has(> .toc) > * { grid-column: 1; }
  main:has(> .toc) > .toc {
    grid-column: 2; grid-row: 1 / span 999;
    position: sticky; top: 92px; align-self: start;
    max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain;
    margin: 6px 0 0; padding: 4px 0 4px 18px;
    background: none; border: 0; border-radius: 0;
    box-shadow: 1px 0 0 var(--line) inset;
    scrollbar-width: thin;
  }
  main:has(> .toc) > .toc h2 { margin-bottom: 6px; }
  main:has(> .toc) > .toc a { font-size: 14px; padding: 5px 10px; }
  /* Grid items keep their margins (no collapsing): trim the doubled gaps. */
  main:has(> .toc) > h2.section { margin-top: 2.2em; }
}

/* ---------- Hub (/legal) ---------- */
main:has(> .hero) { max-width: calc(1040px + 2 * var(--gutter)); }
.hero { text-align: center; margin: 8px auto 40px; max-width: 40em; }
.hero h1 { margin: 0 0 14px; color: var(--text); font-size: clamp(38px, 7vw, 60px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
.hero p { margin: 0 auto; max-width: 34em; color: var(--muted); font-size: 18.5px; line-height: 1.55; text-wrap: pretty; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(42, 37, 64, .04), 0 22px 40px -16px rgba(123, 104, 200, .3); }
.card h3 { margin: 0; color: var(--text); font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card .badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 8px; padding: 4px 11px 4px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; line-height: 1.4;
}
.card .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-brand); }
.card .meta { margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.contact-block {
  margin-top: 40px; padding: 24px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-block h2 { margin: 0 0 10px; color: var(--text); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.contact-block p { margin: 0 0 6px; color: var(--muted); }
.contact-block a { font-weight: 600; }

/* ---------- Footer (the website's footer) ---------- */
footer.site { margin-top: 24px; padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-inner {
  max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px 32px;
  color: var(--muted); font-size: 14px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset;
  color: var(--text); font-size: 14.5px; font-weight: 600; text-decoration: none;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.foot-links a:hover { box-shadow: 0 0 0 1px rgba(123, 104, 200, .45) inset; transform: translateY(-1px); }
.foot-links a[aria-current="page"] { box-shadow: 0 0 0 1.5px var(--accent) inset; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.foot-brand img { width: 24px; height: 24px; border-radius: 7px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

@media print {
  .banner, .nav, footer.site, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main, main:has(> .toc) { display: block; max-width: none; padding: 0; }
  main:has(> .toc) > .toc { position: static; max-height: none; }
  a { color: inherit; }
  .grad { color: inherit; background: none; }
}
