/* Shared styles for the legal pages (privacy.html, terms.html, cookies.html).
   The visual language is the landing's (index.html): Source Serif 4 for
   headings, Inter for text, warm-gray paper, 8px corners, uppercase eyebrows.
   Same two-blue rule as the landing: #0075de is the FILL blue (buttons,
   borders, icons, focus ring), #0068c7 the TEXT blue — never set #0075de on
   text, it misses 4.5:1 on these grounds. Served from the site root, so it
   sits inside the CSP's style-src 'self'. */
:root {
  --bg: #f7f6f4;
  --paper: #fff;
  --paper-2: #fbfaf9;
  --foot: #edece8;
  --ink: #37352f;
  --ink-strong: #1c1b19;
  --body: #4e4a46;
  --muted: #615d59;
  --line: #e8e6e1;
  --line-2: #e0ded9;
  --blue: #0075de;
  --blue-text: #0068c7;
  --blue-hover: #005bb0;
  --blue-tint: #eef4fb;
  --blue-border: #d6e6f7;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --wrap: clamp(1120px, 94vw, 1360px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: var(--blue-text); text-decoration: none; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
a:hover { color: var(--blue-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(0,117,222,0.18); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; color: var(--ink-strong); }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.skip { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip:focus { width: auto; height: auto; clip: auto; margin: 0; top: 8px; left: 8px; z-index: 200; background: #fff; padding: 8px 16px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,.1); color: var(--blue-text); font-weight: 600; font-size: 14px; }

/* ---- Nav (the landing's, minus the language switch: the legal text is English) ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247,246,244,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; display: block; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav-links a { color: #6b6a66; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--blue); color: #fff !important; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.nav-cta:hover { background: var(--blue-hover); }

/* ---- Hero ---- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 8px; }
.hero .eyebrow { color: var(--blue-text); margin-bottom: 14px; display: block; }
.hero h1 { font-size: 46px; line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
.lede { font-size: 17px; line-height: 1.65; color: var(--body); max-width: 720px; margin: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.meta strong { color: var(--ink); font-weight: 600; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c8c5c0; }
.print-btn { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.print-btn:hover { border-color: var(--ink); }
.ro-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 720px; }

/* The three legal documents as one set: a segmented switcher, the current
   page marked with aria-current. */
.doc-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.doc-tabs a { font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 16px; border-radius: 999px; }
.doc-tabs a:hover { color: var(--ink); background: var(--bg); }
.doc-tabs a[aria-current="page"] { background: var(--ink-strong); color: #fff; }

/* ---- Body: sticky contents rail + document column ---- */
.layout { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 88px; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 13.5px; }
.toc summary { list-style: none; cursor: default; color: var(--muted); margin-bottom: 12px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.toc li a { display: flex; gap: 10px; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; }
.toc li a:hover { color: var(--ink); }
.toc li a .n { font-variant-numeric: tabular-nums; color: #9a968f; min-width: 18px; }
.toc li a.active { color: var(--blue-text); border-left-color: var(--blue); font-weight: 600; }
.toc li a.active .n { color: var(--blue-text); }

.doc { max-width: 760px; min-width: 0; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.72; color: var(--body); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: #9a968f; }
.doc strong { color: var(--ink-strong); font-weight: 600; }
.doc code { font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink-strong); white-space: nowrap; }

.sec { padding-top: 44px; margin-top: 44px; border-top: 1px solid var(--line); scroll-margin-top: 78px; }
.glance + .sec { border-top: 0; margin-top: 0; padding-top: 0; }
.sec-num { color: var(--blue-text); display: block; margin-bottom: 8px; }
.sec h2 { font-size: 28px; line-height: 1.2; margin: 0 0 16px; text-wrap: balance; }
.sec h3 { font-size: 19px; line-height: 1.3; margin: 28px 0 10px; }

/* "At a glance" */
.glance { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 24px 26px; margin-bottom: 52px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.glance .eyebrow { color: var(--muted); display: block; margin-bottom: 14px; }
.glance ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.glance li { display: flex; gap: 12px; margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.glance li svg { flex-shrink: 0; margin-top: 2px; }

/* Facts card: the company's registered particulars as a definition list */
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin: 18px 0 18px; display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.facts dt, .facts dd { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { color: var(--ink-strong); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }

/* Tables scroll inside their own frame, never the page */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); margin: 16px 0 20px; -webkit-overflow-scrolling: touch; }
/* No tabular-nums: Inter's tnum also widens the hyphen ("tax - residence") */
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: lining-nums; }
.tbl th { text-align: left; background: var(--paper-2); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.6; color: var(--body); }
.tbl tr:first-child td { border-top: 0; }
.tbl td:first-child { color: var(--ink-strong); font-weight: 600; }
.tbl.wide table { min-width: 640px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 2px 9px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-text); border: 1px solid var(--blue-border); margin: 2px 4px 2px 0; white-space: nowrap; }
.tag.gray { background: var(--bg); color: var(--ink); border-color: var(--line-2); }

.callout { display: flex; gap: 14px; background: var(--blue-tint); border: 1px solid var(--blue-border); border-radius: 8px; padding: 16px 18px; margin: 18px 0 20px; }
.callout svg { flex-shrink: 0; margin-top: 3px; }
.callout p { margin: 0; color: var(--ink); font-size: 15px; }
.callout p + p { margin-top: 8px; }

/* Security measures as a 2x2 card grid */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card ul { margin: 0; padding-left: 18px; }
.card li { font-size: 14px; line-height: 1.6; margin: 4px 0; }

.contact { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 24px 26px; margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.contact h2 { grid-column: 1 / -1; font-size: 24px; margin: 0; }
.contact .eyebrow { color: var(--muted); display: block; margin-bottom: 6px; }
.contact p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.back-top { display: inline-block; margin-top: 28px; font-size: 14px; font-weight: 600; }

/* ---- Footer: the landing's, plus the statutory company particulars ---- */
.foot { background: var(--foot); border-top: 1px solid var(--line-2); padding: 52px 24px 36px; }
.foot-top { max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.foot-brand img { width: 26px; height: 26px; display: block; }
.foot-tag { font-size: 13px; color: #6b6a66; line-height: 1.75; }
.foot-cols { display: flex; gap: 52px; font-size: 13.5px; flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-cols .eyebrow { color: var(--muted); }
.foot-cols a { color: #555350; }
.foot-cols a:hover { color: var(--ink); }
.foot-legal { max-width: var(--wrap); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.foot-legal p { margin: 0 0 10px; max-width: 920px; }
.foot-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-bottom a { text-decoration: none; font-weight: 600; }

/* ---- Cookie notice (same component as the landing's) ---- */
#cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid rgba(0,0,0,0.10); border-radius: 8px; box-shadow: 0 12px 32px rgba(15,15,15,0.16); padding: 16px 18px; transform: translateY(180%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
#cookie-banner.show { transform: translateY(0); }
#cookie-banner .row { display: flex; align-items: flex-start; gap: 12px; }
#cookie-banner .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--blue-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#cookie-banner .txt { font-size: 13.5px; color: var(--body); line-height: 1.6; }
#cookie-banner .txt p { margin: 0; }
#cookie-banner .txt .t { font-weight: 600; color: var(--ink-strong); margin-bottom: 2px; }
#cookie-banner .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
#cookie-banner button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 8px; cursor: pointer; }
#cookie-banner .b-ghost { background: #fff; color: var(--body); border: 1px solid rgba(0,0,0,0.15); }
#cookie-banner .b-ghost:hover { border-color: var(--ink); }
#cookie-banner .b-main { background: var(--blue); color: #fff; border: 0; }
#cookie-banner .b-main:hover { background: var(--blue-hover); }
@media (min-width: 640px) { #cookie-banner { left: auto; right: 20px; bottom: 20px; margin: 0; } }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .toc { position: static; max-height: none; overflow: visible; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
  .toc summary { cursor: pointer; margin: 0; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
  .toc summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s ease; }
  .toc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .toc[open] summary { margin-bottom: 12px; }
}
@media (max-width: 760px) {
  .nav-links .hide-sm { display: none; }
  .hero { padding: 36px 16px 4px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 16px; }
  .meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .meta .dot { display: none; }
  .layout { padding: 24px 16px 64px; }
  .sec h2 { font-size: 24px; }
  .glance { padding: 20px; }
  .glance ul, .cards, .contact { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; }
  .facts dd { border-top: 0; padding-top: 2px; }
  .doc-tabs { display: flex; width: 100%; }
  .doc-tabs a { flex: 1; text-align: center; padding: 8px 10px; }
  .foot { padding: 40px 16px 30px; }
  .foot-cols { gap: 26px; }
}
@media (max-width: 380px) {
  .nav-inner { padding: 0 14px; }
  .brand span { display: none; }
}

/* ---- Print: the document only ---- */
@media print {
  .nav, .toc, .doc-tabs, .print-btn, .foot-top, #cookie-banner, .back-top, .skip { display: none !important; }
  body { background: #fff; }
  .layout { display: block; padding: 0 0 24px; }
  .hero { padding: 0 0 12px; }
  .sec { break-inside: auto; padding-top: 20px; margin-top: 20px; }
  .tbl, .facts, .card, .glance, .callout, .contact { break-inside: avoid; box-shadow: none; }
  a { color: inherit; }
  .foot { background: #fff; padding: 16px 0 0; }
}
