/* The privacy policy and terms (privacy.html, terms.html): the landing page's tokens, menu,
   mesh and footer (index.html), with a brand-blue title band and the text on a card.
   Keep the tokens in step with index.html (docs/design/foundations.md). */
:root {
  --page: #F3F5F9;
  --surface: #FFFFFF;
  --raised: #EEF1F6;
  --band: #FFFFFF;
  --line: rgba(16,24,40,.08);
  --line-strong: rgba(16,24,40,.22);
  --fg: #101828;
  --fg-2: #475467;
  --fg-3: #98A2B3;
  --accent-text: #1F5FE0;
  --shadow: 0 12px 32px -8px rgba(16,24,40,.10), 0 0 0 1px rgba(16,24,40,.05);
  --ok-fg: #067647; --ok-bg: #ECFDF3;
  --nav-bg: rgba(255,255,255,.74);
  --nav-fg: #101828;
  --nav-link: #344054;
  --nav-hover: rgba(16,24,40,.06);
  --blue: #1F5FE0;
  --sky: #6FA0FF;
  --green: #12B76A;
  --display: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --fa-font: "Vazirmatn", "Tahoma", system-ui, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --p: 1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #070B16; --surface: #151B2B; --raised: #1E2638; --band: #0C1322;
    --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.2);
    --fg: #F2F4F7; --fg-2: #B4BCCB; --fg-3: #667085; --accent-text: #83A6FF;
    --shadow: 0 12px 28px -6px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
    --ok-fg: #4ADE9B; --ok-bg: #0E2A20;
    --nav-bg: rgba(14,22,44,.58); --nav-fg: #FFFFFF; --nav-link: #D0D5DD; --nav-hover: rgba(255,255,255,.08);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #070B16; --surface: #151B2B; --raised: #1E2638; --band: #0C1322;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.2);
  --fg: #F2F4F7; --fg-2: #B4BCCB; --fg-3: #667085; --accent-text: #83A6FF;
  --shadow: 0 12px 28px -6px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  --ok-fg: #4ADE9B; --ok-bg: #0E2A20;
  --nav-bg: rgba(14,22,44,.58); --nav-fg: #FFFFFF; --nav-link: #D0D5DD; --nav-hover: rgba(255,255,255,.08);
}
:root[data-theme="light"] { color-scheme: light; }
html.l-fa { --display: var(--fa-font); --text: var(--fa-font); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--page); color: var(--fg); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--page); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
p { margin: 0; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
html.l-fa h1, html.l-fa h2, html.l-fa h3 { letter-spacing: 0; line-height: 1.45; }
.fa-inline { font-family: var(--fa-font); }

/* ── Logo and menu (as on the landing page) ── */
.mark { width: calc(42px - 8px * var(--p)); height: calc(42px - 8px * var(--p)); border-radius: calc(13px - 3px * var(--p)); flex: none; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #1E4FB0 0%, #0B1F4D 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 4px 12px rgba(6,20,60,.35); }
.mark img { width: calc(37px - 7px * var(--p)); height: auto; display: block; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: calc(23px - 4px * var(--p)); letter-spacing: -0.02em; }
html.l-fa .brand { font-family: "Manrope", var(--fa-font); }
.nav { --p: 0; position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; padding-top: calc(22px - 8px * var(--p)); }
.nav-bar { position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; margin-inline: auto; max-width: calc(100% - 8% * var(--p));
  padding-block: calc(14px - 6px * var(--p)); padding-inline: calc(20px - 6px * var(--p)) calc(20px - 12px * var(--p)); border-radius: 999px;
  color: #fff; color: color-mix(in srgb, var(--nav-fg) calc(var(--p) * 100%), #fff); }
.nav-bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: var(--p);
  background: var(--nav-bg); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.22), 0 8px 24px -4px rgba(0,0,0,.25); border: 1px solid var(--line); }
.nav-links { display: flex; gap: 2px; margin-inline-start: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: calc(16px - 1px * var(--p)); font-weight: 500; transition: background .2s;
  color: rgba(255,255,255,.88); color: color-mix(in srgb, var(--nav-link) calc(var(--p) * 100%), rgba(255,255,255,.88)); white-space: nowrap; }
.nav-links a:hover { background: var(--nav-hover); color: inherit; }
.nav-links a[aria-current="page"] { background: rgba(255,255,255,.16); background: color-mix(in srgb, var(--nav-hover) calc(var(--p) * 100%), rgba(255,255,255,.16)); color: inherit; }
.tools { display: flex; align-items: center; gap: 6px; }
.nav-links + .tools { margin-inline-start: 4px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.14); background: color-mix(in srgb, var(--nav-hover) calc(var(--p) * 100%), rgba(255,255,255,.14)); }
.lang button { border: 0; background: transparent; font: 600 13px/1 var(--text); padding: 7px 9px; border-radius: 999px; cursor: pointer; min-width: 34px;
  color: rgba(255,255,255,.85); color: color-mix(in srgb, var(--nav-link) calc(var(--p) * 100%), rgba(255,255,255,.85)); }
.lang button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.lang button.fa-btn { font-family: var(--fa-font); font-size: 14px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: inherit;
  background: rgba(255,255,255,.14); background: color-mix(in srgb, var(--nav-hover) calc(var(--p) * 100%), rgba(255,255,255,.14)); }
.icon-btn svg { width: 18px; height: 18px; }
.nav .btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--blue); color: #fff; white-space: nowrap; transition: background .2s; }
.nav .btn:hover { background: #2B6AF0; }

/* ── Mesh (the app's MeshBackground) ── */
.page-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; will-change: transform; pointer-events: none; }

/* ── Title band: brand blue in both themes, melting into the page ── */
.doc-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-top: 168px; padding-bottom: 120px; }
.field { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(circle at 85% 15%, rgba(111,160,255,.45) 0%, transparent 50%), linear-gradient(180deg, #0B3D91 0%, #1F5FE0 60%, #2F7BFF 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
/* the title lines up with the text card, past the contents column */
.narrow { max-width: 1120px; }
@media (min-width: 1001px) { .narrow > * { margin-inline-start: 260px; } }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.14); box-shadow: inset 0 1px 1px rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.chip svg { width: 16px; height: 16px; }
/* long German titles carry soft hyphens (&shy;) at their joints, so they break there on a phone */
.doc-hero h1 { hyphens: manual; overflow-wrap: break-word; font-size: clamp(34px, 6vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; margin-top: 22px; }
html.l-fa .doc-hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.35; letter-spacing: 0; }
.doc-hero .lede { margin-top: 18px; max-width: 46ch; font-size: 19px; color: #DCE6FF; }
.doc-hero .updated { margin-top: 18px; font-size: 14px; color: #B8C7EE; }

/* ── The text ── */
/* position + z-index: it overlaps the title band, which is positioned and would paint on top */
.doc-grid { position: relative; z-index: 1; max-width: 1120px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: -64px; padding-bottom: 72px; }
.toc { position: sticky; top: 104px; font-size: 14px; }
.toc p { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 10px; padding-inline-start: 12px; }
html.l-fa .toc p { letter-spacing: 0; font-size: 13px; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--fg-2); border-inline-start: 2px solid transparent; transition: background .2s, color .2s; }
.toc a:hover { background: var(--surface); color: var(--fg); }
.toc a.on { color: var(--accent-text); border-inline-start-color: var(--blue); background: var(--surface); font-weight: 600; }
.doc { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(24px, 5vw, 56px); }
.doc section + section { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.doc h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; }
.doc h2 .ic { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; color: var(--accent-text);
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.doc h2 .ic svg { width: 18px; height: 18px; }
.doc p, .doc li { color: var(--fg-2); }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-inline-start: 22px; display: grid; gap: 10px; }
.doc li::marker { color: var(--blue); }
.doc b { color: var(--fg); font-weight: 600; }
.doc a { color: var(--accent-text); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; padding: 0; list-style: none; }
.doc .summary { margin: 0 0 40px; padding: 0; }
.summary li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--ok-bg); color: var(--fg); font-size: 15px; line-height: 1.45; font-weight: 500; }
.summary li::marker { content: none; }
.summary svg { width: 20px; height: 20px; color: var(--ok-fg); stroke-width: 2.2; margin-top: 1px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: var(--raised); }
.contact svg { color: var(--accent-text); }
.doc .contact a { font-size: 17px; }
.mail { unicode-bidi: isolate; direction: ltr; }
html.l-fa .doc { line-height: 1.9; }

/* ── Footer (as on the landing page) ── */
footer { background: var(--band); color: var(--fg-2); padding-block: 40px 56px; font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--line); }
.foot .brand { color: var(--fg); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--fg); }
.foot .disc { flex-basis: 100%; font-size: 13px; }

/* ── Motion: the text settles in once ── */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }
.js .rise { opacity: 0; transform: translateY(20px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .nav-links { display: none; } .tools { margin-inline-start: auto; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 720px) { .summary { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav .btn { display: none; }
  .brand { font-size: calc(20px - 3px * var(--p)); }
  .doc-hero { padding-top: 128px; padding-bottom: 96px; }
  .doc-hero .lede { font-size: 17px; }
  .doc { border-radius: 22px; }
  .doc h2 { font-size: 21px; }
}
@media (max-width: 400px) {
  .nav-bar { gap: 8px; padding-block: calc(10px - 4px * var(--p)); padding-inline: calc(12px - 2px * var(--p)) calc(10px - 4px * var(--p)); }
  .brand { font-size: calc(18px - 2px * var(--p)); gap: 8px; }
  .mark { width: calc(36px - 6px * var(--p)); height: calc(36px - 6px * var(--p)); } .mark img { width: calc(31px - 5px * var(--p)); }
  .lang button { min-width: 30px; padding: 7px 6px; }
  .icon-btn { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; animation: none; }
  body, .toc a { transition: none; }
}
