/* LEGAL READER (2026-10-06). The same file on RMPAC ONE and rmpacgroup.com;
   it follows the page's theme (html.light) through data-theme on .lg.
   Everything is scoped under .lg so nothing leaks into the sites. */
.lg {
    --lg-bg: #0b0b0c;
    --lg-panel: #121214;
    --lg-ink: #f4f3ef;
    --lg-body: #c9c7c1;
    --lg-mute: #8d8b86;
    --lg-line: rgba(255, 255, 255, 0.08);
    --lg-line-hi: rgba(255, 255, 255, 0.14);
    --lg-chip: rgba(255, 255, 255, 0.05);
    --lg-red: #e02424;
    --lg-red-ink: #ff6b6b;
    --lg-red-soft: rgba(224, 36, 36, 0.12);
    --lg-mono: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, monospace;
    position: fixed; inset: 0; z-index: 2147483000;
    display: grid; grid-template-rows: auto 1fr;
    background: var(--lg-bg); color: var(--lg-body);
    font-family: inherit; font-size: 16px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    opacity: 0; transform: translateY(10px) scale(0.995);
    transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lg[hidden] { display: none !important; }
.lg.is-open { opacity: 1; transform: none; }
.lg[data-theme="light"] {
    --lg-bg: #fbfaf8;
    --lg-panel: #ffffff;
    --lg-ink: #0b0b0c;
    --lg-body: #3b3d42;
    --lg-mute: #7a7c82;
    --lg-line: rgba(0, 0, 0, 0.08);
    --lg-line-hi: rgba(0, 0, 0, 0.14);
    --lg-chip: rgba(0, 0, 0, 0.04);
    --lg-red: #c41717;
    --lg-red-ink: #c41717;
    --lg-red-soft: rgba(196, 23, 23, 0.08);
}
.lg *, .lg *::before, .lg *::after { box-sizing: border-box; }
.lg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.lg button { font: inherit; color: inherit; }

/* ── the bar ── */
.lg-top {
    position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
    height: 64px; padding: 0 24px;
    background: color-mix(in srgb, var(--lg-bg) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--lg-line);
}
.lg-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lg-brand-mark { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; color: var(--lg-ink); white-space: nowrap; }
.lg-brand-sep { width: 1px; height: 18px; background: var(--lg-line-hi); }
.lg-brand-k { font-family: var(--lg-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lg-red-ink); }
.lg-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--lg-chip); border: 1px solid var(--lg-line); }
.lg-tab {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
    background: transparent; color: var(--lg-mute); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.lg-tab:hover { color: var(--lg-ink); }
.lg-tab.is-on { background: var(--lg-panel); color: var(--lg-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--lg-line-hi); }
.lg-tab.is-on svg { color: var(--lg-red-ink); }
.lg-acts { display: flex; justify-content: flex-end; gap: 8px; }
.lg-ib {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--lg-line); background: var(--lg-chip); color: var(--lg-ink); cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.lg-ib:hover { border-color: var(--lg-line-hi); }
.lg-close:hover { background: var(--lg-red); border-color: var(--lg-red); color: #fff; }
.lg-ib:focus-visible, .lg-tab:focus-visible, .lg-btn:focus-visible, .lg a:focus-visible, .lg select:focus-visible { outline: 2px solid var(--lg-red); outline-offset: 2px; }
.lg-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.lg-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--lg-red), #ff5a3c); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.08s linear; }

/* ── the page ── */
.lg-scroll { overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; }
.lg-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; max-width: 1160px; margin: 0 auto; padding: 56px 40px 120px; }
.lg-toc { position: sticky; top: 40px; align-self: start; max-height: calc(100vh - 150px); overflow-y: auto; padding-right: 6px; }
.lg-toc-h { font-family: var(--lg-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lg-mute); margin: 6px 0 14px 12px; }
.lg-toc-l { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--lg-line); }
.lg-toc-l a {
    position: relative; display: flex; gap: 10px; padding: 7px 10px 7px 14px; margin-left: -1px;
    border-left: 2px solid transparent; color: var(--lg-mute); text-decoration: none; font-size: 13px; line-height: 1.4;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lg-toc-l a:hover { color: var(--lg-ink); }
.lg-toc-l a.is-on { color: var(--lg-ink); border-left-color: var(--lg-red); background: linear-gradient(90deg, var(--lg-red-soft), transparent 80%); }
.lg-toc-l .lg-n { font-family: var(--lg-mono); font-size: 11px; color: var(--lg-mute); padding-top: 1px; }
.lg-toc-l a.is-on .lg-n { color: var(--lg-red-ink); }

.lg-doc { max-width: 740px; min-width: 0; }
.lg-eyebrow { font-family: var(--lg-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lg-red-ink); margin-bottom: 14px; }
.lg-doc h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; color: var(--lg-ink); }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.lg-meta span { font-size: 12px; font-weight: 500; color: var(--lg-mute); padding: 5px 11px; border-radius: 999px; background: var(--lg-chip); border: 1px solid var(--lg-line); }
.lg-jump { display: none; }

.lg-sum {
    position: relative; margin: 0 0 48px; padding: 24px 26px 18px; border-radius: 16px;
    background: var(--lg-panel); border: 1px solid var(--lg-line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.45);
}
.lg[data-theme="light"] .lg-sum { box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.18); }
.lg-sum::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lg-red); }
.lg-sum h2 { margin: 0 0 12px; font-family: var(--lg-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lg-ink); }
.lg-sum ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.lg-sum li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.6; color: var(--lg-body); }
.lg-sum li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--lg-red); transform: rotate(45deg); }
.lg-sum p { margin: 14px 0 0; font-size: 12px; color: var(--lg-mute); }

.lg-sec { padding-top: 8px; margin-bottom: 40px; scroll-margin-top: 20px; }
.lg-sec h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font-size: 21px; font-weight: 750; letter-spacing: -0.015em; line-height: 1.3; color: var(--lg-ink); }
.lg-sec h2 .lg-n { font-family: var(--lg-mono); font-size: 12px; font-weight: 600; color: var(--lg-red-ink); letter-spacing: 0.04em; transform: translateY(-2px); }
.lg-sec h3 { margin: 22px 0 8px; font-size: 15px; font-weight: 700; color: var(--lg-ink); }
.lg-sec p, .lg-sec li { font-size: 15.5px; line-height: 1.78; color: var(--lg-body); }
.lg-sec p { margin: 0 0 14px; }
.lg-sec ul, .lg-sec ol { margin: 0 0 16px; padding-left: 0; list-style: none; }
.lg-sec li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.lg-sec ul > li::before { content: ""; position: absolute; left: 4px; top: 0.78em; width: 5px; height: 5px; border-radius: 50%; background: var(--lg-mute); }
.lg-sec b, .lg-sec strong { color: var(--lg-ink); font-weight: 650; }
.lg-sec .lg-caps { font-size: 14px; letter-spacing: 0.01em; }
.lg a { color: var(--lg-red-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* The sites style bare headings, lists and links globally; these win back
   the reader's own look (specificity .lg + class beats a bare element). */
.lg .lg-toc-l a { color: var(--lg-mute); text-decoration: none; }
.lg .lg-toc-l a:hover, .lg .lg-toc-l a.is-on { color: var(--lg-ink); }
.lg h1, .lg h2, .lg h3 { font-family: inherit; text-transform: none; text-shadow: none; background: none; -webkit-text-fill-color: currentColor; }
.lg .lg-sum h2 { text-transform: uppercase; }
.lg .lg-jump select { width: 100%; max-width: 100%; min-width: 0; margin: 0; }
.lg ul { margin-top: 0; }
.lg li { list-style: none; }
.lg-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 14px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--lg-line); line-height: 1.55; }
.lg-table th { font-family: var(--lg-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lg-mute); }
.lg-table td:first-child { color: var(--lg-ink); font-weight: 600; white-space: nowrap; }

.lg-end { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--lg-line); }
.lg-contact-h { font-family: var(--lg-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lg-mute); margin-bottom: 8px; }
.lg-contact p { margin: 0 0 4px; font-size: 14px; line-height: 1.6; }
.lg-contact b { color: var(--lg-ink); }
.lg-end-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.lg-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px;
    background: var(--lg-red); border: 1px solid var(--lg-red); color: #fff !important; text-decoration: none !important;
    font-size: 13.5px; font-weight: 650; cursor: pointer; transition: filter 0.15s, transform 0.15s;
}
.lg-btn:hover { filter: brightness(1.08); }
.lg-btn.is-ghost { background: transparent; border-color: var(--lg-line-hi); color: var(--lg-ink) !important; }

.lg-scroll::-webkit-scrollbar, .lg-toc::-webkit-scrollbar { width: 10px; }
.lg-scroll::-webkit-scrollbar-thumb, .lg-toc::-webkit-scrollbar-thumb { background: var(--lg-line-hi); border-radius: 10px; border: 3px solid var(--lg-bg); }

/* ── narrower screens ── */
@media (max-width: 1000px) {
    .lg-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 36px 22px 96px; }
    .lg-toc { display: none; }
    .lg-doc { margin: 0 auto; }
    .lg-jump { display: flex; flex-direction: column; gap: 6px; margin: -16px 0 28px; }
    .lg-jump span { font-family: var(--lg-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lg-mute); }
    .lg-jump select {
        appearance: none; -webkit-appearance: none; height: 44px; padding: 0 40px 0 14px; border-radius: 12px;
        border: 1px solid var(--lg-line-hi); background-color: var(--lg-panel); color: var(--lg-ink); font: inherit; font-size: 14px;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
    }
}
@media (max-width: 720px) {
    .lg-top { grid-template-columns: 1fr auto; height: auto; padding: 10px 16px; row-gap: 10px; }
    .lg-brand { grid-column: 1; grid-row: 1; }
    .lg-acts { grid-column: 2; grid-row: 1; }
    .lg-tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
    .lg-tab { flex: 1; justify-content: center; padding: 0 10px; }
    .lg-wrap { padding: 28px 16px 80px; }
    .lg-sec p, .lg-sec li { font-size: 15px; }
    .lg-table td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .lg, .lg-progress i { transition: none; }
}

/* ── print: the document alone ── */
@media print {
    body > *:not(.lg) { display: none !important; }
    .lg { position: static; display: block; background: #fff; color: #000; opacity: 1; transform: none; }
    .lg-top, .lg-toc, .lg-jump, .lg-end-acts { display: none !important; }
    .lg-scroll { overflow: visible; }
    .lg-wrap { display: block; padding: 0; max-width: none; }
    .lg-doc h1, .lg-sec h2, .lg-sec b, .lg-contact b { color: #000; }
    .lg-sec p, .lg-sec li, .lg-sum li { color: #222; }
    .lg-sum { box-shadow: none; border-color: #ccc; }
    .lg-sec { break-inside: avoid-page; }
}
