/* Privacy policy page (privacy.html). Same tokens as landing-v6.css, own small stylesheet so the
   legal page doesn't pull the landing's hero/3D styles. */
:root {
  --page: #f6fbff; --card: #ffffff; --ink: #14233a; --ink-soft: #3c5169; --ink-mute: #6b8199;
  --line: #d9e8f4; --accent: #ff8a3d; --accent-dark: #c9631f; --accent-soft: #ffe6d4; --grass: #7ac74f;
  --display: 'Rubik', 'Manrope', var(--cjk), 'Segoe UI', sans-serif; --body: 'Manrope', var(--cjk), 'Segoe UI', sans-serif;
  color-scheme: light; font-family: var(--body); font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 16.5px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; text-wrap: balance; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* header */
.pp-header { position: sticky; top: 0; z-index: 10; background: rgba(246, 251, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pp-header-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand em { font-style: normal; color: var(--accent); }
.pp-actions { display: flex; align-items: center; gap: 14px; }
.back { font-family: var(--display); font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 13.5px; }
.lang-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
/* Same as the landing's menu: the list scrolls inside the dropdown when it outgrows the viewport. */
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 184px; list-style: none; padding: 6px; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 36px -20px rgba(20, 35, 58, .55); max-height: min(70vh, 430px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b9d2e4 transparent; }
.lang-menu a { display: block; width: 100%; text-decoration: none; padding: 9px 12px; border: 0; border-radius: 9px; background: none; text-align: left; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.lang-menu a:hover { background: #eef5fb; color: var(--ink); }
.lang-menu [aria-current] { background: var(--accent-soft); color: var(--accent-dark); }

/* layout: sticky table of contents + document */
.pp-wrap { max-width: 1180px; margin: 0 auto; padding: 34px 20px 0; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px 12px; }
.toc-title { padding: 0 10px 8px; font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.toc ol { list-style: none; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 6px; padding: 7px 10px; border-radius: 9px; color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.toc a::before { content: counter(toc) "."; color: var(--ink-mute); min-width: 20px; }
.toc a:hover { background: #eef5fb; color: var(--ink); }
.toc a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-dark); }
.toc a[aria-current="true"]::before { color: var(--accent-dark); }

.doc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 44px 52px 50px; outline: none; }
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
/* min-width/max-width — as a flex item the heading otherwise sizes to its longest word
   ("конфиденциальности", "Datenschutzerklärung") and overflows narrow phones; hyphens then
   splits that word properly for the page language instead of cutting it at the edge. */
.doc h1 { min-width: 0; max-width: 100%; font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: auto; }
.print-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink-soft); font-family: var(--display); font-weight: 700; font-size: 13.5px; }
.print-btn:hover { color: var(--ink); background: #eef5fb; }
.print-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meta { margin-top: 10px; color: var(--ink-mute); font-size: 14px; line-height: 1.6; }
.intro { margin-top: 18px; color: var(--ink-soft); font-size: 17px; }

.tldr { margin-top: 26px; background: #fff6ef; border: 1px solid #ffd9bd; border-radius: 16px; padding: 20px 24px; }
.tldr h2 { font-size: 17px; }
.tldr ul { list-style: none; padding: 0; margin-top: 10px; }
.tldr li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); margin: 6px 0; }
.tldr li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 5px; border-radius: 50%;
  background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3.5 3.5L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* No scroll-margin here: html's scroll-padding-top already clears the sticky header, and the two
   add up — an anchor jump would stop 176px down, below the TOC's read line (privacy.js READ_LINE). */
.doc section { margin-top: 40px; color: var(--ink-soft); }
.doc section h2 { color: var(--ink); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.doc section h2 .num { color: var(--accent); }
.doc section h3 { color: var(--ink); font-size: 16.5px; font-weight: 700; margin: 20px 0 6px; }
.doc section h3:first-child { margin-top: 0; }
.doc section ul { padding-left: 22px; }
.doc section li { margin: 6px 0; }
.doc section p + p, .doc section p + ul, .doc section ul + p { margin-top: 10px; }
.doc section b { color: var(--ink); }
.doc code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .9em; padding: 1px 6px; border-radius: 6px; background: #eef5fb; color: var(--ink); }

.pp-foot { max-width: 1180px; margin: 48px auto 0; padding: 24px 20px 36px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--ink-mute); }
/* Mojang/Microsoft disclaimer: same wording as the landing footer, small and quiet. */
.pp-foot-legal { margin: 14px auto 0; font-size: 11.5px; line-height: 1.55; opacity: .85; text-wrap: balance; }

/* mobile: the table of contents becomes a compact list above the document */
@media (max-width: 900px) {
  .pp-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 20px; }
  .toc { position: static; max-height: none; padding: 14px 10px 10px; }
  .toc ol { columns: 2; column-gap: 8px; }
  .toc li { break-inside: avoid; }
  .doc { padding: 30px 22px 34px; }
}
@media (max-width: 560px) {
  .pp-wrap { padding-left: 14px; padding-right: 14px; }
  .toc ol { columns: 1; }
  .doc { padding: 24px 16px 28px; }
  .doc h1 { font-size: 25px; }
  .doc-head { flex-direction: column; }
  /* visually hidden, not display:none — the arrow is aria-hidden, so this text is the link's name */
  .back-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pp-actions { gap: 10px; }
}
@media (max-width: 380px) {
  .doc h1 { font-size: 22px; }
}

/* print / save as PDF: just the document, black on white, links spelled out */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #000; font-size: 11.5pt; line-height: 1.5; }
  .pp-header, .toc, .print-btn, .skip-link, .pp-foot { display: none !important; }
  .pp-wrap { display: block; padding: 0; max-width: none; }
  .doc { border: 0; padding: 0; border-radius: 0; }
  .doc, .doc section, .intro, .meta, .tldr li { color: #000; }
  .tldr { background: none; border: 1px solid #999; break-inside: avoid; }
  .doc section { break-inside: avoid-page; margin-top: 20pt; }
  .doc section h2 .num { color: #000; }
  .doc section a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #333; }
}

/* Language offer for visitors who arrive from outside on another language (lang-suggest.js). */
.lang-suggest { position: fixed; left: 50%; bottom: 18px; z-index: 60; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; background: #ffffff; color: #14233a; border: 1px solid #d9e8f4; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(20, 35, 58, .55); font-family: 'Manrope', var(--cjk), system-ui, sans-serif; font-size: 15px; animation: lang-suggest-in .35s ease-out both; }
.lang-suggest p { flex: 1; margin: 0; font-weight: 600; line-height: 1.35; }
.lang-suggest-go { flex-shrink: 0; padding: 9px 14px; border-radius: 11px; background: #ff8a3d; color: #fff; font-family: 'Rubik', 'Manrope', var(--cjk), system-ui, sans-serif; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 3px 0 #c9631f; }
.lang-suggest-go:hover { background: #ff9b57; }
.lang-suggest-close { flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 10px; background: #eef5fb; color: #3c5169; font-size: 20px; line-height: 1; cursor: pointer; }
.lang-suggest-close:hover { background: #dfeaf5; color: #14233a; }
@keyframes lang-suggest-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 480px) { .lang-suggest { flex-wrap: wrap; } .lang-suggest p { flex-basis: calc(100% - 46px); } .lang-suggest-go { flex: 1; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .lang-suggest { animation: none; } }
@media print { .lang-suggest { display: none; } }
