/* Legal pages: one template for the Terms of Service, the Privacy Policy, the Cookie Policy and the
 * Information Security Policy. js/legal.js drives the contents, anchors, back to top and the phone sheet.
 *
 * Page top     breadcrumb, then the switcher (the four documents as links; the current one lifted onto
 *              white), then the title, "Last updated" with Print, and the summary. On the mist ground.
 *              The switcher sits above the title because choosing a document changes everything under it.
 * Contents     desktop: sticky beside the text with its own scroll; grouped by the document's parts, the
 *              part you are reading open, names wrapping in full; the current section violet and open to
 *              its subsections. Below 1024px: a bar under the header naming the current section, with a
 *              progress line; tapping it opens the full list in a sheet.
 * Text         680px column (about 75 characters a line), 17/28; numbers in their own column; every
 *              heading and numbered clause has an id and an anchor that copies its address.
 * Table        the kit's table; below 1024px each row stacks with its column names above the cells.
 * Print        text only, black on white, page breaks before parts, link addresses printed. */

.lg strong { font-weight: var(--kit-weight-semibold); }
.lg a.xref, .lg a.ext { color: var(--kit-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lg a.ext { overflow-wrap: anywhere; }
.lg a.xref:hover, .lg a.ext:hover { text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- page top */
.lg-top { padding: calc(var(--kit-header-h) + 40px) 0 32px; background: var(--kit-ground-mist); }
.lg-top .crumb { margin: 0; }
.lg-top__switch { display: flex; margin: 20px calc(-1 * var(--kit-gutter)) 0; padding: 0 var(--kit-gutter); overflow-x: auto; scrollbar-width: none; }
.lg-top__switch > .sw { flex-shrink: 0; }
.lg-top__switch::-webkit-scrollbar { display: none; }
.lg-top__title { margin-top: 28px; font-size: 36px; line-height: 40px; font-weight: var(--kit-weight-semibold); letter-spacing: var(--kit-type-display-track); }
.lg-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; font-size: var(--kit-type-small-size); line-height: var(--kit-type-small-line); color: var(--kit-text-muted); }
.lg-meta__up { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--kit-weight-medium); color: var(--kit-text); }
.lg-meta__up .icon { color: var(--kit-violet); }
.lg-print { display: none; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--kit-radius-control); background: transparent; color: var(--kit-text);
  font-size: var(--kit-type-ui-size); font-weight: var(--kit-weight-semibold); box-shadow: inset 0 0 0 1px #D6D4E0; }
.lg-print:hover { background: var(--kit-bg-wash); box-shadow: inset 0 0 0 1px var(--kit-ring-disc); }
.lg-top__lead { margin-top: 12px; max-width: 760px; font-size: var(--kit-type-lead-size); line-height: var(--kit-type-lead-line); color: var(--kit-text-muted); text-wrap: pretty; }
@media (min-width: 1024px) {
  .lg-top { padding: 128px 0 64px; }
  .lg-top__switch { display: flex; margin: var(--kit-space-block) 0 0; padding: 0; overflow: visible; }
  .lg-top__title { margin-top: 48px; font-size: 49px; line-height: 54px; }
  .lg-meta { margin-top: 20px; }
  .lg-print { display: inline-flex; }
  .lg-top__lead { margin-top: 16px; font-size: 20px; line-height: 32px; }
}

/* ---------------------------------------------------------------- the switcher: the kit's tabs, as links
 * The current document's white pill is its own element (.sw-pill, inside the current link, under the label),
 * so it can slide from page to page: see legal-motion.css. It looks exactly as before. */
.sw-tray { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--kit-bg-wash); box-shadow: inset 0 0 0 1px var(--kit-line); }
.sw-i { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; height: 40px; padding: 0 14px; border-radius: 10px; font-size: var(--kit-type-ui-size); line-height: var(--kit-type-ui-line); font-weight: var(--kit-weight-medium);
  color: var(--kit-text-muted); text-decoration: none; white-space: nowrap; transition: background-color var(--kit-dur-micro) var(--kit-ease); }
.sw-i:hover { background: rgba(255,255,255,0.6); color: var(--kit-text); }
.sw-i[aria-current="page"] { color: var(--kit-text); font-weight: var(--kit-weight-semibold); }
.sw-i[aria-current="page"]:hover { background: transparent; }
.sw-pill { position: absolute; inset: 0; border-radius: 10px; background: var(--kit-bg-surface); box-shadow: 0 1px 2px rgba(16,17,22,0.08), 0 4px 12px -6px rgba(16,17,22,0.2); }
.sw-l { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.sw-d { width: 6px; height: 6px; border-radius: var(--kit-radius-full); background: var(--kit-ring-disc); }
.sw-i[aria-current="page"] .sw-d { background: var(--kit-gradient); }
@media (min-width: 1024px) { .sw-i { padding: 0 16px; font-size: var(--kit-type-small-size); } }

/* ---------------------------------------------------------------- layout */
.lg-layout { padding: 32px 0 96px; }
.lg-toc { display: none; }
@media (min-width: 1024px) {
  .lg-layout { display: grid; grid-template-columns: 282px minmax(0, 680px); column-gap: 126px; align-items: start; padding: 72px 0 128px; }
  .lg-toc { display: block; position: sticky; top: calc(var(--kit-header-h) + 32px); max-height: calc(100vh - var(--kit-header-h) - 64px);
    overflow-y: auto; padding: 0 8px var(--kit-space-block) 0; scrollbar-width: thin; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .lg-layout { grid-template-columns: 240px minmax(0, 1fr); column-gap: 56px; } }

/* ---------------------------------------------------------------- short documents (the Information Security Policy)
 * No sections, so no contents: the text sits at the title's edge (columns 1 to 7, 680px at most) and the aside
 * holds the document's own facts (columns 9 to 12, sticky under the header). The date line under the title reads
 * "Last updated 13 January 2025", as on every legal page; the document still closes with its own line. Phone: text, date, aside, the other documents. */
.lg-aside { margin-top: 48px; }
@media (min-width: 1024px) {
  .lg-layout--short { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--kit-space-block); }
  .lg-layout--short > .lg-doc { grid-column: 1 / span 7; grid-row: 1; max-width: 680px; }
  .lg-layout--short > .lg-aside { grid-column: 9 / span 4; grid-row: 1 / span 2; margin-top: 0; position: sticky; top: calc(var(--kit-header-h) + 32px); }
  .lg-layout--short > .lg-short__more { grid-column: 1 / span 7; grid-row: 2; max-width: 680px; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .lg-layout--short { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--kit-space-block); } }
.lg-p { margin: 0; }
.lg-doc > .lg-signed { margin-top: 56px !important; }
.lg-signed time { font-variant-numeric: tabular-nums; }

/* the certification card: canvas ground, the registered badge at its own size, the standard, its scope and number */
.lg-cert { display: flex; flex-direction: column; align-items: flex-start; padding: var(--kit-space-block); border-radius: var(--kit-radius-card); background: var(--kit-bg-canvas); box-shadow: inset 0 0 0 1px var(--kit-line-soft); }
.lg-cert__badge { display: block; width: 131px; height: 44px; border-radius: var(--kit-radius-chip); box-shadow: 0 0 0 1px rgba(16,17,22,0.06); }
.lg-cert__eb { margin-top: var(--kit-space-block); }
.lg-cert__t { margin-top: 8px; font-size: 22px; line-height: 28px; font-weight: var(--kit-weight-semibold); letter-spacing: -0.01em; }
.lg-cert__d { margin-top: 8px; font-size: var(--kit-type-small-size); line-height: 24px; color: var(--kit-text-muted); text-wrap: pretty; }
.lg-cert .link-arrow { margin-top: 16px; }
@media (min-width: 1024px) { .lg-cert { padding: 28px; } }

/* ---------------------------------------------------------------- contents */
.lg-toc__label { margin-bottom: 10px; font-size: 12px; }
.tc, .tc ol { margin: 0; padding: 0; list-style: none; }
.tc-g + .tc-g { margin-top: 14px; }
.tc-gh { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tc-gl { padding: 6px 0; font-family: var(--kit-font-mono); font-size: 11px; line-height: var(--kit-type-label-line); font-weight: var(--kit-weight-medium); letter-spacing: 0.06em; color: var(--kit-text-subtle); text-decoration: none; }
.tc-gl:hover { color: var(--kit-text); }
/* a part's title is the entry being read while its opening text is read */
.tc-gl.is-active { color: var(--kit-violet); font-weight: var(--kit-weight-semibold); }
.tc-tog { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: var(--kit-radius-control); background: transparent; color: var(--kit-text-subtle); }
.tc-tog:hover { background: var(--kit-bg-wash); color: var(--kit-text); }
.tc-tog .icon { transition: transform var(--kit-dur-short) var(--kit-ease); }
.tc-g.is-open .tc-tog .icon { transform: rotate(180deg); }
.tc-list { margin-top: 6px !important; border-left: 1px solid var(--kit-line) !important; }
.tc-e, .tc-sub { display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 6px 8px 6px 14px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: var(--kit-type-ui-size); line-height: var(--kit-type-ui-line); color: var(--kit-text-muted); text-decoration: none; text-wrap: pretty; }
.tc-e:hover, .tc-sub:hover { color: var(--kit-text); border-left-color: var(--kit-ring-disc); }
.tc-n { font-variant-numeric: tabular-nums; color: var(--kit-text-faint); }
.tc-e--plain { grid-template-columns: minmax(0, 1fr); }
.tc-e.is-active { border-left-color: var(--kit-violet); color: var(--kit-text); font-weight: var(--kit-weight-semibold); background: linear-gradient(90deg, var(--kit-bg-wash-violet), rgba(245,243,251,0)); }
.tc-e.is-active .tc-n { color: var(--kit-violet); }
.tc-subs { margin: 2px 0 6px 30px !important; }
.tc-sub { grid-template-columns: 26px minmax(0, 1fr); padding: 4px 8px 4px 12px; font-size: 13px; line-height: 18px; border-left: 1px solid var(--kit-line); margin-left: 14px; }
.tc-sub.is-active { color: var(--kit-text); font-weight: var(--kit-weight-semibold); border-left: 2px solid var(--kit-violet); padding-left: 11px; }
/* with the script, only the part you are reading is open, and only the current section shows its subsections */
.js .tc-g:not(.is-open) > .tc-list { display: none; }
.js .tc-subs { display: none; }
.js .tc-e.is-active + .tc-subs { display: block; }

/* ---------------------------------------------------------------- the reading column */
.lg-doc { font-size: var(--kit-type-body-size); line-height: var(--kit-type-body-line); }
.lg-doc > * + * { margin-top: 16px !important; }
.lg-doc > :first-child { margin-top: 0 !important; }
.lg-doc .cl-t > p { margin: 0; }
.lg-part, .lg-subpart, .lg-sec, .lg-sub, .lg-letter, .lg-minor { position: relative; margin: 0; font-weight: var(--kit-weight-semibold); scroll-margin-top: calc(var(--kit-header-h) + 80px); padding-right: 40px; }
.lg-part { margin-top: 64px !important; padding-top: 28px; border-top: 2px solid var(--kit-text); font-size: 20px; line-height: 28px; letter-spacing: 0.01em; }
.lg-subpart { margin-top: 48px !important; padding-top: var(--kit-space-block); border-top: 1px solid var(--kit-ring-disc); font-size: 18px; line-height: var(--kit-type-body-line); letter-spacing: 0.01em; }
.lg-sec { margin-top: 40px !important; font-size: 18px; line-height: var(--kit-type-body-line); }
.lg-part + .lg-sec, .lg-subpart + .lg-sec { margin-top: 32px !important; }
.lg-sub { margin-top: 32px !important; font-size: 17px; line-height: 25px; }
.lg-sec + .lg-sub { margin-top: var(--kit-space-block) !important; }
.lg-letter, .lg-minor { margin-top: 32px !important; font-size: var(--kit-type-body-size); line-height: 24px; }
.lg-sec + .lg-letter { margin-top: 20px !important; }
.hn { font-variant-numeric: tabular-nums; }
.lg-sec .hn, .lg-sub .hn, .lg-letter .hn, .lg-minor .hn { color: var(--kit-violet); }
.lg-list { margin: 0; padding: 0; list-style: none; }
.lg-list > li + li { margin-top: 12px; }
.cl-t { min-width: 0; }
.cl-t > .lg-list { margin-top: 12px; }
.cl, .bl { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); scroll-margin-top: calc(var(--kit-header-h) + 80px); border-radius: var(--kit-radius-control); }
.cl-n { font-weight: var(--kit-weight-semibold); font-variant-numeric: tabular-nums; color: var(--kit-text-subtle); }
.bl { grid-template-columns: 22px minmax(0, 1fr); }
.bl-m { width: 6px; height: 6px; margin: 10px 0 0 4px; border-radius: var(--kit-radius-full); background: var(--kit-text-faint); }
.bl2 .bl-m { background: transparent; box-shadow: inset 0 0 0 1.5px var(--kit-text-faint); }
.bl3 .bl-m { border-radius: 1px; }
@media (min-width: 1024px) {
  .lg-doc { font-size: 17px; line-height: 28px; }
  .lg-part, .lg-subpart, .lg-sec, .lg-sub, .lg-letter, .lg-minor { padding-right: 0; scroll-margin-top: calc(var(--kit-header-h) + 32px); }
  .lg-part { margin-top: 96px !important; padding-top: 40px; font-size: 25px; line-height: 32px; }
  .lg-subpart { margin-top: 72px !important; padding-top: 32px; font-size: 22px; line-height: 30px; }
  .lg-sec { margin-top: 56px !important; font-size: 20px; line-height: 28px; }
  .lg-sub { margin-top: 40px !important; font-size: 18px; line-height: var(--kit-type-body-line); }
  .lg-letter, .lg-minor { font-size: 17px; line-height: var(--kit-type-body-line); }
  .cl { grid-template-columns: 36px minmax(0, 1fr); scroll-margin-top: calc(var(--kit-header-h) + 32px); }
  .bl { grid-template-columns: 28px minmax(0, 1fr); }
  .bl-m { margin: 11px 0 0 6px; }
}

/* ---------------------------------------------------------------- anchors: every heading and numbered clause */
.anc { position: absolute; right: -8px; top: -2px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 32px; border-radius: var(--kit-radius-control);
  color: var(--kit-ring-disc); text-decoration: none; transition: opacity var(--kit-dur-micro) var(--kit-ease), background-color var(--kit-dur-micro) var(--kit-ease), color var(--kit-dur-micro) var(--kit-ease); }
.lg-part > .anc { top: 24px; } .lg-subpart > .anc { top: 20px; }
.cl > .anc { display: none; }
.anc-tip { display: none; }
.anc:hover { background: var(--kit-tint-violet); color: var(--kit-violet); }
.anc.is-copied { color: var(--kit-violet); background: var(--kit-tint-violet); }
@media (min-width: 1024px) {
  .anc { left: -40px; right: auto; top: 0; width: 30px; height: 28px; color: var(--kit-text-faint); opacity: 0; }
  .cl > .anc { display: inline-flex; }
  .lg-part > .anc { top: 40px; } .lg-subpart > .anc { top: 33px; }
  .lg-sec:hover > .anc, .lg-sub:hover > .anc, .lg-letter:hover > .anc, .lg-minor:hover > .anc, .lg-part:hover > .anc, .lg-subpart:hover > .anc,
  .cl:hover > .anc, .anc:focus-visible, .anc.is-copied { opacity: 1; }
  .anc-tip { display: block; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 4px 8px; border-radius: var(--kit-radius-chip); background: var(--kit-bg-deep);
    color: #FFFFFF; font-size: 12px; line-height: var(--kit-type-label-line); font-weight: var(--kit-weight-medium); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--kit-dur-micro) var(--kit-ease); }
  .anc.is-copied .anc-tip { opacity: 1; }
}

/* arriving from a cross-reference: the clause it lands on is washed violet for 2.4 seconds */
@keyframes lg-land { 0% { background: var(--kit-bg-wash-violet-pressed); } 100% { background: rgba(236,232,248,0); } }
.cl:target, .cl.is-landed { animation: lg-land 2.4s var(--kit-ease) 0.2s both; }
.lg-sec:target, .lg-sub:target, .lg-letter:target { color: var(--kit-violet); }
/* arriving at a heading: legal.js draws the same wash behind the whole section it heads, under the text */
.lg-doc { position: relative; isolation: isolate; }
.lg-doc > .lg-land { position: absolute; z-index: -1; margin: 0 !important; border-radius: var(--kit-radius-control); pointer-events: none; }
.lg-land.is-on { animation: lg-land 2.4s var(--kit-ease) 0.2s both; }

/* ---------------------------------------------------------------- the table */
.lg-table { margin: var(--kit-space-block) 0 0 !important; }
.lg-table caption { display: block; text-align: left; margin-bottom: 12px; font-size: var(--kit-type-small-size); line-height: var(--kit-type-small-line); font-weight: var(--kit-weight-semibold); }
.lg-table caption em { font-style: normal; }
.lg-table table { width: 100%; border-collapse: collapse; font-size: var(--kit-type-body-size); line-height: 24px; }
.lg-table thead { display: none; }
.lg-table table, .lg-table tbody, .lg-table tr, .lg-table th, .lg-table td { display: block; width: auto; }
.lg-table tbody { border-top: 1px solid var(--kit-text); }
.lg-table tr { padding: 16px 0; border-bottom: 1px solid var(--kit-line); }
.lg-table tbody th, .lg-table td { padding: 0; border: 0; text-align: left; }
.lg-table tbody th { font-weight: var(--kit-weight-semibold); font-size: var(--kit-type-small-size); line-height: var(--kit-type-small-line); }
.lg-table tbody th::before, .lg-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-family: var(--kit-font-mono); font-size: 11px; line-height: 14px;
  font-weight: var(--kit-weight-medium); letter-spacing: var(--kit-type-label-track); text-transform: uppercase; color: var(--kit-text-subtle); }
.lg-table td { margin-top: 12px; font-size: var(--kit-type-small-size); line-height: 23px; color: var(--kit-text-muted); }
@media (min-width: 1024px) {
  .lg-table thead { display: table-header-group; }
  .lg-table table { display: table; } .lg-table tbody { display: table-row-group; border-top: 0; } .lg-table tr { display: table-row; padding: 0; border: 0; }
  .lg-table th, .lg-table td { display: table-cell; }
  .lg-table thead th { padding: 0 16px 12px 0; border-bottom: 1px solid var(--kit-text); text-align: left; font-family: var(--kit-font-mono); font-size: 12px; line-height: var(--kit-type-label-line);
    font-weight: var(--kit-weight-medium); letter-spacing: var(--kit-type-label-track); text-transform: uppercase; color: var(--kit-text-subtle); }
  .lg-table tbody th { width: 34%; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--kit-line); vertical-align: top; }
  .lg-table td { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--kit-line); vertical-align: top; font-size: var(--kit-type-body-size); line-height: 24px; }
  .lg-table tbody th::before, .lg-table td::before { display: none; }
}

/* ---------------------------------------------------------------- end of document, more documents */
.lg-end { margin-top: 64px !important; padding-top: 20px; border-top: 1px solid var(--kit-line); font-size: var(--kit-type-small-size); line-height: var(--kit-type-small-line); color: var(--kit-text-muted); }
.lg-more { margin-top: 64px; }
.lg-more__label { margin-bottom: 16px; }
.lg-more__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lg-more a { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 136px; padding: 20px; border-radius: var(--kit-radius-card); background: var(--kit-bg-surface);
  color: var(--kit-text); text-decoration: none; box-shadow: var(--kit-shadow-card); transition: transform var(--kit-dur-short) var(--kit-ease), box-shadow var(--kit-dur-short) var(--kit-ease); }
.lg-more a:hover { transform: translateY(-3px); box-shadow: var(--kit-shadow-card-hover); }
.lg-more__top { display: flex; align-items: center; justify-content: space-between; }
.lg-more__t { font-size: 17px; line-height: 24px; font-weight: var(--kit-weight-semibold); }
.lg-more .link-arrow { color: var(--kit-violet); }
@media (min-width: 768px) { .lg-more__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- phone and tablet: the contents bar and sheet */
.lg-bar { position: sticky; top: var(--kit-header-h); z-index: 20; }
.lg-bar__btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px var(--kit-gutter); border: 0; border-bottom: 1px solid var(--kit-line);
  background: rgba(255,255,255,0.96); text-align: left; color: var(--kit-text); box-shadow: 0 8px 20px -16px rgba(16,17,22,0.25); }
.lg-bar__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex-grow: 1; }
.lg-bar__eb { font-size: 11px; line-height: 14px; }
.lg-bar__cur { font-size: var(--kit-type-ui-size); line-height: var(--kit-type-ui-line); font-weight: var(--kit-weight-semibold); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lg-bar__ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--kit-radius-control); background: var(--kit-bg-wash); flex-shrink: 0; }
.lg-bar__prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--p, 0%); background: var(--kit-gradient-h); }
@media (min-width: 1024px) { .lg-bar { display: none; } }
/* The bar stays pinned over the rest of the document and Back to top sits in the lower corner,
   while the page's scroll padding clears only the header: a control focused by keyboard is
   brought into view clear of both. The bar is at most 77px (a two-line section name). */
@media (max-width: 1023px) {
  .lg-bar ~ :not(.lg-sheet) :is(a[href], button, [tabindex]) { scroll-margin-top: 88px; scroll-margin-bottom: 80px; }
}

.lg-sheet { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(16,17,22,0.32); }
.lg-sheet[hidden] { display: none; }
.lg-sheet__panel { display: flex; flex-direction: column; max-height: 88%; border-radius: var(--kit-radius-feature) var(--kit-radius-feature) 0 0; background: var(--kit-bg-surface); box-shadow: 0 -12px 40px -12px rgba(16,17,22,0.3); }
.lg-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 12px 20px; border-bottom: 1px solid var(--kit-line-soft); }
.lg-sheet__head h2 { font-size: 17px; line-height: 24px; }
.lg-sheet__body { overflow-y: auto; padding: 16px 20px 28px; }
.lg-sheet .tc-e { padding: 9px 8px 9px 14px; font-size: var(--kit-type-small-size); line-height: var(--kit-type-small-line); }
.lg-sheet .tc-sub { padding: 7px 8px 7px 12px; font-size: var(--kit-type-ui-size); line-height: var(--kit-type-ui-line); }
.lg-sheet .tc-gl { font-size: 12px; }
.lg-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--kit-radius-control); background: transparent; color: var(--kit-text); }
.lg-x:hover { background: var(--kit-bg-wash); }

/* ---------------------------------------------------------------- back to top and the copied message */
.totop { position: fixed; right: 16px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: var(--kit-radius-full); background: var(--kit-bg-deep); color: #FFFFFF; font-size: var(--kit-type-ui-size); font-weight: var(--kit-weight-semibold); box-shadow: 0 12px 32px -10px rgba(23,18,46,0.6);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
  transition: opacity var(--kit-dur-short) var(--kit-ease), transform var(--kit-dur-short) var(--kit-ease), visibility 0s linear var(--kit-dur-short); }
/* Hidden, it also leaves the tab order (a short page never shows it): visibility waits for the fade
   out, and returns at once when the button shows. */
.totop.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.totop:hover { background: var(--kit-bg-deep-raised, var(--kit-bg-deep-panel)); }
.totop:focus-visible { outline: 2px solid var(--kit-focus); outline-offset: 3px; }
.totop__label { display: none; }
@media (min-width: 1024px) {
  .totop { right: 32px; bottom: 32px; width: auto; height: 44px; padding: 0 18px 0 14px; }
  .totop__label { display: inline; }
}
.lg-toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px;
  background: var(--kit-bg-deep); color: #FFFFFF; font-size: var(--kit-type-ui-size); line-height: var(--kit-type-ui-line); font-weight: var(--kit-weight-medium); white-space: nowrap; box-shadow: 0 12px 32px -10px rgba(23,18,46,0.6);
  opacity: 0; pointer-events: none; transition: opacity var(--kit-dur-short) var(--kit-ease), transform var(--kit-dur-short) var(--kit-ease); }
.lg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.lg-toast .icon { color: var(--kit-focus-on-dark); }

@media (prefers-reduced-motion: reduce) {
  .cl:target, .cl.is-landed, .lg-land.is-on { animation: none; background: var(--kit-bg-wash-violet); }
  .tc-tog .icon, .sw-i, .lg-more a, .totop, .anc, .anc-tip, .lg-toast { transition: none !important; }
  .lg-more a:hover { transform: none; }
}

/* ---------------------------------------------------------------- print: the text, black on white */
@media print {
  .notice, .site-header, .menu-scrim, .site-footer, .lg-top__switch, .lg-print, .lg-toc, .lg-bar, .lg-sheet, .anc, .totop, .lg-toast, .lg-more, .lg-aside, .skip-link, .dialog, .lg-land { display: none !important; }
  body { background: var(--kit-bg-surface); color: #000000; font-size: 10.5pt; line-height: 1.5; }
  .lg-top { padding: 0 0 12pt; background: none; border-bottom: 1pt solid #000000; }
  .lg-top .crumb { display: none; }
  .lg-top__title { margin: 0; font-size: 20pt; line-height: 1.2; }
  .lg-top__lead, .lg-meta, .lg-meta__up { color: #000000; font-size: 10.5pt; }
  .lg-layout { display: block; padding: 12pt 0 0; }
  .container { width: auto; }
  .lg-doc { font-size: 10.5pt; line-height: 1.5; }
  .lg-doc > * + * { margin-top: 6pt !important; }
  .lg-part { break-before: page; margin-top: 0 !important; padding-top: 12pt; font-size: 14pt; border-top-color: #000000; }
  .lg-subpart { margin-top: 18pt !important; padding-top: 8pt; font-size: 12pt; }
  .lg-sec, .lg-sub, .lg-letter, .lg-minor { break-after: avoid; margin-top: 14pt !important; font-size: 11pt; color: #000000; }
  .hn, .lg-sec .hn, .lg-sub .hn, .lg-letter .hn, .lg-minor .hn, .tc-n, .cl-n { color: #000000; }
  .cl, .bl, .lg-table tr { break-inside: avoid; }
  .lg a.ext::after { content: " (" attr(href) ")"; }
  .lg a.xref, .lg a.ext { color: #000000; }
  @page { margin: 18mm 16mm 20mm; }
}
