:root { color-scheme: light; --ink: #0f172a; --muted: #52627a; --blue: #245ce8; --line: #dfe7f3; }
* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; background: #f8fafc; color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 5px; border-radius: 3px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 5; padding: 10px 20px; background: white; border: 2px solid var(--blue); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.legal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px max(24px, calc((100% - 1200px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.legal-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 24px; font-weight: 700; text-decoration: none; }
.legal-brand img { object-fit: contain; }
.legal-header nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 600; }
.legal-header nav a { color: var(--muted); text-decoration: none; }
.legal-header nav a[aria-current] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
.legal-header nav .back-home { padding-left: 26px; border-left: 1px solid var(--line); }
.legal-layout { width: min(1200px, calc(100% - 48px)); margin: 48px auto 64px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-sidebar { position: sticky; top: 116px; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); overflow-y: auto; padding: 4px 12px 12px 4px; font-size: 13px; scrollbar-width: thin; }
.legal-toc summary { cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); padding: 8px 0; }
.legal-toc ol { list-style: none; padding: 0; margin: 12px 0 24px; }
.legal-toc li + li { margin-top: 4px; }
.legal-toc a { display: block; padding: 5px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; line-height: 1.6; }
.legal-toc a:hover { background: #eaf0fe; color: var(--blue); }
.legal-pdf { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid #cddcff; border-radius: 10px; background: white; text-decoration: none; font-weight: 600; }
.legal-source { margin: 8px 14px 0; color: var(--muted); font-size: 12px; }
.legal-document { min-width: 0; padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: white; }
.legal-document-header { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
h1 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 45px); line-height: 1.2; letter-spacing: -.045em; }
.legal-company { color: var(--muted); font-size: 15px; }
.legal-date { display: inline-block; margin: 16px 0 24px; padding: 5px 12px; border-radius: 7px; background: #edf3ff; color: #214caf; font-size: 12px; font-weight: 600; }
.legal-contact { font-size: 14px; color: var(--muted); }
.legal-contact p { margin: 5px 0; }
.legal-document section { margin-top: 36px; scroll-margin-top: 110px; }
h2 { margin: 0 0 16px; font-size: 21px; line-height: 1.5; letter-spacing: -.025em; }
h3 { margin: 24px 0 7px; font-size: 16px; line-height: 1.5; }
p { margin: 0 0 16px; overflow-wrap: anywhere; }
.legal-document section p { color: #38465b; font-size: 16px; }
.legal-document section p:last-child { margin-bottom: 0; }
.legal-footer { width: min(1200px, calc(100% - 48px)); margin: 0 auto 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; font-size: 13px; }
.legal-footer a { text-decoration: none; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .legal-header nav { gap: 18px; }
  .legal-header nav .back-home { display: none; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 135px; }
  .legal-header { flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
  .legal-brand { font-size: 21px; }
  .legal-brand img { width: 24px; height: 32px; }
  .legal-header nav { flex-wrap: wrap; gap: 8px 20px; font-size: 12px; }
  .legal-layout { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 24px auto 40px; }
  .legal-sidebar { position: static; max-height: none; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
  .legal-toc ol { max-height: 210px; overflow-y: auto; margin-bottom: 16px; }
  .legal-source { margin-bottom: 0; }
  .legal-document { padding: 26px 22px; border-radius: 16px; }
  .legal-document section { scroll-margin-top: 135px; }
  h2 { font-size: 20px; }
  .legal-footer { width: calc(100% - 40px); }
}
@media print {
  body { background: white; }
  .skip-link, .legal-header, .legal-sidebar, .legal-footer { display: none; }
  .legal-layout { display: block; width: 100%; margin: 0; }
  .legal-document { border: 0; padding: 0; }
  h2, h3 { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}
