/* Legal documents: shared brand, quiet reading surface, no remote dependencies. */
html { scroll-padding-top: 24px; }
body.legal-page { background: var(--page-bg); }
.legal-page { --paper: #0c1729; --soft: #111f35; --rule: #243753; --accent: #72baff; }
html[data-theme="light"] .legal-page { --paper: #fff; --soft: #f3f7fd; --rule: #dce5f2; --accent: #205cc5; }
.legal-page [hidden] { display: none !important; }
.legal-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 27px; border-bottom: 1px solid var(--rule); }
.legal-header .brand-picture img { width: 48px; height: 48px; }
.legal-header .brand-text strong { font-size: 23px; }
.legal-header .brand-text small { font-size: 12px; color: var(--muted); }
.legal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.legal-home, .legal-footer a { color: var(--muted); text-decoration: none; font-size: 13px; }
.legal-home { display: flex; align-items: center; gap: 8px; }
.legal-home svg { width: 19px; height: 19px; }
html[dir="rtl"] .legal-home svg { transform: rotate(180deg); }
.legal-theme { border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--text); width: 46px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.legal-theme svg { width: 25px; height: 25px; grid-area: 1 / 1; }
html[data-theme="dark"] .legal-theme .moon, html[data-theme="light"] .legal-theme .sun { display: none; }
.legal-language { display: flex; direction: ltr; background: var(--paper); border: 1px solid var(--rule); padding: 4px; border-radius: 12px; gap: 3px; }
.legal-language a { padding: 7px 11px; min-height: 34px; border-radius: 8px; color: var(--muted); font-size: 13px; text-decoration: none; display: grid; place-items: center; }
.legal-language a[aria-current="true"] { color: #fff; background: #285ee0; }
.legal-doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 28px 0; }
.legal-doc-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 10px; text-decoration: none; color: var(--muted); border: 1px solid transparent; font-size: 14px; }
.legal-doc-nav svg { width: 19px; height: 19px; }
.legal-doc-nav a[aria-current="page"] { color: var(--accent); border-color: var(--rule); background: var(--paper); }
.legal-hero { padding: 35px 0 33px; max-width: 820px; }
.legal-eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .06em; margin: 0 0 12px; }
.legal-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.4; margin: 0 0 14px; letter-spacing: -.025em; }
.legal-lead { color: var(--muted); line-height: 1.95; margin: 0; max-width: 70ch; font-size: 15px; }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.legal-scope { display: inline-flex; align-items: center; gap: 7px; }
.legal-scope::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 48px; }
.legal-sidebar { position: sticky; top: 24px; padding-top: 13px; }
.legal-sidebar h2 { margin: 0 0 14px; font-size: 14px; }
.legal-toc { margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--rule); }
.legal-toc a { display: flex; align-items: baseline; gap: 10px; color: var(--muted); text-decoration: none; font-size: 12px; line-height: 1.6; padding: 7px 14px; }
.legal-toc .toc-number { color: var(--accent); font-size: 11px; }
.legal-sidebar .legal-print { margin-top: 23px; }
.legal-print { display: flex; align-items: center; gap: 9px; background: none; border: 1px solid var(--rule); padding: 10px 14px; border-radius: 10px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.legal-print svg { width: 18px; height: 18px; }
.legal-paper { min-width: 0; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); padding: 12px 38px 4px; box-shadow: 0 6px 30px rgba(10, 25, 48, .035); }
.legal-section { padding-block: 25px 26px; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.legal-section:last-child { border: 0; }
.legal-section h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 13px; font-size: 18px; line-height: 1.65; }
.legal-section-number { color: var(--accent); font-size: 12px; font-weight: 500; flex-shrink: 0; }
.legal-section p, .legal-section li { font-size: 14px; line-height: 2; color: var(--muted); }
.legal-section p { margin: 10px 0; }
.legal-section ul, .legal-section ol { padding-inline-start: 21px; margin: 8px 0; }
.legal-section strong { font-weight: 700; color: var(--text); }
.legal-section a { color: var(--accent); text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-section bdi, .legal-footer bdi { overflow-wrap: anywhere; }
.legal-callout { background: var(--soft); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; margin-top: 18px; }
.legal-callout p:first-child { margin-top: 0; }
.legal-callout .legal-email { font-size: 15px; display: inline-block; font-weight: 600; }
.legal-callout .legal-action { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 16px; border-radius: 9px; background: #285ee0; color: #fff; text-decoration: none; font-size: 13px; margin-top: 6px; }
.legal-footer { border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0 35px; font-size: 12px; color: var(--muted); }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-page a:hover { color: var(--accent); }
.legal-language a[aria-current="true"]:hover, .legal-callout .legal-action:hover { color: #fff; background: #194bc2; }
.legal-page :is(a, button):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.legal-skip { position: fixed; inset-block-start: -100px; inset-inline-start: 16px; z-index: 200; padding: 12px 20px; background: var(--paper); color: var(--text); border: 2px solid var(--accent); border-radius: 8px; }
.legal-skip:focus { inset-block-start: 12px; }
@media (max-width: 850px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .legal-sidebar { position: static; padding: 18px; border: 1px solid var(--rule); border-radius: 12px; }
  .legal-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-sidebar .legal-print { margin-top: 15px; }
  .legal-header { align-items: flex-start; }
  .legal-tools { justify-content: flex-end; gap: 10px; }
  .legal-home { flex-basis: 100%; justify-content: flex-end; }
}
@media (max-width: 560px) {
  .legal-shell { width: calc(100% - 30px); }
  .legal-header { flex-wrap: wrap; gap: 20px; padding-block: 20px; }
  .legal-header .brand-text strong { font-size: 21px; }
  .legal-tools { width: 100%; justify-content: flex-start; gap: 8px; }
  .legal-home { flex-basis: auto; margin-inline-end: auto; font-size: 12px; }
  .legal-language a { padding: 7px 9px; font-size: 12px; }
  .legal-theme { width: 42px; }
  .legal-doc-nav { gap: 4px; margin-top: 22px; }
  .legal-doc-nav a { font-size: 12px; padding: 10px; }
  .legal-hero { padding-block: 27px; }
  .legal-hero h1 { font-size: 30px; }
  .legal-lead { font-size: 14px; }
  .legal-paper { padding-inline: 20px; border-radius: 14px; }
  .legal-section h2 { font-size: 17px; gap: 9px; }
  .legal-section p, .legal-section li { font-size: 14px; }
  .legal-toc a { padding: 7px 9px; }
  .legal-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .legal-home { flex-basis: 100%; justify-content: flex-start; }
  .legal-toc { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root, html[data-theme] { --text: #000; --muted: #222; }
  body.legal-page { background: #fff; color: #000; }
  .legal-shell { width: 100%; }
  .legal-tools, .legal-doc-nav, .legal-sidebar, .legal-skip, .legal-footer nav, .legal-action { display: none !important; }
  .legal-layout { display: block; padding: 0; }
  .legal-hero { padding: 18px 0; }
  .legal-hero h1 { font-size: 26px; }
  .legal-paper { padding: 0; border: 0; box-shadow: none; background: #fff; }
  .legal-section { padding-block: 14px; border-color: #ddd; }
  .legal-section h2 { break-after: avoid; }
  .legal-section p, .legal-section li { font-size: 11pt; line-height: 1.7; orphans: 3; widows: 3; }
  .legal-callout { background: #fff; border-color: #bbb; }
  .legal-section a, .legal-section-number { color: #17448c; }
}
