/* Desktop and no-JavaScript readers retain the document's natural layout. */
.legal-reader[hidden], main.legal-original[hidden] { display: none !important; }
html.legal-paged, html.legal-paged body { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
.legal-reader {
  position: fixed; z-index: 1; box-sizing: border-box; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
  background: var(--ink,#08111a); color: var(--paper,#eef3f5); overflow: hidden;
  font: 16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
.legal-reader *, .legal-reader *::before, .legal-reader *::after { box-sizing: border-box; }
.legal-reader-head { flex: 0 0 48px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.legal-reader a { color: var(--accent,#ffb83e); overflow-wrap: anywhere; }
.legal-back { display: flex; align-items: center; gap: 6px; min-height: 48px; min-width: 0; max-width: calc(100% - 56px); font-size: 13px; line-height: 1.15; text-decoration: none; }
.legal-reader button { min-height: 48px; min-width: 48px; border: 1px solid var(--line); border-radius: 6px; background: #102332; color: var(--paper); font: inherit; cursor: pointer; }
.legal-reader button:disabled { opacity: .35; cursor: default; }
.legal-reader button:focus-visible, .legal-reader a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.legal-menu-toggle { flex: 0 0 48px; padding: 0; font-size: 26px !important; }
.legal-page-content { position: relative; flex: 1 1 0; min-height: 0; min-width: 0; overflow: hidden; padding: 8px 12px; }
.legal-font-probe { position: absolute; top: 0; left: 0; visibility: hidden; pointer-events: none; font: inherit; white-space: nowrap; }
.legal-page-content :is(p,h1,h2,ul,li) { margin: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.legal-page-content .legal-piece { margin: 0 0 8px; }
.legal-page-content h1 { font-size: 24px; line-height: 1.2; }
.legal-page-content h2 { font-size: 20px; line-height: 1.2; }
.legal-page-content ul { padding-left: 22px; }
.legal-page-content li.legal-continued { list-style: none; }
.legal-page-content .legal-menu-link, .legal-page-content .legal-section-choice { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 8px 10px; text-align: left; text-decoration: none; font: inherit; }
.legal-page-content .legal-menu-link[aria-current="page"] { border: 1px solid var(--accent); border-radius: 6px; }
.legal-reader-foot { flex: 0 0 auto; padding: 4px 8px; border-top: 1px solid var(--line); background: #0f202d; }
.legal-section-position { margin: 0 0 4px; font-size: 12px; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.legal-page-controls { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; gap: 6px; }
.legal-page-controls button { padding: 0; font-size: 24px; }
.legal-page-index { min-width: 0; font-size: 14px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
@media print { html.legal-paged, html.legal-paged body { width: auto; height: auto; overflow: visible; } .legal-reader { display: none; } main.legal-original[hidden] { display: block !important; } }
