:root {
  --red: #d90916;
  --ink: #111215;
  --muted: #666a73;
  --line: #dedfe3;
  --soft: #f4f4f5;
  --white: #ffffff;
  --shell: min(1120px, calc(100% - 48px));
  --article: min(820px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}
.legal-header-inner { height: 70px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 36px; height: 36px; display: block; object-fit: contain; }
.brand-name { font-size: 16px; font-weight: 900; }
.legal-back { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 800; }
.legal-back:hover { color: var(--red); }
.language-switch { height: 34px; display: flex; border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; }
.language-switch button, .language-switch a { width: 36px; display: grid; place-items: center; border: 0; border-right: 1px solid var(--ink); padding: 0; color: var(--ink); background: transparent; font-size: 10px; font-weight: 900; cursor: pointer; text-decoration: none; }
.language-switch button:last-child, .language-switch a:last-child { border-right: 0; }
.language-switch button[aria-pressed="true"], .language-switch a[aria-pressed="true"] { color: var(--white); background: var(--red); }
.legal-hero { padding: 76px 0 70px; color: var(--white); background: var(--red); }
.legal-hero p { margin: 0 0 16px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.15em; }
.legal-hero h1 { max-width: 900px; margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; font-weight: 950; }
.legal-main { padding: 76px 0 100px; }
.legal-article { width: var(--article); margin-inline: auto; }
.document-summary { margin: 0 0 54px; padding: 24px 28px; border-left: 4px solid var(--red); background: var(--soft); color: #454850; }
.legal-article section { padding: 36px 0; border-top: 1px solid var(--line); }
.legal-article section:first-of-type { border-top: 0; padding-top: 0; }
.legal-article h2 { margin: 0 0 18px; font-size: 25px; line-height: 1.25; font-weight: 900; }
.legal-article h3 { margin: 26px 0 10px; font-size: 17px; }
.legal-article p { margin: 12px 0 0; color: #454850; }
.legal-article ul { display: grid; gap: 8px; margin: 16px 0 0; padding-left: 22px; color: #454850; }
.legal-article strong { color: var(--ink); }
.price-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 24px 0; background: var(--line); border: 1px solid var(--line); }
.price-list div { padding: 20px; background: var(--white); }
.price-list span, .price-list strong { display: block; }
.price-list span { color: var(--muted); font-size: 12px; }
.price-list strong { margin-top: 6px; font-size: 19px; }
.document-contact { margin-top: 30px; padding: 24px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.document-contact p { margin: 0 0 14px; }
.support-button { min-height: 50px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 4px; color: var(--white); background: var(--red); font-weight: 900; }
.legal-footer { padding: 44px 0; color: #a0a3aa; background: #111215; }
.legal-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.legal-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; font-size: 13px; }
.legal-footer a:hover { color: var(--white); }
[data-legal-language][hidden] { display: none !important; }
#legal-en:target, #legal-de:target { display: block !important; }
body:has(#legal-en:target) #legal-ru, body:has(#legal-en:target) #legal-de,
body:has(#legal-de:target) #legal-ru, body:has(#legal-de:target) #legal-en { display: none !important; }

@media (max-width: 720px) {
  :root { --shell: calc(100% - 28px); --article: calc(100% - 28px); }
  .legal-header-inner { height: 64px; gap: 12px; }
  .brand-name { display: none; }
  .legal-back { margin-left: auto; font-size: 0; }
  .legal-back::after { content: "←"; font-size: 22px; }
  .language-switch button, .language-switch a { width: 32px; }
  .legal-hero { padding: 56px 0 52px; }
  .legal-hero h1 { font-size: 40px; overflow-wrap: break-word; hyphens: auto; }
  html[lang="de"] .legal-hero h1 { font-size: 29px; hyphens: none; overflow-wrap: normal; }
  .legal-main { padding: 54px 0 70px; }
  .document-summary { padding: 20px; }
  .legal-article section { padding: 30px 0; }
  .legal-article h2 { font-size: 22px; }
  .price-list { grid-template-columns: 1fr; }
  .legal-footer-inner { align-items: flex-start; flex-direction: column; }
  .legal-footer-links { justify-content: flex-start; gap: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
