/* KIBERHUB — юридические страницы. Область стилей изолирована от остальных разделов. */
.kb-legal-page{--kl-ink:#152237;--kl-muted:#69778b;--kl-blue:#195be4;--kl-border:#e5eaf2;--kl-soft:#f5f8fe;padding-bottom:66px;color:var(--kl-ink)}
.kb-legal-page *, .kb-legal-page *::before,.kb-legal-page *::after{box-sizing:border-box}
.kb-legal-page a{transition:color .18s,background .18s,border-color .18s}
.kb-legal-header{margin:12px 0 24px;padding:32px 36px;border-radius:22px;background:linear-gradient(117deg,#112748,#19447e 77%,#2355a8);color:#fff;position:relative;overflow:hidden}
.kb-legal-header::after{content:"";position:absolute;width:240px;height:240px;right:-80px;top:-130px;border:1px solid rgba(255,255,255,.2);border-radius:50%;box-shadow:0 0 0 42px rgba(255,255,255,.035),0 0 0 92px rgba(255,255,255,.025);pointer-events:none}
.kb-legal-label{display:inline-flex;align-items:center;gap:9px;color:#c5d9ff;font-weight:700;letter-spacing:.045em;text-transform:uppercase;font-size:.74rem}
.kb-legal-header h1{position:relative;z-index:1;margin:11px 0 7px;font-size:clamp(1.65rem,3.1vw,2.65rem);line-height:1.18;letter-spacing:-.035em;font-weight:800;color:#fff}
.kb-legal-header p{margin:0;color:#c6d6ee;font-size:.9rem}
.kb-legal-layout{display:grid;grid-template-columns:minmax(235px,275px) minmax(0,1fr);gap:24px;align-items:start}
.kb-legal-asidebox{position:sticky;top:86px;border:1px solid var(--kl-border);border-radius:18px;background:#fff;padding:16px;box-shadow:0 8px 28px rgba(21,34,55,.035);max-height:calc(100vh - 105px);overflow-y:auto;scrollbar-width:thin}
.kb-legal-navhead{margin:0 0 13px;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#7a889e}
.kb-legal-switch{display:flex;flex-direction:column;gap:5px;padding-bottom:14px;border-bottom:1px solid var(--kl-border)}
.kb-legal-switch a{display:flex;align-items:center;gap:10px;border-radius:10px;padding:10px;color:#34435b;font-size:.88rem;text-decoration:none;font-weight:700}
.kb-legal-switch a i{width:18px;color:#7b8ba2;text-align:center}
.kb-legal-switch a.active{color:#1854ce;background:#eaf2ff}
.kb-legal-switch a.active i{color:#1854ce}
.kb-legal-switch a:hover,.kb-legal-toc a:hover{background:#f3f7ff;color:#195be4}
.kb-legal-toc{margin-top:13px}
.kb-legal-toc summary{cursor:pointer;list-style-position:inside;font-weight:800;font-size:.87rem;color:#253653;margin-bottom:8px}
.kb-legal-toc nav{display:flex;flex-direction:column;gap:2px;padding-left:2px}
.kb-legal-toc nav a{padding:7px 9px;border-radius:9px;font-size:.82rem;line-height:1.3;text-decoration:none;color:#596980}
.kb-legal-contact{margin-top:13px;padding:13px 10px 2px;display:flex;align-items:center;gap:8px;border-top:1px solid var(--kl-border);font-size:.83rem;font-weight:700;text-decoration:none;color:var(--kl-blue)}
.kb-legal-main{min-width:0;display:flex;flex-direction:column;gap:14px}
.legal-intro,.legal-section,.kb-legal-end{background:#fff;border:1px solid var(--kl-border);border-radius:18px;padding:27px 30px;box-shadow:0 8px 28px rgba(21,34,55,.032)}
.legal-intro{background:linear-gradient(180deg,#f6f9ff,#fff);border-color:#dce7f8}
.legal-kicker{display:flex;gap:9px;align-items:center;color:#2558b5;font-weight:800;font-size:.8rem;text-transform:uppercase;letter-spacing:.055em;margin-bottom:12px}
.legal-lead{font-size:1.045rem!important;line-height:1.74!important;color:#263c59!important;margin:0 0 14px!important}
.legal-meta{font-size:.8rem!important;color:#7a879a!important;margin:0!important}
.legal-section{scroll-margin-top:88px}
.legal-section h2{display:flex;align-items:center;gap:12px;font-size:1.18rem;line-height:1.36;letter-spacing:-.016em;font-weight:800;color:#172e52;margin:0 0 18px}
.legal-section h2 span{display:grid;place-items:center;flex:none;font-size:.73rem;font-weight:850;letter-spacing:0;width:30px;height:30px;border-radius:10px;background:#eaf1ff;color:#195be4}
.legal-section p,.legal-section li{font-size:.92rem;line-height:1.78;color:#42516a}
.legal-section p{margin:0 0 13px}.legal-section p:last-child{margin-bottom:0}
.legal-section strong{color:#243752;font-weight:750}
.legal-section a,.kb-legal-end a{color:#1d58c5;text-decoration:none;font-weight:650;overflow-wrap:anywhere}
.legal-section a:hover,.kb-legal-end a:hover{text-decoration:underline;color:#0f3b9d}
.legal-section ul,.legal-section ol{margin:0 0 14px;padding-left:21px}.legal-section li{padding-left:3px;margin:0 0 8px}
.legal-note{border-left:3px solid #3977db;background:#f4f7fd;padding:12px 15px;border-radius:0 10px 10px 0;font-size:.85rem!important}
.legal-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.legal-details>div{background:#f5f7fb;border:1px solid #edf0f5;border-radius:11px;padding:12px 14px;min-width:0}
.legal-details dt{font-size:.73rem;color:#8490a4;font-weight:700;margin-bottom:5px}
.legal-details dd{font-size:.89rem;line-height:1.4;font-weight:750;color:#243750;margin:0;overflow-wrap:anywhere}
.legal-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--kl-border);border-radius:12px;margin:16px 0}
.legal-table{border-collapse:collapse;width:100%;min-width:590px;font-size:.81rem;line-height:1.65}
.legal-table th{padding:12px 14px;text-align:left;background:#edf3fd;color:#294365;font-weight:800;border-bottom:1px solid #dce6f5}
.legal-table td{padding:14px;vertical-align:top;border-bottom:1px solid #eaf0f7;color:#56657a}
.legal-table tbody tr:last-child td{border-bottom:0}
.legal-table tbody tr:nth-child(even){background:#fafcff}
.legal-table td:first-child{min-width:155px}.legal-table td strong{color:#2b3b56}
.kb-legal-end{background:#f7faff;display:flex;align-items:center;justify-content:space-between;gap:18px}
.kb-legal-end p{margin:0;line-height:1.6;color:#586881;font-size:.85rem}
.kb-legal-top{white-space:nowrap;font-size:.83rem}
.kb-legal-top i{margin-right:5px}
@media(max-width:991px){.kb-legal-layout{grid-template-columns:1fr;gap:14px}.kb-legal-asidebox{position:static;max-height:none}.kb-legal-switch{flex-direction:row;flex-wrap:wrap}.kb-legal-toc nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px}.kb-legal-header{padding:28px}}
@media(max-width:575px){.kb-legal-page{padding-bottom:44px}.kb-legal-header{margin-top:8px;border-radius:16px;padding:23px 20px}.kb-legal-header h1{font-size:1.65rem}.kb-legal-asidebox{padding:13px}.kb-legal-toc nav{grid-template-columns:1fr}.legal-intro,.legal-section,.kb-legal-end{padding:21px 18px;border-radius:14px}.legal-details{grid-template-columns:1fr}.legal-section h2{font-size:1.06rem;gap:9px}.legal-section p,.legal-section li{font-size:.89rem;line-height:1.7}.kb-legal-end{align-items:flex-start;flex-direction:column;gap:10px}}
@media(prefers-reduced-motion:reduce){.kb-legal-page a{transition:none}}
