/* The policy, legal, transparency, privacy-centre and help pages: one layout (company/legal/layout.py).
   Colours come only from the platform tokens, so light and dark follow the person's theme. */

.lg {
  --lg-ink: var(--m19-ink);
  --lg-soft: var(--m19-ink-3);
  --lg-accent: var(--m19-brand-600);
  --lg-accent-soft: var(--m19-brand-100);
  --lg-paper: var(--m19-canvas);
  --lg-card: var(--m19-surface);
  --lg-line: var(--m19-line);
  margin: 0;
  background: var(--lg-paper);
  color: var(--lg-ink);
  font: var(--m19-text-body)/1.6 var(--m19-font);
}
@media (prefers-color-scheme: dark) {
  .lg { --lg-accent: var(--m19-brand-400); --lg-accent-soft: color-mix(in oklab, var(--m19-brand-400) 22%, transparent); }
}
.lg *, .lg *::before, .lg *::after { box-sizing: border-box; }
.lg a:not(.spot-action) { color: var(--lg-accent); text-underline-offset: .2em; }
.lg :focus-visible { outline: var(--m19-focus-ring); outline-offset: var(--m19-focus-offset); }
.lg .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Kept above the page rather than off to one side: a right-to-left page scrolls to whatever sits off its left. */
.lg .skip-link { position: absolute; inset-inline-start: 8px; top: -200px; }
.lg .skip-link:focus { top: 8px; z-index: var(--m19-z-dialog); background: var(--lg-card); padding: 8px 12px; }

/* Line art: ink strokes, one accent fill, a soft fill. */
.lg svg .i { fill: none; stroke: var(--lg-ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lg svg .a { fill: var(--lg-accent); stroke: none; }
.lg svg .k { fill: none; stroke: var(--lg-accent); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.lg svg .s { fill: var(--lg-accent-soft); stroke: var(--lg-soft); stroke-width: 1.25; }

/* Top bar */
.lg-bar { position: sticky; top: 0; z-index: var(--m19-z-rail); display: flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 0 12px; background: var(--lg-card); border-bottom: 1px solid var(--lg-line); }
.lg-bar-title { flex: 1; font-size: var(--m19-text-lg); font-weight: var(--m19-weight-semibold); color: var(--lg-ink);
  text-decoration: none; }
.lg-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--lg-ink); cursor: pointer; }
.lg-icon:hover { background: var(--m19-surface-2); }
.lg-avatar { border: 1px solid var(--lg-line); }
.lg-nav { background: var(--lg-card); border-bottom: 1px solid var(--lg-line); }
.lg-nav ul { list-style: none; margin: 0 auto; padding: 8px 16px; max-width: 1200px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.lg-nav a { display: inline-block; min-height: 44px; line-height: 44px; }
.lg-nav [aria-current="page"] { font-weight: var(--m19-weight-semibold); color: var(--lg-ink); }

.lg-banner { margin: 0; padding: 10px 16px; text-align: center; background: var(--m19-state-warning-soft);
  color: var(--m19-state-warning-ink); border-bottom: 1px solid var(--lg-line); }

.lg-main { max-width: 1200px; margin: 0 auto; padding: 16px 16px 48px; }
.lg-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 8px 0; color: var(--lg-soft); }
.lg-crumbs li + li::before { content: "\203A"; margin-inline-end: 4px; }

/* Hero */
.lg-hero { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; padding: 16px 0 8px; }
.lg-hero h1 { margin: 0 0 8px; font-size: var(--m19-text-3xl); line-height: 1.15; letter-spacing: var(--m19-display-track);
  font-weight: var(--m19-display-weight); }
.lg-lead { margin: 0 0 12px; font-size: var(--m19-text-xl); line-height: 1.4; color: var(--lg-ink); }
.lg-summary { margin: 0; color: var(--m19-ink-2); }
.lg-art { margin: 0; justify-self: center; width: min(240px, 70vw); aspect-ratio: 3 / 2; }
.lg-svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .lg-hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-top: 32px; }
  .lg-hero h1 { font-size: var(--m19-text-4xl); }
  .lg-art { width: 300px; }
}

/* Check-up card */
.lg-card { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 16px; border: 1px solid var(--lg-line);
  border-radius: var(--m19-radius-lg); background: var(--lg-card); box-shadow: var(--m19-shadow-xs); }
.lg-card h2 { margin: 0; font-size: var(--m19-text-lg); }
.lg-card p { margin: 0; color: var(--m19-ink-2); }
.lg-card > div { flex: 1; }
.lg-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--lg-line); border-radius: var(--m19-radius-pill); background: var(--lg-card); color: var(--lg-accent);
  font: inherit; font-weight: var(--m19-weight-semibold); text-decoration: none; cursor: pointer; }
.lg-button:hover { background: var(--lg-accent-soft); }
.lg-danger { color: var(--m19-state-danger-ink); }
.lg-link { border: 0; background: none; padding: 0; min-height: 44px; color: var(--lg-accent); font: inherit; text-decoration: underline;
  text-underline-offset: .2em; cursor: pointer; }

.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 0 16px; color: var(--lg-soft);
  border-bottom: 1px solid var(--lg-line); }
.lg-lang select { min-height: 44px; margin-inline-start: 6px; font: inherit; }
/* Native selects drawn from the tokens, so dark mode never shows a white box (surfaces). */
.lg-lang select, .lg-switch select { padding: 0 10px; color: var(--lg-ink); background: var(--lg-card); border: 1px solid var(--m19-line-strong);
  border-radius: var(--m19-radius-sm); }
.legal-en-only { display: none; }
html:not([lang|="en"]) .legal-en-only { display: block; padding: 8px 12px; background: var(--m19-state-info-soft); }

/* Body: contents rail on desktop, a collapsible list on a phone */
.lg-body { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
.lg-toc summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: var(--m19-weight-semibold); }
.lg-toc ol { margin: 0; padding-inline-start: 28px; }
.lg-toc a { display: block; padding: 6px 0; min-height: 32px; }
.lg-toc a[aria-current="true"] { font-weight: var(--m19-weight-semibold); color: var(--lg-ink); }
@media (min-width: 900px) {
  .lg-body { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .lg-toc { position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 88px); overflow: auto; }
}
.lg-article { min-width: 0; max-width: 72ch; }
.lg-section { padding: 8px 0 24px; scroll-margin-top: 72px; border-bottom: 1px solid var(--lg-line); }
.lg-section h2 { display: flex; align-items: center; gap: 6px; margin: 16px 0 6px; font-size: var(--m19-text-2xl); line-height: 1.25; }
.lg-anchor { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; color: var(--lg-soft); text-decoration: none;
  opacity: .6; }
.lg-anchor:hover, .lg-anchor:focus-visible { opacity: 1; }
.lg-gist { margin: 0 0 8px; font-size: var(--m19-text-lg); color: var(--lg-ink); font-weight: var(--m19-weight-medium); }
.lg-detail { color: var(--m19-ink-2); overflow-wrap: anywhere; }
.lg-example { margin: 12px 0; border: 1px solid var(--lg-line); border-radius: var(--m19-radius-md); background: var(--lg-card); }
.lg-example summary { min-height: 44px; padding: 0 12px; display: flex; align-items: center; cursor: pointer; }
.lg-example ul { margin: 0; padding: 0 16px 12px 32px; }
.lg-control { font-weight: var(--m19-weight-semibold); }
.lg-todo { background: var(--m19-state-warning-soft); color: var(--m19-state-warning-ink); padding: 0 4px; }
.lg-soon { color: var(--m19-state-info-ink); background: var(--m19-state-info-soft); padding: 0 6px; border-radius: var(--m19-radius-pill); }
.lg-table { overflow-x: auto; max-width: 100%; }
.lg-table table { border-collapse: collapse; width: 100%; font-size: var(--m19-text-ui); }
.lg-table th, .lg-table td { text-align: start; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--lg-line); }
.lg-diff { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; background: var(--lg-card); border-radius: var(--m19-radius-md); }
.lg-diff-add { color: var(--m19-state-success-ink); }
.lg-diff-del { color: var(--m19-state-danger-ink); }
.lg-badge { display: inline-block; padding: 0 8px; border-radius: var(--m19-radius-pill); font-size: var(--m19-text-xs);
  background: var(--m19-surface-2); color: var(--lg-ink); }

/* Forms and the privacy centre */
.lg-form { display: grid; gap: 8px; max-width: 40rem; }
.lg-form input, .lg-form select, .lg-form textarea { min-height: 44px; padding: 8px 10px; font: inherit; color: var(--lg-ink);
  background: var(--lg-card); border: 1px solid var(--m19-line-strong); border-radius: var(--m19-radius-sm); }
.lg-check { display: flex; gap: 8px; align-items: flex-start; }
.lg-check input { min-height: 0; margin-top: .35em; }
.lg-said { min-height: 1.5em; margin: 0; }
.lg-switch { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--lg-line); }
.lg-switch p { margin: 2px 0 0; color: var(--lg-soft); font-size: var(--m19-text-ui); }
.lg-switch input[type="checkbox"] { width: 44px; height: 28px; flex: none; accent-color: var(--lg-accent); }
.lg-switch select { min-height: 44px; font: inherit; }
.lg-cookie-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-people { list-style: none; padding: 0; }
.lg-people li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; }

/* Help */
.lg-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 16px 0; }
.lg-search label { grid-column: 1 / -1; font-weight: var(--m19-weight-semibold); }
.lg-search input { min-width: 0; min-height: 48px; padding: 0 14px; font: inherit; border: 1px solid var(--m19-line-strong);
  border-radius: var(--m19-radius-pill); background: var(--lg-card); color: var(--lg-ink); }
.lg-results:empty { display: none; }
/* The Help Center's first screen: title, lead, then search, and the drawing after them. */
.lg-help-home .lg-hero .lg-search { margin-block-end: 0; }
.lg-help-spot { padding-block: 24px 8px; }
.lg-results a { display: block; padding: 8px 0; }
.lg-tiles { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.lg-tile { padding: 16px; border: 1px solid var(--lg-line); border-radius: var(--m19-radius-lg); background: var(--lg-card); }
.lg-tile h3 { margin: 0 0 8px; }
.lg-tile ul { margin: 0; padding-inline-start: 18px; }
.lg-tile a { display: inline-flex; align-items: center; min-height: 44px; }
.lg-feedback, .lg-related, .lg-more { padding: 16px 0; border-bottom: 1px solid var(--lg-line); }
.lg-fb-row { display: flex; gap: 8px; }
/* The cookie banner sits over the page's foot, so appearing and leaving shift nothing. */
.lg-consent { position: fixed; inset-inline: 8px; bottom: 8px; z-index: var(--m19-z-sheet); margin: 0; flex-wrap: wrap; }
.lg-consent > div { flex: 1 1 100%; }
.lg-consent p { margin: 0 0 4px; }
@media (min-width: 900px) { .lg-consent { inset-inline: auto 16px; max-width: 480px; } }
.lg-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; padding: 24px 16px; border-top: 1px solid var(--lg-line); }
.lg-foot a { min-height: 44px; line-height: 44px; }
[dir="rtl"] .lg-crumbs li + li::before { content: "\2039"; }

@media (prefers-reduced-motion: no-preference) { .lg { scroll-behavior: smooth; } }

/* Download PDF: the browser's print, laid out for paper. */
@media print {
  .lg-bar, .lg-nav, .lg-card, .lg-consent, .lg-meta button, .lg-lang, .lg-toc, .lg-foot, .lg-anchor, .lg-feedback,
  .skip-link { display: none !important; }
  /* Paper is white and ink is pure black: a print rule, not a palette decision (named, not hex, so no sheet gains a raw colour). */
  .lg { background: white; color: black; font-size: var(--m19-text-ui); }
  .lg-banner { border: 1px solid black; background: none; color: black; }
  .lg-body { display: block; }
  .lg-article { max-width: none; }
  .lg-example { border: 0; }
  .lg-example > :not(summary) { display: block; }
  .lg-section { break-inside: avoid-page; }
  .lg a[href^="http"]::after { content: " (" attr(href) ")"; }
}

/* forgeos-shell: SHELL_CSS, forgeos.web.navigation */
.uf-bar { position: fixed; z-index: var(--m19-z-rail); inset: auto 0 0; box-sizing: border-box; padding-block-end: env(safe-area-inset-bottom); border-block-start: 1px solid var(--m19-line); background: var(--m19-surface); }
.uf-bar ul { display: flex; margin: 0; padding: 4px 4px 0; list-style: none; }
.uf-bar li { flex: 1; }
.uf-bar.uf-nav .uf-nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-block-size: 52px; border-radius: var(--m19-radius-md); color: var(--m19-ink-3); font: 500 var(--m19-text-xs)/1.2 var(--m19-font); text-decoration: none; }
.uf-bar.uf-nav .uf-nav-item[aria-current="page"] { background: none; color: var(--m19-brand-700); font-weight: 650; }
.uf-bar svg { inline-size: 24px; block-size: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.uf-bar .uf-find { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; inline-size: 100%; min-block-size: 52px; padding: 0; border: 0; border-radius: var(--m19-radius-md); background: none; color: var(--m19-ink-3); font: 500 var(--m19-text-xs)/1.2 var(--m19-font); text-decoration: none; cursor: pointer; }
.uf-bar .uf-find:focus-visible { outline: var(--m19-focus-ring); outline-offset: calc(-1 * var(--m19-focus-offset)); }
body:has(.uf-bar) { padding-block-end: calc(60px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .uf-bar { inset-block: 0; inset-inline: 0 auto; inline-size: 272px; padding: 16px 12px; border: 0; border-inline-end: 1px solid var(--m19-line); }
  .uf-bar ul { flex-direction: column; gap: 2px; padding: 0; }
  .uf-bar.uf-nav .uf-nav-item { flex-direction: row; justify-content: flex-start; gap: 12px; min-block-size: 44px; padding-inline: 12px; color: var(--m19-ink-2); font-size: var(--m19-text-md); }
  @media (hover: hover) { .uf-bar.uf-nav .uf-nav-item:hover { background: var(--m19-surface-2); } }
  .uf-bar.uf-nav .uf-nav-item[aria-current="page"] { background: var(--m19-panel-ember); color: var(--m19-hi-ink-ember); }
  .uf-bar.uf-nav .uf-nav-item[aria-current="page"] svg { color: var(--m19-hi-ember); }
  .uf-bar .uf-find-li { order: -1; }
  .uf-bar .uf-find { flex-direction: row; justify-content: flex-start; gap: 12px; min-block-size: 44px; margin-block-end: var(--m19-space-2); padding-inline: 12px; border: 1px solid var(--m19-line); border-radius: var(--m19-radius-pill); color: var(--m19-ink-2); font-size: var(--m19-text-md); }
  @media (hover: hover) { .uf-bar .uf-find:hover { background: var(--m19-surface-2); } }
  .uf-bar svg { inline-size: 20px; block-size: 20px; }
  body:has(.uf-bar) { padding-block-end: 0; padding-inline-start: 272px; }
  .uf-bar .uf-nav-search { display: block; margin-block-end: 12px; }
  .uf-nav-search input { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: 0 14px; border: 1px solid var(--m19-line); border-radius: 22px; font: inherit; }
}
/* /forgeos-shell */
/* The cookie card rises above the bar while it is a bar, so it never sits on the five destinations; from 900px the bar is a rail. */
body:has(.uf-bar) .lg-consent { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body:has(.uf-bar) .lg-consent { bottom: 8px; } }
/* ux-round-3: the page's one primary is the check-up's Start. Accept all and Reject all stay equal on purpose:
   saying no to cookies must be as easy as saying yes. */
.lg-button-primary { background: var(--m19-brand-600); border-color: var(--m19-brand-600); color: var(--m19-on-accent-light); }
.lg-button-primary:hover { background: color-mix(in srgb, var(--m19-brand-600) 86%, black); }
