:root {
  --ink: #0F1115;
  --body: #2D3238;
  --slate: #4A4F58;
  --muted: #4F5D73;
  --accent-text: #B83200;
  --accent-fill: #FB4B05;
  --paper: #F4F1EA;
  --panel: #EAE5D9;
  --line: #DDD7C9;
  --ok: #1E7B48;
  --gutter: 24px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bar { height: 4px; background: linear-gradient(90deg, #FB4B05 0%, #FE9A5E 24%, #F2D9B8 50%, #C6CFD8 74%, #0F1115 100%); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header and tabs */
header.site { border-bottom: 1px solid var(--line); }
.head { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { height: 26px; width: auto; display: block; }
.brand span { font-size: 13px; color: var(--muted); font-weight: 500; padding-left: 14px; border-left: 1px solid var(--line); line-height: 26px; }
.cta {
  display: inline-block; flex: none; margin-left: auto;
  background: var(--accent-fill); color: var(--ink);
  font-size: 13px; font-weight: 600; text-decoration: none;
  padding: 9px 16px; border-radius: 6px;
}
.cta:hover { background: #E94604; }
nav.tabs { border-bottom: 1px solid var(--line); }
nav.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
nav.tabs ul::-webkit-scrollbar { display: none; }
nav.tabs a { display: block; padding: 14px 0 12px; font-size: 13px; font-weight: 500; color: var(--slate); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
nav.tabs a:hover { color: var(--ink); }
nav.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Type */
.page-head { padding-top: 56px; padding-bottom: 40px; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; margin: 0 0 14px; }
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; margin: 0 0 18px; max-width: 22ch; text-wrap: balance; }
h1 .pair { color: var(--accent-text); }
.lead { font-size: 16px; color: var(--body); max-width: 66ch; margin: 0 0 18px; }
.meta { font-size: 13px; color: var(--muted); margin: 0; }
.meta .dot { padding: 0 6px; }
h2 { font-size: 22px; line-height: 1.3; color: var(--ink); font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 16px; line-height: 1.4; color: var(--ink); font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 12px; max-width: 70ch; }
ul.plain { list-style: none; margin: 0; padding: 0; }
.small { font-size: 13px; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--ink); }

/* Sections */
section.block { border-top: 1px solid var(--line); padding-top: 48px; padding-bottom: 48px; scroll-margin-top: 12px; }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.sec-title p { margin: 0; }
.more { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Icons */
.ico { display: inline-flex; flex: none; width: 18px; height: 18px; }
.ico svg { width: 18px; height: 18px; display: block; }
.ok-ico circle { fill: var(--ok); }
.ok-ico path { stroke: #FFFFFF; }
.plan-ico circle { fill: none; stroke: var(--muted); stroke-dasharray: 3 2.6; }
.prog-ico circle.ring { fill: none; stroke: var(--ink); }
.prog-ico path { fill: var(--ink); }
.lock-ico path, .lock-ico rect { fill: none; stroke: var(--slate); }

/* Compliance cards */
.frame { position: relative; }
.frame::before, .frame::after, .frame > .t1, .frame > .t2 { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--ink); border-style: solid; pointer-events: none; }
.frame::before { top: -8px; left: -8px; border-width: 1.5px 0 0 1.5px; }
.frame::after { top: -8px; right: -8px; border-width: 1.5px 1.5px 0 0; }
.frame > .t1 { bottom: -8px; left: -8px; border-width: 0 0 1.5px 1.5px; }
.frame > .t2 { bottom: -8px; right: -8px; border-width: 0 1.5px 1.5px 0; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.badge { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.badge:last-child { border-right: 0; }
.badge .status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink); }
.badge .status.planned { color: var(--muted); }
.badge p { font-size: 13px; color: var(--muted); margin: 0; }

/* Control catalogue */
.summary { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: var(--ink); margin: 0 0 8px; }
.summary span { display: inline-flex; align-items: center; gap: 8px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.cat { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.cat:nth-child(3n) { border-right: 0; }
.cat:nth-last-child(-n+3) { border-bottom: 0; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cat-head .small { white-space: nowrap; }
.cat ul { flex: 1; }
.ctl { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 15px; color: var(--body); line-height: 1.45; }
.ctl .ico { margin-top: 1px; }
.cat .more { margin-top: 12px; }

.ctl-section { border-top: 1px solid var(--line); padding: 36px 0; display: grid; grid-template-columns: 260px 1fr; gap: 40px; scroll-margin-top: 12px; }
.ctl-section:first-of-type { border-top: 0; padding-top: 8px; }
.ctl-list li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ctl-list li:first-child { border-top: 1px solid var(--line); }
.ctl-list h3 { margin: 0 0 2px; font-size: 16px; }
.ctl-list p { margin: 0; font-size: 15px; }
.ctl-list .ico { margin-top: 2px; }
.jump { position: sticky; top: 16px; align-self: start; }
.jump a { display: block; font-size: 13px; color: var(--slate); text-decoration: none; padding: 4px 0; }
.jump a:hover { color: var(--ink); }

/* Rows: documents, subprocessors, FAQ, updates */
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows li:first-child { border-top: 1px solid var(--line); }
.rows .left { display: flex; gap: 12px; align-items: center; color: var(--body); }
.rows .tag { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rows a.req { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.doc-group { margin-bottom: 40px; }
.doc-group:last-child { margin-bottom: 0; }
.doc-group h2 { margin-bottom: 14px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; font-size: 13px; color: var(--muted); padding: 0 0 10px; }
th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--panel); padding: 10px 14px; border-bottom: 1px solid var(--line); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }

details.faq { border-bottom: 1px solid var(--line); }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative; color: var(--ink); font-weight: 600; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 4px; top: 24px; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.15s; }
details.faq[open] summary::after { transform: rotate(-135deg); top: 28px; }
details.faq .ans { padding: 0 0 18px; }
details.faq .ans p:last-child { margin-bottom: 0; }

.qa-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.qa-row:first-child { border-top: 1px solid var(--line); }
.qa-row.one { grid-template-columns: 1fr; gap: 6px; }
.qa-row h3 { margin: 0; }
.qa-row p { margin: 0; }
.qa-row p + p { margin-top: 10px; }

.updates li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--body); }
.updates li:first-child { border-top: 1px solid var(--line); }
.updates time { font-size: 13px; color: var(--muted); padding-top: 2px; }

.note { font-size: 13px; color: var(--muted); margin: 20px 0 0; max-width: 76ch; }
.btn-line { display: inline-block; border: 1px solid var(--ink); color: var(--ink); background: transparent; font-size: 13px; font-weight: 600; text-decoration: none; padding: 9px 16px; border-radius: 6px; }
.btn-line:hover { background: var(--panel); }
.actions.mt { margin-top: 20px; }
h2.mt { margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

footer.site { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 48px; font-size: 13px; color: var(--muted); margin-top: 24px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .badges { grid-template-columns: repeat(2, 1fr); }
  .badge:nth-child(2) { border-right: 0; }
  .badge:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat:nth-child(3n) { border-right: 1px solid var(--line); }
  .cat:nth-child(2n) { border-right: 0; }
  .cat:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cat:nth-last-child(-n+2) { border-bottom: 0; }
  .ctl-section { grid-template-columns: 1fr; gap: 16px; }
  .two { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .brand span { display: none; }
  .page-head { padding-top: 40px; padding-bottom: 32px; }
  h1 { font-size: 30px; }
  section.block { padding-top: 40px; padding-bottom: 40px; }
  .badges { grid-template-columns: 1fr; }
  .badge { border-right: 0; border-bottom: 1px solid var(--line); }
  .badge:last-child { border-bottom: 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat, .cat:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .cat:last-child { border-bottom: 0; }
  .qa-row { grid-template-columns: 1fr; gap: 6px; }
  .updates li { grid-template-columns: 1fr; gap: 2px; }
  .rows li { align-items: flex-start; }
  td:first-child { white-space: normal; }
  .sec-title { flex-direction: column; gap: 6px; }
}
@media print {
  .bar, nav.tabs, .cta, .btn-line, .actions { display: none; }
  body { background: #FFFFFF; }
}
