/* ============================================================
   SAID VPN — shared styles (Blue Tech Theme)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  transition: background 0.4s;
}

:root,
[data-theme="dark"] {
  --bg: #050810; /* Глубокий темно-синий */
  --bg-1: #0a0f1c;
  --bg-2: #0f1626;
  --bg-card: rgba(13, 25, 48, 0.4);
  --bg-card-hov: rgba(20, 35, 65, 0.6);
  --bg-elev: rgba(13, 25, 48, 0.6);
  --line: #1a2a44;
  --line-hi: #2a4060;
  --text: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --text-4: #475569;
  --nav-bg: rgba(5, 8, 16, 0.7);
  --nav-bg-scroll: rgba(5, 8, 16, 0.9);
  
  --btn-primary-bg: #0066ff;
  --btn-primary-text: #ffffff;
  --btn-primary-hov: #0052cc;
  
  --accent-glow-1: rgba(0, 102, 255, 0.25); /* Синий */
  --accent-glow-2: rgba(0, 212, 255, 0.15); /* Голубой */
  --accent-glow-3: rgba(37, 99, 235, 0.1);  /* Индиго */
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-1: #ffffff;
  --bg-2: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hov: rgba(241, 245, 249, 0.9);
  --bg-elev: rgba(255, 255, 255, 0.9);
  --line: #e2e8f0;
  --line-hi: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --nav-bg-scroll: rgba(255, 255, 255, 0.95);
  
  --btn-primary-bg: #0066ff;
  --btn-primary-text: #ffffff;
  --btn-primary-hov: #0052cc;
  
  --accent-glow-1: rgba(0, 102, 255, 0.15);
  --accent-glow-2: rgba(0, 212, 255, 0.08);
  --accent-glow-3: rgba(37, 99, 235, 0.05);
}

:root {
  --blue: #0066ff;
  --cyan: #00d4ff;
  --green: #10b981;
  --amber: #f59e0b;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  transition: background 0.4s, color 0.4s;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--cyan); color: #000; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line-hi);
  border-radius: 5px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* BG GLOWS */
.bg-glows { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(140px); }
.glow-1 { width: 900px; height: 900px; top: -400px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, var(--accent-glow-1), transparent 60%); }
.glow-2 { width: 700px; height: 700px; top: 40%; right: -300px; background: radial-gradient(circle, var(--accent-glow-2), transparent 60%); }
.glow-3 { width: 600px; height: 600px; bottom: 10%; left: -200px; background: radial-gradient(circle, var(--accent-glow-3), transparent 60%); }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; height: 64px; background: var(--nav-bg); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-bottom: 1px solid var(--line); z-index: 100; transition: all 0.3s; }
.nav.scrolled { background: var(--nav-bg-scroll); border-bottom-color: var(--line-hi); }
.nav-inner { max-width: 1400px; height: 100%; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); transition: all 0.3s; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.08); box-shadow: 0 0 32px rgba(0, 212, 255, 0.7); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all 0.15s; white-space: nowrap; }
.nav-link:hover { color: var(--text); background: var(--bg-card-hov); }
.nav-link.active { color: var(--text); background: var(--bg-card-hov); }
.nav-right { display: flex; align-items: center; gap: 8px; }

.theme-toggle { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-hi); background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.theme-toggle:hover { background: var(--bg-card-hov); border-color: var(--text-3); }
.theme-toggle svg { width: 16px; height: 16px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.theme-toggle:hover svg { transform: rotate(20deg); }

.btn-nav { padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--btn-primary-text); background: var(--btn-primary-bg); text-decoration: none; border-radius: 8px; transition: all 0.15s; white-space: nowrap; box-shadow: 0 0 15px rgba(0, 102, 255, 0.3); }
.btn-nav:hover { background: var(--btn-primary-hov); transform: translateY(-1px); box-shadow: 0 0 25px rgba(0, 102, 255, 0.5); }

.burger { display: none; width: 36px; height: 36px; border: 1px solid var(--line-hi); background: transparent; border-radius: 8px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.burger span { display: block; width: 14px; height: 1.5px; background: var(--text); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-inner { padding: 0 20px; gap: 16px; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .btn-nav { padding: 7px 12px; font-size: 12px; }
}

.wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 32px 80px; position: relative; z-index: 10; }
@media (max-width: 900px) { .wrap { padding: 0 20px; } }

/* PAGE HEADER */
.page-header { padding: 160px 0 60px; text-align: center; }
.page-header h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 20px; animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.page-header h1 .grad { background: linear-gradient(120deg, #0066ff 0%, #00d4ff 50%, #2563eb 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradientShift 6s ease-in-out infinite; }
.page-header .sub { font-size: 17px; color: var(--text-2); max-width: 620px; margin: 0 auto; line-height: 1.6; animation: fadeUp 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* BTN */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 10px; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); border: none; cursor: pointer; }
.btn-primary { color: var(--btn-primary-text); background: var(--btn-primary-bg); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 4px 15px rgba(0, 102, 255, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 102, 255, 0.3); background: linear-gradient(135deg, #0066ff, #00d4ff); color: #fff; }
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost { color: var(--text); background: var(--bg-card); border: 1px solid var(--line-hi); }
.btn-ghost:hover { background: var(--bg-card-hov); border-color: var(--cyan); color: var(--cyan); }

/* HERO */
.hero { padding: 180px 0 100px; text-align: center; }
.hero h1 { font-size: clamp(44px, 7.5vw, 96px); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 28px; animation: fadeUp 0.8s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero h1 .grad { background: linear-gradient(120deg, #0066ff 0%, #00d4ff 50%, #2563eb 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradientShift 8s ease-in-out infinite; }
.hero h1 .dim { color: var(--text-3); }
.hero-sub { font-size: 19px; color: var(--text-2); max-width: 640px; margin: 0 auto 44px; line-height: 1.6; animation: fadeUp 0.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-bottom: 80px; flex-wrap: wrap; animation: fadeUp 0.8s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* PANEL (Telegram) */
.vk-panel { max-width: 980px; margin: 0 auto; border: 1px solid var(--line-hi); border-radius: 16px; background: var(--bg-1); overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 120px var(--accent-glow-1); animation: fadeUp 0.9s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; transition: background 0.4s, box-shadow 0.4s; text-align: left; }
.vk-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.vk-head-ava { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.vk-head-info { flex: 1; min-width: 0; }
.vk-head-name { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.vk-head-status { font-size: 12px; display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.vk-verify { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; color: #fff; font-size: 8px; font-weight: 900; }
.vk-head-menu { display: flex; gap: 3px; padding: 10px; color: var(--text-3); border-radius: 8px; }
.vk-head-menu span { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.vk-body { display: grid; grid-template-columns: 1fr; gap: 0; }
.vk-chat-box { padding: 20px; display: flex; flex-direction: column; gap: 12px; max-height: 400px; overflow-y: auto; text-align: left; }
.vk-chat-msg { display: flex; gap: 10px; align-items: flex-start; animation: vkFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vkFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.vk-chat-ava { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.vk-chat-bubble { flex: 1; min-width: 0; border-radius: 14px; border-top-left-radius: 4px; padding: 10px 14px; }
.vk-chat-author { font-size: 11px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.vk-chat-text { font-size: 13px; line-height: 1.45; word-break: break-word; }
.vk-chat-text code { color: var(--cyan); font-family: 'JetBrains Mono', monospace; font-size: 12px; background: rgba(0, 212, 255, 0.1); padding: 1px 5px; border-radius: 4px; font-weight: 600; }

/* TRUST */
.trust { padding: 60px 0 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); animation: fadeUp 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.trust-label { text-align: center; font-size: 12px; color: var(--text-3); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 32px; font-weight: 500; }
.trust-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 48px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.trust-item .check { color: var(--cyan); font-size: 15px; }
@media (max-width: 720px) { .trust-items { gap: 20px; } .trust-item { font-size: 13px; } }

/* HOME SECTIONS */
.home-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 80px 0; }
@media (max-width: 900px) { .home-sections { grid-template-columns: 1fr; } }
.home-card { padding: 32px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-card); text-decoration: none; color: var(--text); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
.home-card:hover { border-color: var(--line-hi); background: var(--bg-card-hov); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,212,255,0.1); }
.home-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; border: 1px solid var(--line-hi); position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); color: var(--cyan); background: rgba(0, 212, 255, 0.05); }
.home-card-icon svg { width: 22px; height: 22px; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; position: relative; z-index: 1; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.home-card:hover .home-card-icon { transform: scale(1.06) rotate(-4deg); border-color: var(--cyan); }
.home-card:hover .home-card-icon svg { transform: scale(1.08); }
.home-card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.home-card-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 18px; flex: 1; }
.home-card-link { font-size: 13px; font-weight: 600; color: var(--cyan); display: flex; align-items: center; gap: 6px; }

/* CTA */
.cta { text-align: center; padding: 100px 40px; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-glow-1), transparent 60%), var(--bg-card); }
@media (max-width: 720px) { .cta { padding: 60px 24px; } }
.cta h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.05; margin-bottom: 20px; }
.cta h2 .grad { background: linear-gradient(135deg, #0066ff, #00d4ff, #2563eb); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradientShift 6s ease-in-out infinite; }
.cta p { font-size: 17px; color: var(--text-2); max-width: 520px; margin: 0 auto 40px; line-height: 1.6; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-section { padding-bottom: 40px; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 40px 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--text-3); position: relative; z-index: 10; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.footer-brand { font-weight: 700; color: var(--text); }
.footer-sep { color: var(--text-4); }
.footer-right { display: flex; gap: 24px; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.footer-link { color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--cyan); }
.footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-3); }
@media (max-width: 720px) { .footer { flex-direction: column; text-align: center; } }

/* ============================================================
   PRICING & FEATURES & REFERRAL (Новые компоненты)
   ============================================================ */

/* Тарифы */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { padding: 32px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-card); transition: all 0.3s; position: relative; display: flex; flex-direction: column; }
.price-card:hover { border-color: var(--line-hi); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,102,255,0.15); }
.price-card.popular { border-color: var(--blue); background: linear-gradient(180deg, rgba(0,102,255,0.08), transparent); box-shadow: 0 0 30px rgba(0,102,255,0.15); }
.price-card.popular::before { content: 'Популярный'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 4px 10px rgba(0,102,255,0.4); }
.price-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.price-devices { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.price-list { list-style: none; margin-bottom: 32px; flex: 1; }
.price-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.price-list li::before { content: '✓'; color: var(--cyan); font-weight: 900; }
.price-amount { font-size: 32px; font-weight: 800; margin-bottom: 24px; font-family: 'JetBrains Mono', monospace; color: var(--text); }
.price-amount span { font-size: 14px; color: var(--text-3); font-weight: 400; }
.btn-price { width: 100%; justify-content: center; padding: 16px; }

/* Возможности (Features) */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 80px; }
@media (max-width: 720px) { .features-grid { grid-template-columns: 1fr; } }
.feature-item { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-card); transition: all 0.3s; }
.feature-item:hover { border-color: var(--line-hi); background: var(--bg-card-hov); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 102, 255, 0.1); border: 1px solid rgba(0, 102, 255, 0.3); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--cyan); }
.feature-icon svg { width: 22px; height: 22px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* Реферальная система */
.ref-card { background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.05)); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 24px; padding: 48px; text-align: center; margin-bottom: 40px; position: relative; overflow: hidden; }
.ref-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(0,212,255,0.1), transparent 60%); pointer-events: none; }
.ref-card h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; }
.ref-card p { font-size: 16px; color: var(--text-2); max-width: 500px; margin: 0 auto 32px; position: relative; z-index: 1; }
.ref-steps { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; position: relative; z-index: 1; }
.ref-step { background: var(--bg-1); border: 1px solid var(--line-hi); padding: 16px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.ref-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* Legal (Оферта / Политика) */
.legal-wrap { max-width: 860px; margin: 0 auto; padding: 48px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-card); }
.legal-wrap h2 { font-size: 22px; font-weight: 700; margin: 32px 0 16px; color: var(--text); }
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap p { font-size: 14.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }
.legal-wrap ul { margin-bottom: 16px; padding-left: 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(0, 212, 255, 0.3); }
.legal-wrap a:hover { color: var(--text); border-bottom-color: var(--text); }
@media (max-width: 720px) { .legal-wrap { padding: 24px 20px; } }

/* ============================================================
   LEGAL PAGES (Оферта / Политика конфиденциальности)
   ============================================================ */

.legal-section { 
  padding: 20px 0 100px; 
}

.legal-wrap {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--line-hi);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 48px 48px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 100px var(--accent-glow-1);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .legal-wrap {
  box-shadow: 0 30px 80px rgba(0,0,0,0.06), 0 0 100px var(--accent-glow-1);
  background: #ffffff;
}

/* Синяя полоска сверху */
.legal-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0066ff, #00d4ff, #2563eb);
  background-size: 200% 100%;
  animation: gradientShift 6s ease-in-out infinite;
}

@media (max-width: 720px) {
  .legal-wrap { padding: 28px 20px 32px; border-radius: 16px; }
}

/* Плашки мета-данных (Документ, Продукт, Редакция) */
.legal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .legal-meta { grid-template-columns: 1fr; }
}

.legal-meta-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[data-theme="light"] .legal-meta-item { background: #f8fafc; }

.legal-meta-item .label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  font-family: 'JetBrains Mono', monospace;
}

.legal-meta-item .value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* Оглавление (Содержание) */
.legal-toc {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  margin-bottom: 36px;
}

[data-theme="light"] .legal-toc { background: #f8fafc; }

.legal-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  padding: 0;
  margin: 0;
}

@media (max-width: 640px) {
  .legal-toc ol { grid-template-columns: 1fr; }
}

.legal-toc li { counter-increment: toc; }

.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
  line-height: 1.5;
}

.legal-toc a::before {
  content: counter(toc) ".";
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 18px;
}

.legal-toc a:hover { color: var(--cyan); }

/* Основной текст документа */
.legal-body {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.75;
}

.legal-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.legal-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body p {
  margin-bottom: 12px;
  color: var(--text-2);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-body p.legal-sub {
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-3);
}

.legal-body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.25);
  transition: all 0.2s;
}

.legal-body a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.legal-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.legal-body b, .legal-body strong {
  color: var(--text);
  font-weight: 600;
}

/* Кнопки внизу */
.legal-foot {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
  .legal-foot { flex-direction: column; }
  .legal-foot .btn { justify-content: center; }
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; /* Высота шапки */
  left: 0; right: 0;
  background: var(--bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  z-index: 99;
  padding: 12px 20px;
  flex-direction: column;
}
.mobile-menu.open { 
  display: flex; 
}
.mobile-menu a {
  display: block;
  padding: 14px 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}
.mobile-menu a:hover { 
  color: var(--text); 
  background: var(--bg-card-hov); 
}
.mobile-menu-sep {
  height: 1px;
  background: var(--line);
  margin: 8px 12px;
}