/* ==========================================================================
   The footer pages: /privacy/, /terms/, /contact/. Loaded only by
   `page_css: legal`, so it is inert everywhere else.

   WHY ONE SHEET FOR THREE PAGES. site-footer.html links exactly five pages in
   its site column -- About, Privacy, Terms, Contact, Sitemap -- and /about/
   was the only one that had been designed. The other four were raw kramdown
   output: an h1, a run of h2s with content.css's hairline under each, and
   paragraphs capped at --prose. They worked, and they read as a different
   site from the page they sit beside in the footer. These three now share
   /about/'s rhythm (hero, then bands opening on a hairline with an accent
   kicker) so the set reads as one site. /sitemap/ is excluded on purpose: its
   body is 83 Liquid tags over _data/collections.yml, so its markup is
   generated rather than written and restyling it means rewriting the loops.

   Rules this file holds itself to, the same ones about.css and home.css hold:
     * Tokens only, from core.css, so both themes follow their own ramp.
       Per-area tints are color-mix()es of the semantic tokens. A hex literal
       here would look correct in dark and break light mode silently, because
       core.css redefines the entire ramp under [data-theme="light"].
     * Flat surfaces: one fill, one border, one shallow shadow. No gradient on
       a content surface, no glow, no blur.
     * Nothing animates on load. Hover and focus transitions only.

   EVERY SELECTOR IS SCOPED UNDER .lg, AND THAT IS LOAD-BEARING.
   These pages render inside `.content`, whose generic element rules in
   content.css are shared by 427 built pages: `.content h2` (:356) hangs a 1px
   rule under every h2 and sets a --sp-8 top margin, `.content p` (:381) and
   `.content ul, .content ol` (:397) cap at --prose and indent, `.content a`
   (:390) paints every link --accent. Correct for a design doc, wrong for a
   card grid. They cannot be edited from here without changing every HLD
   design, concept page and lesson on the site, so this file overrides them
   for its own namespace instead.

   TWO CLASSES, NOT ONE, on anything that overrides a `.content <tag>` rule.
   `.content h2` is (0,1,1), so a single `.lg-h2` at (0,1,0) LOSES to it and
   the h2 keeps its underline; `.lg .lg-h2` is (0,2,0) and wins. Load order
   alone is NOT relied on -- this sheet does load last
   (_layouts/default.html:18 then :29) but source order only breaks ties at
   equal specificity. The case that bites hardest is the filled button:
   `.lg-btn-primary` sets `color: var(--accent-contrast)` and inside
   `.content` a bare class loses to `.content a`, which paints the label
   --accent on an --accent fill -- measured contrast 1.00, an empty purple
   rectangle. interview-guide.css:24-30 records that incident in full.

   The `lg-` prefix is its own namespace rather than a reuse of `ab-`:
   about.css is one page's sheet and is free to change for that page, and a
   shared prefix would couple three more pages to every edit made for /about/.
   The vocabulary is deliberately parallel (lg-hero, lg-kicker, lg-h2,
   lg-card, lg-callout) so the two sheets stay legible side by side, and this
   one adds what legal copy needs and /about/ never did: table, definition
   row, prose list and inline-link rules.
   ========================================================================== */

.lg {
    /* Cards, bands and tables are not prose and take the full content column;
       running copy stays near a prose measure. --prose is 80ch, which is wide
       for a policy read top to bottom, so the prose blocks here set their own
       narrower ceiling rather than inheriting it. */
    --lg-card-pad: var(--sp-5);
    --lg-measure: 72ch;
}

/* --------------------------------------------------------------------------
   Shared bits -- buttons and action rows
   -------------------------------------------------------------------------- */
.lg .lg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 48px; padding: 0 var(--sp-5);
    font-size: var(--fs-base); font-weight: 650; text-decoration: none;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border-strong); border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.lg .lg-btn:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.lg .lg-btn:active { transform: translateY(1px); box-shadow: var(--shadow-sm); }
/* Re-asserts colour at (0,2,0). See the header: a bare class loses to
   `.content a` and the label is painted --accent on an --accent fill. */
.lg .lg-btn-primary { color: var(--accent-contrast); background: var(--accent); border-color: var(--accent); }
.lg .lg-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.lg .lg-btn [aria-hidden] { display: inline-block; transition: transform var(--dur-fast) var(--ease); }
.lg .lg-btn:hover [aria-hidden] { transform: translateX(3px); }
.lg .lg-btn:focus-visible, .lg .lg-card:focus-visible {
    outline: var(--focus-ring); outline-offset: var(--focus-ring-offset);
}
.lg .lg-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0 0; max-width: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.lg .lg-hero { padding: 0 0 var(--sp-6); }
.lg .lg-eyebrow {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    margin: 0 0 var(--sp-4); padding: var(--sp-1h) var(--sp-3); max-width: none;
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em;
    color: var(--text-muted); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-full);
}
.lg .lg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent); }
/* --fs-4xl is reserved for the homepage hero and --fs-3xl is what /about/
   takes, so these match /about/ rather than competing with it. */
.lg .lg-title { margin: 0 0 var(--sp-3); font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; line-height: 1.14; letter-spacing: -0.018em; color: var(--text); text-wrap: balance; }
/* The revision date. A policy's date is the first thing a reader checks for,
   and as a bold paragraph in the prose run it was indistinguishable from the
   copy around it. Tabular figures so a two-digit day does not shift it. */
.lg .lg-meta {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    margin: 0 0 var(--sp-4); max-width: none;
    font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.02em;
    color: var(--text-dim); font-variant-numeric: tabular-nums;
}
.lg .lg-meta svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg .lg-lede p { margin: 0 0 var(--sp-4); max-width: 64ch; font-size: var(--fs-md); line-height: 1.7; color: var(--text-muted); }
.lg .lg-lede p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Chapter breaks -- /about/'s device, same tokens
   -------------------------------------------------------------------------- */
.lg .lg-section { position: relative; margin-top: var(--sp-6); padding: var(--sp-7) 0 0; }
.lg .lg-section::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: var(--border);
}
.lg .lg-kicker {
    display: inline-flex; align-items: center; gap: var(--sp-3);
    margin: 0 0 var(--sp-3); max-width: none;
    font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-dim);
}
/* NO ::before DASH. The 20x2px bar that used to sit in front of this label
   read as a stray long hyphen, and it was drawn 42 times across six pages.
   The uppercase, letter-spaced, accent colour already marks the label as an
   eyebrow; the rule was decoration on top of a treatment that works without
   it. `display: inline-flex` and `gap` stay above: the gap has no second item
   to act on, and inline-flex keeps the shrink-to-fit box the label wants. */
/* On /terms/ the kicker carries the clause number, which is why the numbers
   came out of the heading text: the contents panel builds its entries from
   each heading's textContent (_layouts/default.html around line 1135), so a
   numbered h2 listed as "6. Pro subscriptions" and the number was repeated in
   every entry. Numbered here, clean in the outline, and still visible beside
   the heading for anyone cross-referencing a clause. */
.lg .lg-kicker-num { font-variant-numeric: tabular-nums; }
/* Kills content.css's h2 underline and its --sp-8 top margin: the hairline
   above the section already separates the bands, and two rules per heading is
   one too many. */
.lg .lg-h2 {
    margin: 0 0 var(--sp-4); padding-bottom: 0; border-bottom: 0;
    font-size: var(--fs-2xl); font-weight: 700; line-height: 1.15;
    letter-spacing: -0.025em; color: var(--text); text-wrap: balance;
}
.lg .lg-sub { margin: 0 0 var(--sp-5); max-width: 68ch; font-size: var(--fs-md); line-height: 1.7; color: var(--text-muted); }
.lg .lg-h3 { margin: 0; font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.01em; color: var(--text); }

/* --------------------------------------------------------------------------
   Prose -- the block legal copy actually runs in
   -------------------------------------------------------------------------- */
/* about.css styles only `.ab-prose p`, because /about/ has no legal copy. A
   policy is mostly running text with inline links, nested lists and the
   occasional sub-heading, so all of those are covered here; anything left
   uncovered falls back to the shared `.content` rules and reads as a third
   style on the same page. */
.lg .lg-prose { max-width: none; }
.lg .lg-prose > p { margin: 0 0 var(--sp-4); max-width: var(--lg-measure); line-height: 1.75; color: var(--text-muted); }
.lg .lg-prose > p:last-child { margin-bottom: 0; }
.lg .lg-prose h4 {
    margin: var(--sp-5) 0 var(--sp-2); padding: 0; border: 0;
    font-size: var(--fs-base); font-weight: 700; letter-spacing: -0.01em; color: var(--text);
}
.lg .lg-prose ul, .lg .lg-prose ol { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); max-width: var(--lg-measure); }
.lg .lg-prose li { margin-bottom: var(--sp-2); line-height: 1.7; color: var(--text-muted); }
.lg .lg-prose li:last-child { margin-bottom: 0; }
.lg .lg-prose li::marker { color: var(--text-dim); }
.lg .lg-prose strong, .lg .lg-card strong, .lg .lg-callout strong, .lg .lg-rows strong { color: var(--text); font-weight: 650; }
/* Inline links get an underline rather than colour alone. `.content a` is
   colour-only, which on a policy page -- where a link is often the thing the
   sentence is telling you to go and do -- is the weakest possible signal, and
   colour-only link discrimination is the WCAG 1.4.1 failure. */
.lg .lg-prose a, .lg .lg-callout a, .lg .lg-card a, .lg .lg-rows a, .lg .lg-points a, .lg .lg-table a {
    color: var(--accent); text-decoration: underline;
    text-decoration-thickness: 1px; text-underline-offset: 2px;
    transition: color var(--dur-fast) var(--ease);
}
.lg .lg-prose a:hover, .lg .lg-callout a:hover, .lg .lg-card a:hover,
.lg .lg-rows a:hover, .lg .lg-points a:hover, .lg .lg-table a:hover { color: var(--accent-hover); }

/* --------------------------------------------------------------------------
   Callouts -- one claim, pulled out of the prose run
   -------------------------------------------------------------------------- */
.lg .lg-callout {
    margin: 0; padding: var(--sp-5); max-width: none;
    font-size: var(--fs-md); line-height: 1.7; color: var(--text-muted);
    background: var(--accent-subtle); border: 1px solid var(--border-accent);
    border-radius: var(--r-lg);
}
.lg .lg-callout p { margin: 0 0 var(--sp-3); max-width: var(--lg-measure); line-height: 1.7; color: inherit; }
.lg .lg-callout p:last-child { margin-bottom: 0; }
/* The variant for a consequence the reader cannot undo -- account deletion on
   /privacy/, the liability cap on /terms/. A tint of --danger over the
   surface, not a --danger fill: these are statements to be read, not errors. */
.lg .lg-callout[data-tone="warn"] {
    background: color-mix(in srgb, var(--danger) 7%, var(--surface));
    border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
}
.lg .lg-callout-head {
    display: flex; align-items: center; gap: var(--sp-2);
    margin: 0 0 var(--sp-2); max-width: none;
    font-size: var(--fs-sm); font-weight: 750; letter-spacing: 0.02em; color: var(--text);
}
.lg .lg-callout-head svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lg .lg-callout[data-tone="warn"] .lg-callout-head { color: color-mix(in srgb, var(--danger) 72%, var(--text)); }

/* --------------------------------------------------------------------------
   Points -- the summary band ("the short version")
   -------------------------------------------------------------------------- */
/* A policy's TL;DR is the part most people read, and as five markdown bullets
   it was the least prominent thing on the page. Two columns of ticked rows,
   so it reads as a summary rather than as more body copy. */
.lg .lg-points {
    list-style: none; margin: 0; padding: 0; max-width: none;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3);
}
.lg .lg-points li {
    margin: 0; padding: var(--sp-4);
    display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--sp-3);
    align-items: start;
    font-size: var(--fs-sm); line-height: 1.65; color: var(--text-muted);
    background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--r-lg);
}
/* An inline SVG in a disc, the same construction as .lg-card-icon, rather
   than a ::before glyph or a CSS border tick: currentColor reaches an inline
   SVG, so one `color` declaration tints the mark on both themes, and nothing
   depends on font coverage for a dingbat. */
.lg .lg-tick {
    width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
    color: var(--success);
    background: color-mix(in srgb, var(--success) 16%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 32%, transparent);
}
.lg .lg-tick svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Cards -- one per subject
   -------------------------------------------------------------------------- */
/* align-items: start so each card is its own content's height. Stretched to
   the row, a three-bullet card matches the eight-bullet card beside it and
   carries half a card of empty space inside its own border, which reads as a
   rendering fault rather than as a short card. about.css:148 records the same
   finding. */
.lg .lg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); align-items: start; }
/* An odd last card is alone on its row, so it takes the full width. Written
   as last-and-odd rather than :nth-child(n) so adding or removing a card
   keeps the row full without a CSS edit. */
.lg .lg-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.lg .lg-card {
    display: flex; flex-direction: column; gap: var(--sp-3);
    padding: var(--lg-card-pad);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease);
}
.lg .lg-card:hover { border-color: color-mix(in srgb, var(--tone) 45%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lg .lg-card:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
/* `--tone` is set by the attribute and then read by the hover border, the
   icon fill, ring and colour, and the list marker. Nothing else keys off the
   attribute, so adding a tone is one line. A card with NO data-tone leaves
   --tone unresolved and every color-mix() above falls back, so always set
   one. Values match about.css where the subject matches. */
.lg [data-tone="neutral"] { --tone: var(--accent); }
.lg [data-tone="account"] { --tone: var(--info); }
.lg [data-tone="ai"] { --tone: var(--pro-chip); }
.lg [data-tone="money"] { --tone: var(--success); }
.lg [data-tone="legal"] { --tone: var(--warning); }
.lg [data-tone="bug"] { --tone: color-mix(in srgb, var(--accent) 50%, var(--danger)); }
.lg [data-tone="data"] { --tone: color-mix(in srgb, var(--success) 50%, var(--info)); }
.lg .lg-card-head { display: flex; align-items: center; gap: var(--sp-3); }
/* The note is a SIBLING of the heading, never inside it: the contents panel
   builds its entries from each heading's textContent, so a span inside the h3
   rendered as "DSAUpdated monthly" in the outline. about.css:173 is the same
   trap with the same cause. */
.lg .lg-card-title { min-width: 0; }
.lg .lg-card-icon {
    flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: var(--r-md); color: var(--tone);
    background: color-mix(in srgb, var(--tone) 14%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent);
    transition: background var(--dur-fast) var(--ease);
}
.lg .lg-card:hover .lg-card-icon { background: color-mix(in srgb, var(--tone) 24%, transparent); }
.lg .lg-card-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lg .lg-note { display: block; margin-top: 1px; font-size: var(--fs-xs); font-weight: 650; color: var(--text-dim); }
/* Card lists are not prose: no --prose cap, tighter leading, tonal marker. */
.lg .lg-card ul { margin: 0; padding-left: var(--sp-4); max-width: none; }
.lg .lg-card li { margin-bottom: var(--sp-2); font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }
.lg .lg-card li:last-child { margin-bottom: 0; }
.lg .lg-card li::marker { color: var(--tone); }
.lg .lg-card p { margin: 0; max-width: none; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }
.lg .lg-card p + p { margin-top: var(--sp-3); }

/* --------------------------------------------------------------------------
   Rows -- term and definition, for retention periods and clause lists
   -------------------------------------------------------------------------- */
/* Markdown rendered these as "**Account data and progress:** while your
   account exists", a bolded run-in inside a bullet, so the term and its value
   wrapped into one line of text and the list could not be scanned down. A
   two-column grid keeps the terms in a column. */
.lg .lg-rows {
    list-style: none; margin: 0; padding: 0; max-width: none;
    display: grid; gap: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    overflow: hidden;
}
.lg .lg-rows li {
    margin: 0; padding: var(--sp-4) var(--sp-5);
    display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--sp-3) var(--sp-5);
    align-items: baseline;
    border-top: 1px solid var(--border);
}
.lg .lg-rows li:first-child { border-top: 0; }
.lg .lg-rows b { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.lg .lg-rows span { font-size: var(--fs-sm); line-height: 1.65; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Deny list -- "you agree not to", on /terms/
   -------------------------------------------------------------------------- */
/* The one list on these pages that states prohibitions. A --danger-tinted
   marker so it is not read as another set of features, and a tint rather than
   a fill for the same reason the warn callout is a tint. */
/* Capped rather than full-bleed. Each prohibition is one short line, so at the
   full ~990px content column every row carried roughly 40% empty space to the
   right of its text and the block read as five half-empty bars. The cap is a
   little wider than --lg-measure because these rows have their own padding to
   pay for, and it keeps the list in the same column as the prose above it. */
.lg .lg-deny {
    list-style: none; margin: 0; padding: 0; max-width: 82ch;
    display: grid; gap: var(--sp-3);
}
.lg .lg-deny li {
    margin: 0; padding: var(--sp-4) var(--sp-5);
    display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--sp-3);
    align-items: start;
    font-size: var(--fs-sm); line-height: 1.65; color: var(--text-muted);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-left: 2px solid color-mix(in srgb, var(--danger) 45%, var(--border));
    border-radius: var(--r-md);
}
.lg .lg-ban {
    width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
    margin-top: 1px; color: var(--danger);
    background: color-mix(in srgb, var(--danger) 14%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 30%, transparent);
}
.lg .lg-ban svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }

/* --------------------------------------------------------------------------
   Tables -- the processor and cookie tables on /privacy/
   -------------------------------------------------------------------------- */
/* content.css:809 already gives a table a border, a radius, a sticky head and
   `overflow-x: auto` below 860px, and all of that is kept. Only the surface
   and the first column are restated here.

   THE WRAPPER OWNS THE BOTTOM MARGIN, not the table. content.css puts
   `margin-bottom: var(--sp-5)` on the table itself; zeroing that without
   moving it left the following paragraph hard against the table's border.
   There is no caption telling the reader the table scrolls: on a desktop
   column it does not scroll, so the sentence was describing a state the
   reader could not be in, and it sat close enough to the next paragraph to
   read as its opening line. */
.lg .lg-table { margin: 0 0 var(--sp-5); max-width: none; }
.lg .lg-table table { margin-bottom: 0; background: var(--surface); }
.lg .lg-table th { background: var(--bg-subtle); white-space: nowrap; }
.lg .lg-table td { font-size: var(--fs-sm); }
.lg .lg-table td:first-child { color: var(--text); font-weight: 650; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Contact -- the address block
   -------------------------------------------------------------------------- */
/* /contact/ has one job and the address is it, so it is the page's one filled
   surface rather than a bold link in the second paragraph. */
.lg .lg-mail {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5);
    margin: 0; padding: var(--sp-5); max-width: none;
    background: var(--accent-subtle); border: 1px solid var(--border-accent); border-radius: var(--r-lg);
}
.lg .lg-mail-icon {
    flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: var(--r-md); color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent);
}
.lg .lg-mail-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lg .lg-mail-body { min-width: 0; flex: 1 1 18rem; }
.lg .lg-mail-label { margin: 0 0 var(--sp-0); max-width: none; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
/* Two classes so this beats `.content a`'s --accent, and `break-all` because
   an address in a 18rem column on a 360px screen otherwise overflows the
   card rather than wrapping. */
.lg .lg-mail-addr {
    display: inline-block; max-width: 100%;
    font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.01em;
    color: var(--text); text-decoration: none; overflow-wrap: anywhere;
    transition: color var(--dur-fast) var(--ease);
}
.lg .lg-mail-addr:hover { color: var(--accent); }
.lg .lg-mail-note { margin: var(--sp-2) 0 0; max-width: none; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Closing link row
   -------------------------------------------------------------------------- */
.lg .lg-related {
    list-style: none; margin: 0; padding: 0; max-width: none;
    display: flex; flex-wrap: wrap; gap: var(--sp-3);
}
.lg .lg-related li { margin: 0; }
.lg .lg-related a {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--fs-sm); font-weight: 650; text-decoration: none;
    color: var(--text-muted); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-full);
    transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
                background var(--dur-fast) var(--ease);
}
.lg .lg-related a:hover { color: var(--text); border-color: var(--accent); background: var(--surface-2); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    .lg .lg-rows li { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .lg .lg-cards, .lg .lg-points { grid-template-columns: 1fr; }
    /* Term over definition rather than a 12rem column that wraps every term
       to three lines. */
    .lg .lg-rows li { grid-template-columns: 1fr; gap: var(--sp-0); }
}
@media (max-width: 560px) {
    .lg .lg-section { margin-top: var(--sp-5); padding-top: var(--sp-6); }
    .lg .lg-actions .lg-btn { flex: 1 1 100%; }
    .lg .lg-table td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .lg .lg-card, .lg .lg-btn, .lg .lg-card-icon, .lg .lg-btn [aria-hidden], .lg .lg-related a { transition: none; }
    .lg .lg-card:hover, .lg .lg-btn:hover, .lg .lg-btn:hover [aria-hidden] { transform: none; }
}
