:root {
  --bg: #F4F4F2; --surface: #FFFFFF; --ink: #050506; --muted: #5C5C64; --faint: #8A8A92;
  --line: #E3E3DF; --line2: #D4D4CF; --blue: #2563EB; --blue-soft: #E8EFFD; --green: #16A34A;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --display: "Instrument Sans", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050506; --surface: #0E0E11; --ink: #F2F2F4; --muted: #A3A3AC; --faint: #73737C;
    --line: #1E1E23; --line2: #2A2A31; --blue: #7CB4FF; --blue-soft: #0F1B33; --green: #4ADE80;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { height: 22px; width: auto; display: block; }
.sep { width: 1px; height: 18px; background: var(--line2); }
.tag { font: 500 15px/1 var(--display); color: var(--muted); }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { color: var(--ink); }
.top nav a.btn { color: var(--bg); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); text-decoration: none; font: 500 14px/1 var(--text); padding: 11px 16px; border-radius: 999px; white-space: nowrap; }
.btn:hover { opacity: .88; }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
h1 { font-size: clamp(40px, 6.2vw, 72px); letter-spacing: -0.045em; line-height: 1.02; max-width: 11ch; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 44ch; }
.upd { margin-top: 22px; font-size: 13px; color: var(--faint); }
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 24px; }
.glance li { display: flex; gap: 14px; padding: 18px 0; }
.glance li + li { border-top: 1px solid var(--line); }
.glance .ic { color: var(--blue); margin-top: 2px; }
.glance strong { display: block; font: 600 16px/1.35 var(--display); letter-spacing: -0.01em; }
.glance span { display: block; margin-top: 3px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }

/* Sections */
.sec { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.sec.last { padding-bottom: clamp(56px, 8vw, 96px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; }
.sub { margin-top: 12px; color: var(--muted); max-width: 60ch; }

/* Data map: the one visual moment */
.map { margin: clamp(28px, 4vw, 44px) 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3.4vw, 40px); }
.lane { display: grid; grid-template-columns: 1fr minmax(60px, .5fr) 1fr minmax(60px, .5fr) 1.1fr; align-items: center; }
.node { display: grid; justify-items: start; gap: 2px; padding: 18px 20px; border: 1px solid var(--line2); border-radius: var(--r-md); background: var(--bg); }
.node .ic { width: 22px; height: 22px; margin-bottom: 10px; color: var(--muted); }
.node strong { font: 600 17px/1.25 var(--display); letter-spacing: -0.01em; }
.node span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.node.home { background: var(--ink); color: var(--bg); border-color: var(--ink); position: relative; }
.node.home .ic, .node.home span { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.node.home::after { content: ""; position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 22%, transparent); }
.link { position: relative; height: 40px; display: grid; place-items: center; }
.link i { position: absolute; left: 8px; right: 8px; top: 50%; height: 0; border-top: 1.5px dashed var(--line2); }
.link i::after { content: ""; position: absolute; right: -2px; top: -5px; width: 8px; height: 8px; border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint); transform: rotate(45deg); }
.link em { position: relative; font: 500 11.5px/1 var(--text); font-style: normal; color: var(--blue); background: var(--surface); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); }
.drop { margin-inline-start: auto; width: 26.83%; height: 28px; position: relative; }
.drop::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px dashed var(--line2); }
.out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 18px; border-top: 1.5px dashed var(--line2); }
.out li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.out .ic { width: 18px; height: 18px; color: var(--muted); margin-bottom: 6px; }
.out strong { font: 600 15px/1.3 var(--display); }
.out span { font-size: 13px; color: var(--muted); }
.map figcaption { margin-top: 22px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .lane { grid-template-columns: 1fr; }
  .link { height: 44px; }
  .link i { left: 50%; right: auto; top: 6px; bottom: 6px; height: auto; border-top: 0; border-left: 1.5px dashed var(--line2); }
  .link i::after { left: -5px; right: auto; top: auto; bottom: -2px; transform: rotate(135deg); }
  .drop { width: 100%; }
  .out { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 340px) { .out { grid-template-columns: 1fr; } }

/* Controls */
.ctls { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(32px, 5vw, 72px); }
.ctl h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ctl h3 .ic { color: var(--blue); }
.ctl li { display: flex; gap: 12px; padding: 12px 0; font-size: 15px; line-height: 1.55; }
.ctl li + li { border-top: 1px solid var(--line); }
.ck { width: 16px; height: 16px; margin-top: 4px; color: var(--green); }
@media (max-width: 760px) { .ctls { grid-template-columns: 1fr; } }

/* Subprocessors */
.tbl { margin-top: 28px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: start; padding: 16px 22px; vertical-align: top; }
thead th { font: 500 13px/1.2 var(--text); color: var(--faint); border-bottom: 1px solid var(--line); padding-top: 18px; padding-bottom: 14px; }
tbody th { font-weight: 600; width: 34%; }
tbody td { color: var(--muted); }
tbody td:nth-child(2) { width: 24%; white-space: nowrap; }
tbody tr + tr > * { border-top: 1px solid var(--line); }

/* Cookies */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); }
.prose { display: grid; gap: 14px; font-size: 16.5px; max-width: 62ch; }
.prose p:not(:last-child) { color: var(--muted); }
.tl { color: var(--blue); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; font-weight: 500; }
.tl:hover { text-decoration-color: currentColor; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Report */
.report { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: clamp(28px, 4.5vw, 48px); }
.report > div { max-width: 62ch; }
.report p { margin-top: 12px; color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.btn-inv { background: var(--bg); color: var(--ink); padding: 14px 20px; font-size: 15px; }

/* Docs */
.docs { margin-top: 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .docs { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.docs span { min-width: 0; }
.docs a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-weight: 500; font-size: 15px; transition: border-color .15s; }
.docs a:hover { border-color: var(--line2); }
.docs a > .ic:first-child { color: var(--muted); }
.docs .go { width: 16px; height: 16px; margin-inline-start: auto; color: var(--faint); }

/* Footer */
.foot { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .bar { min-height: 72px; flex-wrap: wrap; padding: 16px 0; }
.foot a { color: var(--ink); text-underline-offset: 3px; }

/* Language menu (no script) */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted); padding: 8px 10px; border-radius: 999px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.lang summary .ic { width: 16px; height: 16px; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; box-shadow: 0 12px 32px -12px rgb(0 0 0 / .18); z-index: 10; }
.top nav .lang a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.top nav .lang a:hover { background: var(--bg); }
.top nav .lang a[aria-current] { color: var(--blue); font-weight: 500; }

/* Right-to-left */
[dir="rtl"] body, [dir="rtl"] { font-family: "Noto Sans Arabic", var(--text); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .glance strong, [dir="rtl"] .node strong, [dir="rtl"] .out strong, [dir="rtl"] .tag { font-family: "Noto Sans Arabic", var(--display); letter-spacing: 0; }
[dir="rtl"] h1 { line-height: 1.25; max-width: 14ch; }
[dir="rtl"] h2 { line-height: 1.3; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .link i { transform: scaleX(-1); }
[dir="rtl"] .go { transform: scaleX(-1); }
[dir="rtl"] .logo { direction: ltr; }

/* Chinese, Japanese, Korean: no negative tracking, taller lines */
:lang(zh) h1, :lang(ja) h1, :lang(ko) h1 { letter-spacing: 0; line-height: 1.2; max-width: 14ch; font-size: clamp(36px, 5.2vw, 60px); }
:lang(zh) h2, :lang(ja) h2, :lang(ko) h2, :lang(zh) h3, :lang(ja) h3, :lang(ko) h3 { letter-spacing: 0; line-height: 1.3; }
:lang(zh) body, :lang(ja) body, :lang(ko) body { line-height: 1.75; }
:lang(ja) body { font-family: "Inter", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; }
:lang(zh) body { font-family: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
:lang(ko) body { font-family: "Inter", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }

/* Longer languages: let the hero title breathe */
:lang(de) h1, :lang(fr) h1, :lang(es) h1, :lang(it) h1, :lang(pt) h1, :lang(ru) h1 { max-width: 13ch; }
:lang(zh) h1, :lang(ja) h1, :lang(ko) h1 { max-width: 18em; font-size: clamp(34px, 4.6vw, 56px); text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
:lang(ko) { word-break: keep-all; }

/* Subprocessors as stacked rows on small screens */
@media (max-width: 640px) {
  .tbl table, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: auto !important; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tr { padding: 16px 18px; }
  .tbl tbody tr + tr { border-top: 1px solid var(--line); }
  .tbl tbody tr + tr > * { border-top: 0; }
  .tbl th, .tbl td { padding: 0; white-space: normal !important; }
  .tbl tbody th { margin-bottom: 4px; }
  .tbl td:nth-child(2) { font-size: 13px; color: var(--faint); margin-bottom: 2px; }
}
@media (max-width: 480px) { .top nav a.btn { display: none; } }
h1, h2 { hyphens: auto; overflow-wrap: break-word; }
:lang(ru) h1 { font-size: clamp(30px, 8vw, 64px); }
