/* Юридические страницы (privacy, terms). Макет — template/staticpage.html (1440 и 390). */

html { scroll-behavior: smooth; }
body {
  margin: 0; background: #0B0A10; color: #EDEAF5;
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #6A45F5; }
a:hover { color: #4B2CD6; }

/* ширина контента как у макета: 1328 при 1440 */
.lg-wrap { width: min(1328px, 100% - 112px); margin-inline: auto; box-sizing: border-box; }

.lg-page { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.lg-glow, .lg-noise { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lg-glow { background: radial-gradient(ellipse 80% 420px at 50% 0%, #1A1233 0%, #0E0B18 60%, transparent 100%) no-repeat; }
.lg-noise {
  opacity: .45; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.3'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* шапка */
.lg-header { position: relative; z-index: 1; padding-top: 36px; display: flex; justify-content: space-between; align-items: center; }
.lg-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.lg-mark {
  width: 46px; height: 26px; border-radius: 13px; background: #050408; box-shadow: 0 0 0 1px #3A2F66;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.lg-mark-squint { width: 9px; height: 5px; border-radius: 0 0 9px 9px; background: #F4F1FF; transform: rotate(-12deg); margin-top: 3px; }
.lg-mark-eye { width: 11px; height: 11px; border-radius: 50%; background: #F4F1FF; display: flex; align-items: center; justify-content: center; }
.lg-mark-eye > span { width: 5px; height: 5px; border-radius: 50%; background: #0B0A10; }
.lg-wordmark { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: #EDEAF5; }
.lg-back {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #A59FBD; text-decoration: none;
}
.lg-back:hover { color: #EDEAF5; }
.lg-brand:focus-visible, .lg-back:focus-visible { outline: 2px solid #EDEAF5; outline-offset: 4px; border-radius: 4px; }

/* заголовок */
.lg-hero { position: relative; z-index: 1; padding: 56px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.lg-eyebrow { display: flex; align-items: center; justify-content: center; gap: 20px; }
.lg-eyebrow__rail { width: 120px; height: 1px; flex-shrink: 0; }
.lg-eyebrow__rail--l { background: linear-gradient(90deg, transparent, #8B6CFF); }
.lg-eyebrow__rail--r { background: linear-gradient(90deg, #8B6CFF, transparent); }
.lg-eyebrow__text {
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 15px; letter-spacing: 0.34em;
  text-transform: uppercase; color: #D9D2F5; white-space: nowrap;
}
.lg-hero h1 { margin: 0; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 56px; line-height: 1.05; letter-spacing: -0.035em; color: #EDEAF5; }
.lg-meta { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #8C86A3; }

/* белая карточка с текстом */
.lg-card {
  position: relative; z-index: 1; flex-grow: 1;
  padding: 72px; border-radius: 28px 28px 0 0; background: #FFFFFF;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(169,150,255,.18);
  display: flex; flex-direction: column; gap: 40px;
}
.lg-lead { font-size: 19px; line-height: 1.65; color: #5B5470; max-width: 760px; margin: 0; }
.lg-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }

.lg-toc { position: sticky; top: 24px; }
.lg-toc__label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #8C86A3;
  padding-bottom: 12px; border-bottom: 1px solid #E4DEF5;
}
.lg-toc a { display: block; padding: 7px 0; color: #5B5470; text-decoration: none; font-size: 14px; line-height: 1.4; border-bottom: 1px solid #F0EDF8; }
.lg-toc a:last-child { border-bottom: 0; }
.lg-toc a:hover { color: #6A45F5; }
.lg-toc a span { display: inline-block; width: 30px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #9A93B8; }

.lg-sections { display: flex; flex-direction: column; gap: 36px; }
.lg-sections > section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.lg-sections > section + section { border-top: 1px solid #F0EDF8; padding-top: 36px; }
.lg-sec-head { display: flex; align-items: baseline; gap: 14px; }
.lg-sec-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; color: #6A45F5; letter-spacing: 0.06em; }
.lg-sec-head h2 { margin: 0; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: #12101A; }

.lg-body p, .lg-body li { font-size: 17px; line-height: 1.75; color: #2A2438; }
.lg-body p { margin: 0 0 16px; }
.lg-body ul { margin: 0 0 16px; padding-left: 22px; }
.lg-body li { margin-bottom: 6px; }
.lg-body > :last-child { margin-bottom: 0; }
.lg-body strong { font-weight: 600; color: #12101A; }

.lg-table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 0 0 1px #F0EDF8; margin-top: 6px; }
.lg-table { width: 100%; border-collapse: collapse; background: #FCFBFF; }
.lg-table th {
  text-align: left; padding: 14px 18px; background: #F5F2FF; border-bottom: 1px solid #E4DEF5;
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #5B5470;
}
.lg-table td { padding: 14px 18px; font-size: 15px; line-height: 1.6; color: #2A2438; border-bottom: 1px solid #F0EDF8; vertical-align: top; }
.lg-table tr:last-child td { border-bottom: 0; }

.lg-note { display: flex; gap: 14px; padding: 18px 22px; border-radius: 12px; background: #F5F2FF; border-left: 3px solid #6A45F5; }
.lg-note svg { flex-shrink: 0; margin-top: 1px; }
.lg-note div { font-size: 16px; line-height: 1.65; color: #2A2438; }

.lg-card-foot { border-top: 1px solid #F0EDF8; padding-top: 40px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #9A93B8; }

/* что ещё нужно вписать перед публикацией */
.lg-todo { background: #FFF1C2; color: #6B4E00; border-radius: 4px; padding: 0 4px; }

/* футер (partials/footer.php, оформление — footer.css) */
.lg-page .wub-footer { position: relative; z-index: 1; width: min(1328px, 100% - 112px); margin-inline: auto; padding: 36px 0 40px; }

/* мобильный (MobileV2 legal, 390) */
@media (max-width: 639px) {
  .lg-wrap { width: calc(100% - 48px); }
  .lg-header { padding-top: 24px; }
  .lg-brand { gap: 11px; }
  .lg-mark { width: 38px; height: 22px; border-radius: 11px; gap: 4px; }
  .lg-mark-squint { width: 7px; height: 4px; border-radius: 0 0 7px 7px; }
  .lg-mark-eye { width: 9px; height: 9px; }
  .lg-mark-eye > span { width: 4px; height: 4px; }
  .lg-wordmark { font-size: 18px; }
  .lg-back { font-size: 11px; }

  .lg-hero { padding: 40px 0 30px; gap: 16px; }
  .lg-eyebrow { gap: 6px; }
  .lg-eyebrow__rail { width: 36px; }
  .lg-eyebrow__text { font-size: 11px; letter-spacing: 0.24em; }
  .lg-hero h1 { font-size: 32px; }
  .lg-meta { font-size: 11px; }

  .lg-card.lg-wrap { width: calc(100% - 24px); }
  .lg-card { padding: 24px; border-radius: 20px 20px 0 0; gap: 28px; }
  .lg-lead { font-size: 16px; }
  .lg-layout { display: block; }
  .lg-toc { display: none; }
  .lg-sections { gap: 28px; }
  .lg-sections > section { gap: 12px; }
  .lg-sections > section + section { padding-top: 28px; }
  .lg-sec-num { font-size: 11px; }
  .lg-sec-head h2 { font-size: 20px; }
  .lg-body p, .lg-body li { font-size: 15.5px; }
  .lg-table th { padding: 10px 12px; font-size: 11px; }
  .lg-table td { padding: 10px 12px; font-size: 13px; }
  .lg-note { padding: 14px 16px; }
  .lg-note div { font-size: 14px; }
  .lg-card-foot { padding-top: 28px; font-size: 11px; }

  .lg-page .wub-footer {
    width: calc(100% - 48px); padding: 28px 0 30px;
    flex-direction: column; align-items: flex-start; gap: 14px; font-size: 11px;
  }
  .wub-footer__right, .wub-footer__links { gap: 16px; }
}

/* телефоны и планшеты: без режима наложения у зерна (дешевле для iOS) */
@media (hover: none) and (pointer: coarse) {
  .lg-noise { mix-blend-mode: normal; opacity: .18; }
}
