/* Legal pages of playvorda.ru: the site's night look — soft light in the sky, glass cards, smooth entrances —
   around a calm, readable column. Everything shows without JavaScript; legal.js only adds the reveal and the
   contents highlight. Motion follows prefers-reduced-motion. */
@font-face { font-family: Unbounded; src: url('/fonts/unbounded-variable.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: Onest; src: url('/fonts/onest-variable.woff2') format('woff2'), url('/fonts/onest-variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #080c16;
  --glass: #101a2dcc;
  --glass-hi: #15223a;
  --line: #ffffff14;
  --line-hi: #5ee2ff40;
  --text: #d7def3;
  --soft: #93a4c3;
  --head: #ffffff;
  --cyan: #5ee2ff;
  --green: #3ddc6f;
  --violet: #a77bff;
  --gold: #ffcb45;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: Unbounded, 'Segoe UI', system-ui, sans-serif;
  --body: Onest, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 16.5px/1.7 var(--body); overflow-x: hidden; }
a { color: var(--cyan); text-decoration-color: #5ee2ff66; text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: #b8f5ff; text-decoration-color: currentColor; }
.ic { flex: none; }

/* ---------- Sky: three slow lights and a faint pixel grid ---------- */
.lg-sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    linear-gradient(#ffffff05 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, #ffffff05 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(120% 70% at 50% -10%, #12224466, transparent 60%), var(--bg);
  -webkit-mask-image: linear-gradient(#000 0 55%, #0000);
          mask-image: linear-gradient(#000 0 55%, #0000);
}
.lg-sky i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: 0.32; }
.lg-sky i:nth-child(1) { left: -12vmax; top: -18vmax; background: #3ddc6f; }
.lg-sky i:nth-child(2) { right: -14vmax; top: -10vmax; background: #6a4cff; }
.lg-sky i:nth-child(3) { left: 30%; top: 22vmax; width: 34vmax; height: 34vmax; background: #1fa7d6; opacity: 0.18; }
@media (prefers-reduced-motion: no-preference) {
  .lg-sky i { animation: lg-drift 26s var(--ease) infinite alternate; }
  .lg-sky i:nth-child(2) { animation-duration: 32s; animation-direction: alternate-reverse; }
  .lg-sky i:nth-child(3) { animation-duration: 38s; }
}
@keyframes lg-drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }

/* ---------- Reading progress (scroll-driven, where the browser can) ---------- */
.lg-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 3px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--violet)); }
@supports (animation-timeline: scroll()) {
  .lg-progress { animation: lg-progress linear both; animation-timeline: scroll(root); }
}
@keyframes lg-progress { to { transform: scaleX(1); } }

/* ---------- Header ---------- */
/* Full-width glass bar; its content lines up with the 1240 px column. */
.lg-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 14px max(28px, calc((100vw - 1240px) / 2 + 28px));
  background: linear-gradient(#080c16ee, #080c16b3); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.lg-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--head); font: 800 17px/1 var(--display); letter-spacing: 0.12em; text-decoration: none; }
.lg-brand svg { transition: transform 0.6s var(--ease); }
.lg-brand:hover svg { transform: rotate(-12deg) scale(1.08); }
.lg-quick { display: flex; gap: 4px; margin-left: auto; }
.lg-quick a { padding: 7px 14px; border-radius: 999px; color: var(--soft); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background 0.25s, color 0.25s; }
.lg-quick a:hover { background: #ffffff0d; color: var(--head); }
.lg-quick a[aria-current="page"] { background: #3ddc6f1f; color: var(--head); box-shadow: inset 0 0 0 1px #3ddc6f55; }
.lg-site { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 12px; color: #062012; background: linear-gradient(180deg, #62f08f, #3ddc6f);
  font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: 0 8px 24px -10px #3ddc6faa; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.lg-site:hover { color: #062012; transform: translateY(-2px); box-shadow: 0 14px 30px -10px #3ddc6fcc; }

/* ---------- Hero ---------- */
.lg-hero { position: relative; max-width: 1240px; margin: 0 auto; padding: 56px 28px 34px; text-align: left; }
.lg-crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: 14px; text-decoration: none; }
.lg-crumb:hover { color: var(--head); }
.lg-badge { display: grid; place-items: center; width: 66px; height: 66px; margin: 22px 0 18px; border-radius: 20px; color: var(--cyan);
  background: linear-gradient(145deg, #1a2c4d, #0f1830); box-shadow: inset 0 0 0 1px var(--line-hi), 0 18px 40px -16px #5ee2ff80, 0 0 0 8px #5ee2ff0d; }
.lg-hero h1 { max-width: 900px; margin: 0; color: var(--head); font: 800 clamp(30px, 4.6vw, 54px)/1.08 var(--display); letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 30%, #b9cdf0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lg-lead { max-width: 680px; margin: 14px 0 0; color: #b6c3dd; font-size: 18px; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.lg-meta span { padding: 6px 12px; border-radius: 999px; color: var(--soft); background: #ffffff08; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
@media (prefers-reduced-motion: no-preference) {
  .lg-hero > * { animation: lg-rise 0.9s var(--ease) both; }
  .lg-hero > :nth-child(2) { animation-delay: 0.06s; }
  .lg-hero > :nth-child(3) { animation-delay: 0.12s; }
  .lg-hero > :nth-child(4) { animation-delay: 0.18s; }
  .lg-hero > :nth-child(5) { animation-delay: 0.24s; }
}
@keyframes lg-rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }

/* ---------- Layout: documents + contents on the left, the text on the right ---------- */
.lg-wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 44px; max-width: 1240px; margin: 0 auto; padding: 8px 28px 72px; }
.lg-side { position: sticky; top: 86px; align-self: start; display: grid; gap: 22px; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; }
.lg-docs { display: grid; gap: 4px; }
.lg-docs a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--soft); font-size: 14.5px; line-height: 1.3; text-decoration: none; transition: background 0.25s, color 0.25s, transform 0.3s var(--ease); }
.lg-docs a:hover { background: #ffffff0a; color: var(--head); transform: translateX(3px); }
.lg-docs a[aria-current="page"] { background: linear-gradient(90deg, #3ddc6f26, #3ddc6f08); color: var(--head); box-shadow: inset 3px 0 0 var(--green); }
.lg-docs .ic { color: var(--cyan); opacity: 0.85; }
.lg-toc { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: #0d1527b3; box-shadow: inset 0 0 0 1px var(--line); }
.lg-toc b { margin: 0 0 6px 8px; color: var(--soft); font: 700 11.5px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.lg-toc a { position: relative; padding: 6px 8px 6px 18px; border-radius: 8px; color: #8597b8; font-size: 13.5px; line-height: 1.35; text-decoration: none; transition: color 0.25s, background 0.25s; }
.lg-toc a::before { content: ''; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 2px; background: #3a4a68; transition: background 0.25s, transform 0.3s var(--ease); }
.lg-toc a:hover { color: var(--head); background: #ffffff08; }
.lg-toc a.is-here { color: var(--head); }
.lg-toc a.is-here::before { background: var(--green); transform: scale(1.5); box-shadow: 0 0 10px #3ddc6f; }
.lg-doc { min-width: 0; max-width: 820px; }
.lg-wrap.is-wide .lg-doc { max-width: 920px; }

/* ---------- Text blocks ---------- */
.lg-intro, .lg-sec { margin: 0 0 18px; padding: 26px 30px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px #000;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: box-shadow 0.4s var(--ease); }
.lg-sec:hover { box-shadow: inset 0 0 0 1px #ffffff22, 0 30px 60px -40px #000; }
.lg-sec h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: var(--head); font: 700 clamp(18px, 2vw, 22px)/1.3 var(--display); letter-spacing: -0.01em; }
.lg-num { display: inline-grid; place-items: center; flex: none; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 13px; color: var(--cyan);
  background: linear-gradient(145deg, #1a2c4d, #0f1830); box-shadow: inset 0 0 0 1px var(--line-hi); font: 700 14px/1 var(--display); }
.lg-sec p, .lg-intro p { margin: 0 0 12px; }
.lg-sec p:last-child, .lg-intro p:last-child { margin-bottom: 0; }
.lg-sec ul, .lg-sec ol { margin: 0 0 12px; padding-left: 22px; }
.lg-sec li { margin: 0 0 8px; }
.lg-sec li::marker { color: var(--green); }
.lg-sec b, .lg-intro b { color: var(--head); }

/* «Коротко о главном» */
.lg-short { position: relative; margin: 0 0 18px; padding: 24px 28px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, #12301f, #12223d 60%, #1d1a3d); box-shadow: inset 0 0 0 1px #3ddc6f40, 0 26px 50px -30px #3ddc6f55; }
.lg-short::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(#3ddc6f33, transparent 70%); pointer-events: none; }
.lg-short h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--head); font: 700 18px/1.2 var(--display); }
.lg-short h2 .ic { color: var(--gold); }
.lg-short ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lg-short li { position: relative; padding-left: 28px; color: #e3ebff; }
.lg-short li::before { content: ''; position: absolute; left: 4px; top: 0.62em; width: 10px; height: 10px; border-radius: 3px; background: var(--green); box-shadow: 0 0 12px #3ddc6faa; }
.lg-short p { margin: 14px 0 0; color: var(--soft); font-size: 13.5px; }

/* ---------- Hub of documents ---------- */
.lg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lg-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 20px; color: var(--text); text-decoration: none;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s; }
.lg-card:hover { color: var(--text); transform: translateY(-5px); background: var(--glass-hi); box-shadow: inset 0 0 0 1px var(--line-hi), 0 26px 50px -26px #5ee2ff66; }
.lg-card-ic { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 6px; border-radius: 15px; color: var(--cyan); background: linear-gradient(145deg, #1a2c4d, #0f1830); box-shadow: inset 0 0 0 1px var(--line-hi); }
.lg-card b { color: var(--head); font: 700 17px/1.3 var(--display); }
.lg-card > span:not(.lg-card-ic) { color: var(--soft); font-size: 14.5px; line-height: 1.5; }
.lg-card i { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--green); font-style: normal; font-weight: 700; font-size: 14px; }
.lg-card i .ic { transition: transform 0.35s var(--ease); }
.lg-card:hover i .ic { transform: translateX(4px); }
.lg-note { margin: 18px 0; color: var(--soft); }

/* ---------- Prices ---------- */
.lg-plain h2 .lg-num { color: var(--green); }
.lg-vords { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: end; margin: 4px 0 16px; }
.lg-rate { display: grid; gap: 6px; padding: 22px; border-radius: 18px; background: linear-gradient(145deg, #12301f, #10223a); box-shadow: inset 0 0 0 1px #3ddc6f40; }
.lg-rate b { color: var(--head); font: 800 clamp(26px, 3.4vw, 36px)/1 var(--display); }
.lg-rate span { color: var(--soft); font-size: 14px; }
/* Bonus steps: bars of fixed pixel heights (a percentage of an auto-height box would collapse to nothing). */
.lg-ladder { display: flex; align-items: flex-end; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lg-ladder li { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.lg-ladder li::before { content: ''; order: 2; width: 100%; height: var(--h); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #62f08f, #1f8f4a); box-shadow: 0 10px 26px -12px #3ddc6faa;
  transform-origin: bottom; }
.lg-ladder b { order: 1; color: var(--head); font: 700 14px/1 var(--display); }
.lg-ladder span { order: 3; color: var(--soft); font-size: 12.5px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .js .lg-ladder li::before { transform: scaleY(0); transition: transform 1s var(--ease); }
  .js .rv-in .lg-ladder li::before { transform: none; }
  .js .rv-in .lg-ladder li:nth-child(2)::before { transition-delay: 0.1s; }
  .js .rv-in .lg-ladder li:nth-child(3)::before { transition-delay: 0.2s; }
  .js .rv-in .lg-ladder li:nth-child(4)::before { transition-delay: 0.3s; }
}
.lg-plus-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 26px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #2a1a52, #16234a 55%, #0f2a3a); box-shadow: inset 0 0 0 1px #a77bff55, 0 28px 60px -30px #a77bff88; }
.lg-plus-card::after { content: ''; position: absolute; inset: -40% 40% auto auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(#a77bff40, transparent 70%); pointer-events: none; }
.lg-plus-price { display: grid; gap: 4px; }
.lg-plus-price b { color: var(--head); font: 800 clamp(30px, 4vw, 42px)/1 var(--display); }
.lg-plus-price span { color: #c9b6ff; font-size: 14px; }
.lg-plus-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lg-plus-card li { position: relative; padding-left: 26px; color: #ece6ff; }
.lg-plus-card li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, #c9a6ff, #7a5cff); }
.lg-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 4px 0 16px; }
.lg-tier { position: relative; display: grid; gap: 6px; align-content: start; padding: 22px 20px; border-radius: 18px; background: #0f1830; box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.lg-tier:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-hi), 0 24px 44px -24px #5ee2ff66; }
.lg-tier.is-pick { background: linear-gradient(180deg, #13284a, #0f1830); box-shadow: inset 0 0 0 1px #5ee2ff66, 0 24px 44px -26px #5ee2ff88; }
.lg-flag { position: absolute; top: -11px; left: 18px; padding: 4px 10px; border-radius: 999px; color: #04222c; background: var(--cyan); font: 700 11.5px/1 var(--display); }
.lg-tier h3 { margin: 0; color: var(--head); font: 700 17px/1.2 var(--display); }
.lg-spec { margin: 0; color: var(--soft); font-size: 13.5px; }
.lg-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 0; }
.lg-price b { color: var(--head); font: 800 40px/1 var(--display); }
.lg-price span { color: var(--soft); font-size: 14px; }
.lg-plus { margin: 0; color: #c9b6ff; font-size: 13.5px; }
.lg-what { margin: 6px 0 0; color: #b6c3dd; font-size: 14px; line-height: 1.5; }
.lg-example { display: flex; align-items: center; gap: 12px; margin: 14px 0 0 !important; padding: 14px 16px; border-radius: 14px; background: #ffffff08; box-shadow: inset 0 0 0 1px var(--line); }
.lg-example .ic { color: var(--gold); }
.lg-steps { counter-reset: step; display: grid; gap: 12px; margin: 4px 0 14px; padding: 0 !important; list-style: none; }
.lg-steps li { counter-increment: step; position: relative; display: grid; gap: 2px; margin: 0 !important; padding: 14px 16px 14px 62px; border-radius: 14px; background: #ffffff06; box-shadow: inset 0 0 0 1px var(--line); }
.lg-steps li::before { content: counter(step); position: absolute; left: 14px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; border-radius: 11px;
  color: #062012; background: linear-gradient(180deg, #62f08f, #3ddc6f); font: 800 15px/1 var(--display); }
.lg-steps li:not(:last-child)::after { content: ''; position: absolute; left: 30px; bottom: -13px; width: 2px; height: 14px; background: #3ddc6f66; }
.lg-steps b { color: var(--head); }
.lg-steps span { color: var(--soft); font-size: 14.5px; }

/* ---------- Contacts ---------- */
.lg-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 6px; }
.lg-contact { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 18px; color: var(--text); text-decoration: none; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s; }
a.lg-contact[href]:hover { color: var(--text); transform: translateY(-4px); background: var(--glass-hi); box-shadow: inset 0 0 0 1px var(--line-hi), 0 24px 44px -24px #5ee2ff66; }
.lg-contact > .ic { padding: 12px; width: 50px; height: 50px; border-radius: 15px; color: var(--cyan); background: linear-gradient(145deg, #1a2c4d, #0f1830); box-shadow: inset 0 0 0 1px var(--line-hi); }
.lg-contact span { display: grid; gap: 2px; min-width: 0; }
.lg-contact small { color: var(--soft); font-size: 13px; }
.lg-contact b { color: var(--head); font-size: 16.5px; overflow-wrap: anywhere; }
.lg-contact em { color: #7f93b0; font-style: normal; font-size: 13px; }
.lg-req { display: grid; gap: 0; margin: 0; }
.lg-req div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lg-req div:last-child { border-bottom: 0; }
.lg-req dt { color: var(--soft); }
.lg-req dd { margin: 0; color: var(--head); font-weight: 600; }

/* Owner data not filled yet: impossible to miss before publishing. */
mark.todo { padding: 1px 6px; border-radius: 6px; color: #2b1a00; background: var(--gold); -webkit-text-fill-color: #2b1a00; }

/* ---------- Footer ---------- */
.lg-foot { border-top: 1px solid var(--line); background: #060a13cc; }
.lg-foot-in { max-width: 1240px; margin: 0 auto; padding: 28px 28px 44px; color: var(--soft); font-size: 13.5px; }
.lg-foot p { margin: 0 0 6px; }
.lg-foot b { color: var(--text); }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; }
.lg-foot nav a { color: #9fb2cb; text-decoration: none; }
.lg-foot nav a:hover { color: var(--head); text-decoration: underline; }
.lg-mojang { color: #6f82a1; }

/* ---------- Reveal on scroll (only when legal.js runs and motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rv] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
  .js [data-rv].rv-in { opacity: 1; transform: none; }
}

/* ---------- Cookie policy: tables built from shared/cookie-registry.mjs, the «Настройки cookie» button ---------- */
.lg-table { overflow-x: auto; margin: 0 0 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.lg-table th { padding: 10px 12px; text-align: left; font-weight: 700; color: var(--head); background: #ffffff08; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lg-table td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid #ffffff0a; }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-table code { font-size: 13px; color: var(--cyan); overflow-wrap: break-word; }
.lg-table td:first-child { min-width: 130px; }
.lg-table td:nth-child(2) { min-width: 110px; }
.lg-table td:nth-child(3) { min-width: 260px; }
.lg-cookie-btn { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 12px; padding: 10px 16px; border: 0; border-radius: 12px; cursor: pointer; font: 700 14px var(--body); color: #04260f; background: linear-gradient(180deg, #8ff5ae, var(--green) 55%, #1d9447); box-shadow: inset 0 -3px 0 #0f6b30; text-decoration: none; }
.lg-cookie-btn:hover { filter: brightness(1.08); }
.lg-cookie-btn.lg-cookie-alt { color: var(--head); background: #ffffff12; box-shadow: inset 0 0 0 1px #ffffff2e; }
[data-cookie-state] { color: var(--head); }
.lg-foot .lg-cookie-link { color: inherit; }
/* ---------- Phones and tablets ---------- */
@media (max-width: 980px) {
  .lg-wrap { grid-template-columns: 1fr; gap: 18px; }
  .lg-side { position: static; max-height: none; overflow: visible; }
  .lg-docs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .lg-docs a { flex: none; white-space: nowrap; background: #ffffff08; }
  .lg-toc { display: none; }
  .lg-tiers { grid-template-columns: 1fr; gap: 18px; }
  .lg-vords { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .lg-top { gap: 10px; padding: 12px 16px; }
  .lg-quick { display: none; }
  .lg-site { margin-left: auto; }
  .lg-hero { padding: 34px 16px 22px; }
  .lg-wrap { padding: 4px 16px 48px; }
  .lg-intro, .lg-sec, .lg-short { padding: 20px 18px; border-radius: 18px; }
  .lg-sec h2 { gap: 10px; }
  .lg-num { min-width: 36px; height: 36px; border-radius: 11px; }
  .lg-plus-card { grid-template-columns: 1fr; gap: 16px; }
  .lg-contacts { grid-template-columns: 1fr; }
  .lg-req div { grid-template-columns: 1fr; gap: 2px; }
  .lg-ladder { gap: 6px; }
  .lg-ladder span { font-size: 11.5px; }
  .lg-foot-in { padding: 24px 16px 36px; }
}
@media print {
  body { background: #fff; color: #000; }
  .lg-sky, .lg-progress, .lg-side, .lg-quick, .lg-site { display: none; }
  .lg-wrap { display: block; }
  .lg-intro, .lg-sec, .lg-short { box-shadow: none; background: none; padding: 0; }
  .lg-hero h1 { -webkit-text-fill-color: #000; }
  a { color: #000; }
}
