@font-face { font-family: 'Portfolio Display'; src: url('font/Gotham Ultra Regular.otf') format('opentype'); font-display: swap; }
:root { color-scheme: dark; --bg: #0b101c; --panel: #111b2d; --text: #f2f5ff; --muted: #abb8cf; --line: #acbfd526; --accent: #74e1c2; --coral: #ffac99; --header: #0b101cde; }
:root[data-theme="light"] { color-scheme: light; --bg: #f5f5f0; --panel: #ffffff; --text: #182537; --muted: #53647a; --line: #243b5629; --accent: #087e6a; --coral: #ac493d; --header: #f5f5f0e8; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font: 16px/1.75 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; }
::selection { background: #74e1c24d; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
button, summary { font: inherit; }
button { color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.legal-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.legal-skip { position: fixed; z-index: 50; top: 10px; left: 15px; padding: 9px 16px; background: var(--accent); color: var(--bg); border-radius: 6px; transform: translateY(-180%); }
.legal-skip:focus { transform: none; }
.legal-header { position: sticky; top: 0; z-index: 10; background: var(--header); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.legal-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-wordmark { color: var(--text); font-family: 'Portfolio Display', ui-sans-serif, system-ui, sans-serif; font-size: 1rem; text-decoration: none; letter-spacing: -.025em; }
.legal-header-actions { display: flex; align-items: center; gap: 22px; }
.legal-back { color: var(--muted); font-size: .8rem; text-decoration: none; }
.legal-theme { min-width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); background: none; border-radius: 50%; display: grid; place-items: center; }
.legal-theme svg { width: 18px; height: 18px; }
.legal-progress { position: absolute; bottom: -1px; left: 0; height: 2px; width: var(--reading-progress, 0%); background: linear-gradient(90deg, var(--accent), #9f91ff); pointer-events: none; }
.legal-hero { position: relative; padding-block: 66px 46px; border-bottom: 1px solid var(--line); overflow: hidden; }
.legal-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 95% 20%, #9f91ff1c, transparent 50%); z-index: -1; }
.legal-eyebrow { margin: 0 0 24px; color: var(--accent); font: 600 10px/1.6 ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; }
.legal-hero-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 25px; }
.legal-hero h1 { margin: 0; max-width: 900px; font-size: clamp(3.2rem, 6.6vw, 6.1rem); letter-spacing: -.065em; line-height: 1.08; font-weight: 650; }
.legal-hero h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.legal-document-number { width: 112px; height: 112px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-content: center; text-align: center; font: 400 2.5rem/1.1 Georgia, serif; color: var(--coral); transform: rotate(-10deg); }
.legal-document-number small { display: block; margin-top: 6px; font: 9px/1.5 ui-monospace, monospace; letter-spacing: .15em; }
.legal-hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 35px; color: var(--muted); font-size: .8rem; }
.legal-print { padding: 8px 15px; border: 1px solid var(--line); border-radius: 30px; background: transparent; font-size: .75rem; }
.legal-documents { display: flex; flex-wrap: wrap; gap: 9px; padding-block: 23px; border-bottom: 1px solid var(--line); }
.legal-documents a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .78rem; text-decoration: none; }
.legal-documents a[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); border-color: var(--accent); }
.legal-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: clamp(35px, 6vw, 85px); align-items: start; padding-block: 45px 80px; }
.legal-sidebar { position: sticky; top: 112px; min-width: 0; }
.legal-contents { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.legal-contents summary { cursor: pointer; padding: 15px 18px; color: var(--text); font-size: .8rem; font-weight: 650; }
.legal-toc { max-height: calc(100dvh - 230px); overflow-y: auto; padding: 0 9px 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.legal-toc a { display: block; padding: 9px; border-left: 2px solid transparent; border-radius: 0 5px 5px 0; color: var(--muted); text-decoration: none; font-size: .75rem; line-height: 1.65; }
.legal-toc a:hover, .legal-toc a[aria-current="location"] { color: var(--accent); border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.legal-help { padding: 22px 0; font-size: .75rem; color: var(--muted); }
.legal-help p { margin: 0 0 5px; }
.legal-body { min-width: 0; max-width: 78ch; }
.legal-body section { scroll-margin-top: 110px; padding: 0 0 38px; margin-bottom: 37px; border-bottom: 1px solid var(--line); }
.legal-body h2 { margin: 0 0 21px; color: var(--text); font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.3; letter-spacing: -.035em; font-weight: 650; }
.legal-body section:first-child h2 { font: 600 .78rem/1.7 ui-monospace, monospace; letter-spacing: 0; color: var(--accent); }
.legal-body h3 { margin: 29px 0 14px; font-size: 1.03rem; line-height: 1.5; color: var(--text); font-weight: 650; }
.legal-body p, .legal-body li { color: var(--muted); font-size: .96rem; line-height: 1.95; overflow-wrap: break-word; }
.legal-body p { margin: 0 0 19px; }
.legal-body strong { color: var(--text); font-weight: 650; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin: 17px 0 24px; }
.legal-body li { padding-left: 5px; margin-bottom: 10px; }
.legal-body li::marker { color: var(--accent); }
.legal-body a { overflow-wrap: anywhere; }
.legal-footer { border-top: 1px solid var(--line); padding-block: 35px; background: var(--panel); }
.legal-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.legal-footer-brand { display: flex; align-items: center; gap: 15px; }
.legal-footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.legal-footer-brand p { margin: 0; color: var(--muted); font-size: .73rem; }
.legal-footer-brand strong { display: block; color: var(--text); font-weight: 600; }
.legal-footer a { font-size: .78rem; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 30px; padding-top: 25px; }
  .legal-sidebar { position: static; }
  .legal-toc { max-height: 300px; }
  .legal-help { display: none; }
  .legal-body { max-width: none; }
  .legal-document-number { width: 80px; height: 80px; font-size: 1.8rem; }
}
@media (max-width: 560px) {
  .legal-shell { width: calc(100% - 36px); }
  .legal-header-inner { min-height: 68px; gap: 15px; }
  .legal-header-actions { gap: 13px; }
  .legal-back { font-size: .7rem; }
  .legal-wordmark { font-size: .85rem; }
  .legal-hero { padding-top: 45px; }
  .legal-document-number { display: none; }
  .legal-hero-row { grid-template-columns: 1fr; }
  .legal-hero h1 { font-size: clamp(2.7rem, 11vw, 4.2rem); }
  .legal-documents a { font-size: .7rem; padding: 8px 10px; }
  .legal-hero-bottom { align-items: start; }
  .legal-print { white-space: nowrap; }
  .legal-body p, .legal-body li { font-size: .92rem; line-height: 1.85; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { --bg: #fff; --text: #111; --muted: #333; --line: #ccc; --accent: #164e43; }
  body { font-size: 11pt; }
  .legal-header, .legal-sidebar, .legal-documents, .legal-print, .legal-footer, .legal-document-number { display: none; }
  .legal-shell { width: 100%; }
  .legal-hero { padding: 10px 0 20px; }
  .legal-hero h1 { font-size: 30pt; }
  .legal-layout { display: block; padding: 25px 0; }
  .legal-body { max-width: none; }
  .legal-body section { padding-bottom: 15px; margin-bottom: 15px; }
  h2, h3 { break-after: avoid; }
  a { color: #111; }
}
