@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/ibm-plex/IBMPlexSans-Regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  src: url("/assets/fonts/ibm-plex/IBMPlexSans-SemiBold.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/ibm-plex/IBMPlexSans-Bold.woff2") format("woff2");
}

:root {
  --ink: #111621;
  --muted: #687286;
  --line: #e4e8f0;
  --blue: #2d50e7;
  --navy: #101a36;
  --surface: #f5f6fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff; color: var(--ink); font-family: "IBM Plex Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(45, 80, 231, 0.28); outline-offset: 4px; }

.legal-shell { width: min(1180px, calc(100% - 96px)); margin: 0 auto; }
.legal-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(225, 229, 238, 0.88); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(18px); }
.header-row { display: flex; min-height: 72px; align-items: center; justify-content: space-between; }
.header-row img { width: 72px; }
.header-row > a:last-child { color: #657084; font-size: 11px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 18px; color: #657084; font-size: 11px; font-weight: 700; }
.language-switch { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue); transition: border-color 160ms ease, box-shadow 160ms ease; }
.language-switch:hover { border-color: rgba(45, 80, 231, 0.42); box-shadow: 0 6px 20px rgba(45, 80, 231, 0.1); }

.legal-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #f7f8fc 0%, #f1f4fb 100%); }
.legal-hero::before { position: absolute; inset: 0; background-image: radial-gradient(rgba(45, 80, 231, 0.12) 0.7px, transparent 0.7px); background-size: 22px 22px; content: ""; mask-image: linear-gradient(90deg, #000, transparent 72%); }
.hero-grid { position: relative; display: grid; min-height: 390px; grid-template-columns: minmax(0, 1fr); align-items: center; padding-top: 76px; padding-bottom: 76px; }
.legal-kicker { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.legal-hero h1 { max-width: 1000px; margin: 18px 0; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.legal-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.updated { margin-top: 24px; color: #7c8597; font-size: 10px; }
.updated strong { color: #414a5d; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 75px; padding-top: 80px; padding-bottom: 100px; }
.legal-layout aside { position: sticky; top: 105px; max-height: calc(100vh - 125px); overflow: auto; }
.legal-layout aside > span { display: block; margin-bottom: 18px; color: #9aa2b1; font-size: 9px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.legal-layout nav { display: grid; border-top: 1px solid var(--line); }
.legal-layout nav a { padding: 10px 0; border-bottom: 1px solid var(--line); color: #6d7688; font-size: 9.5px; line-height: 1.4; transition: color 150ms ease, padding 150ms ease; }
.legal-layout nav a:hover { padding-left: 6px; color: var(--blue); }

.legal-content { min-width: 0; }
.legal-content article { padding: 0 0 48px; scroll-margin-top: 105px; }
.legal-content article + article { padding-top: 48px; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 22px; font-size: clamp(24px, 3vw, 31px); line-height: 1.2; letter-spacing: -0.035em; }
.legal-content h3 { margin: 30px 0 12px; color: #26324a; font-size: 17px; letter-spacing: -0.02em; }
.legal-content p,
.legal-content li { color: #5f697c; font-size: 13.5px; line-height: 1.78; }
.legal-content p { margin: 0 0 17px; }
.legal-content ul,
.legal-content ol { display: grid; gap: 8px; margin: 0 0 22px; padding-left: 22px; }
.legal-content li::marker { color: var(--blue); font-weight: 800; }
.legal-content blockquote { margin: 26px 0; padding: 22px 24px; border-left: 3px solid var(--blue); border-radius: 0 13px 13px 0; background: #f3f5fd; color: #34415c; font-size: 13px; font-weight: 600; line-height: 1.7; }
.document-link { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(45, 80, 231, 0.25); text-underline-offset: 4px; }

.related-documents { margin-top: 10px; padding: 34px; border-radius: 22px; background: var(--navy); color: #fff; }
.related-documents h2 { margin-bottom: 24px; color: #94a8f7; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.related-documents > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 13px; background: rgba(255, 255, 255, 0.12); }
.related-documents a { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; background: var(--navy); color: #dbe3fb; font-size: 10.5px; line-height: 1.4; transition: background 160ms ease; }
.related-documents a:hover { background: #17264d; }
.related-documents a span { color: #8fa6ff; }

.legal-footer { padding: 55px 0; border-top: 1px solid var(--line); background: var(--surface); }
.legal-footer .legal-shell { display: grid; grid-template-columns: 100px 1fr auto; align-items: end; gap: 40px; }
.legal-footer img { width: 72px; }
.legal-footer p { margin: 0; color: #717b8d; font-size: 10px; line-height: 1.65; }
.legal-footer span { color: #949cad; font-size: 9px; }

@media (max-width: 820px) {
  .legal-shell { width: calc(100% - 48px); }
  .hero-grid { min-height: 0; }
  .legal-layout { grid-template-columns: 1fr; gap: 44px; }
  .legal-layout aside { position: static; max-height: none; }
  .legal-layout nav { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

@media (max-width: 560px) {
  .legal-shell { width: calc(100% - 32px); }
  .header-row { min-height: 64px; }
  .header-row > a:last-child { font-size: 10px; }
  .header-actions { gap: 10px; font-size: 10px; }
  .header-actions > a:last-child { display: none; }
  .hero-grid { padding-top: 58px; padding-bottom: 58px; }
  .legal-hero h1 { font-size: 34px; line-height: 1.08; }
  .legal-hero p { font-size: 13.5px; }
  .legal-layout { padding-top: 55px; padding-bottom: 72px; }
  .legal-layout nav { grid-template-columns: 1fr; }
  .legal-content article { padding-bottom: 36px; }
  .legal-content article + article { padding-top: 36px; }
  .legal-content p, .legal-content li { font-size: 13px; }
  .related-documents { padding: 24px 18px; }
  .related-documents > div { grid-template-columns: 1fr; }
  .legal-footer .legal-shell { grid-template-columns: 80px 1fr; }
  .legal-footer span { grid-column: 1 / -1; }
}

@media print {
  .legal-header, .legal-layout aside, .legal-footer { display: none; }
  .legal-hero { background: #fff; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; padding: 20px 0 40px; }
  .legal-layout { display: block; width: 100%; padding: 20px 0; }
  .legal-content article { break-inside: avoid; }
  .related-documents { display: none; }
}
