/* Shared legal pages (privacy / terms) — document layer, v6.
   Plain editorial layout in the site's monochrome: no chips, no icons, no
   gradient text, no card chrome. Left table of contents with a sliding
   indicator (scroll-spy), content column capped for reading. Overrides the
   older inline page CSS — this file is linked after it, so equal-specificity
   rules here win; a few `!important` where the inline rule is a gradient. */

.main { flex: 1 0 auto; width: 100%; max-width: 1120px; padding-top: 104px; }

/* ── Breadcrumb ─────────────────────────────────────────────────────── */
.crumb { font-size: 13px; color: rgba(255,255,255,.38); margin-bottom: 28px; gap: 8px; }
.crumb a { color: rgba(255,255,255,.38); }
.crumb a:hover { color: #fff; }
.crumb .sep { color: rgba(255,255,255,.22); }
.crumb .cur { color: rgba(255,255,255,.62); }

/* ── Title ──────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 30px; }
.page-title {
  font-size: clamp(30px, 4.2vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08;
  margin: 0; color: #fff;
  background: none !important; -webkit-text-fill-color: #fff !important; -webkit-background-clip: initial !important; background-clip: initial !important;
}
.page-meta, .meta-chip { display: none !important; }

/* ── Summary ("Ключевые условия") — plain, one left rule, no box ─────── */
.legal-lead {
  margin: 0 0 40px; padding: 4px 0 4px 20px;
  border: 0; border-left: 2px solid rgba(255,255,255,.16);
  border-radius: 0; background: none; box-shadow: none;
}
.legal-lead .lead-label {
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.45);
  letter-spacing: 0; text-transform: none; margin: 0 0 12px; display: block;
}
.legal-lead .lead-label::before { content: none; }
.key-terms { list-style: none; margin: 0; padding: 0; counter-reset: kt; display: grid; gap: 10px; }
.key-terms li {
  position: relative; padding-left: 28px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.78);
}
.key-terms li::before {
  content: counter(kt) "."; counter-increment: kt;
  position: absolute; left: 0; top: 0;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.35);
  font-variant-numeric: tabular-nums; width: auto; height: auto; border: 0; background: none; border-radius: 0;
  display: inline; line-height: 1.6;
}

/* ── Two columns ────────────────────────────────────────────────────── */
.doc-grid { display: grid; grid-template-columns: 216px minmax(0, 720px); gap: 64px; align-items: start; }
.content-card {
  background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; min-width: 0;
}

/* ── Table of contents: text links on a rail, sliding indicator ─────── */
.toc { position: sticky; top: 96px; }
.toc-title {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: rgba(255,255,255,.45); margin: 0 0 12px; padding-left: 16px;
}
.toc-inner {
  position: relative; display: flex; flex-direction: column; gap: 0;
  border-left: 1px solid rgba(255,255,255,.1); max-height: calc(100vh - 160px); overflow-y: auto; padding: 0;
  scrollbar-width: none;
}
.toc-inner::-webkit-scrollbar { display: none; }
.toc-ind {
  position: absolute; left: -1px; top: 0; width: 2px; height: 0; border-radius: 1px; background: #fff;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), height .2s ease; will-change: transform;
  pointer-events: none;
}
.toc-link {
  display: block; width: auto; padding: 7px 12px 7px 16px; border: 0; border-radius: 0;
  font-size: 13px; font-weight: 500; line-height: 1.4; color: rgba(255,255,255,.45);
  text-decoration: none; transition: color .16s ease; background: none !important;
}
.toc-link:hover { color: rgba(255,255,255,.85); background: none !important; }
.toc-link.act { color: #fff; background: none !important; border-color: transparent !important; }

/* ── Sections & body copy ───────────────────────────────────────────── */
.section { padding: 34px 0 12px; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 0; scroll-margin-top: 104px; }
.section:first-child { border-top: 0; padding-top: 0; }
.section:last-child { padding-bottom: 8px; }
.section-title {
  font-size: 18px; font-weight: 600; color: #fff; letter-spacing: -.02em; margin: 0 0 16px;
  display: block;
}
.section-title::before { content: none !important; }
.section p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.64); margin: 0 0 10px; }
.section p b, .section p strong, .section li b, .section li strong { color: #fff; font-weight: 600; }
.section a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; border: 0; }
.section a:hover { text-decoration-color: #fff; }
.section ul, .section ol { list-style: none; margin: 6px 0 12px; padding: 0; display: block; gap: 0; }
.section li { position: relative; padding-left: 18px; margin: 0 0 8px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.64); }
.section ul li::before {
  content: ""; position: absolute; left: 3px; top: .7em; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.32); box-shadow: none;
}

/* Numbered clauses ("2.1.") */
.clause { display: grid; grid-template-columns: 46px 1fr; gap: 0 8px; margin: 0 0 10px; }
.clause > .n {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.36); padding-top: 3px;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.clause > div p { margin: 0 0 6px; }
.clause > div p:last-child { margin-bottom: 0; }

/* Definitions: hairline rows, no box */
.defs { display: block; margin: 0 0 8px; border: 0; border-radius: 0; overflow: visible; }
.def { display: grid; grid-template-columns: 168px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); }
.def:first-child { border-top: 0; padding-top: 0; }
.def dt { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.def dd { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); margin: 0; }

/* ── Callouts: a left rule, small label, no fill ─────────────────────── */
.callout {
  position: relative; margin: 14px 0 6px; padding: 2px 0 2px 16px;
  border: 0; border-left: 2px solid rgba(255,255,255,.2); border-radius: 0; background: none;
  font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.64);
}
.callout::before {
  content: attr(data-label); display: block; margin-bottom: 4px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.5);
}
.callout:not([data-label])::before, .callout[data-label=""]::before { display: none; }
.callout p { margin: 0; color: inherit; font-size: inherit; }
.callout strong, .callout b { color: #fff; font-weight: 600; }
.callout.warn   { border-left-color: rgba(251,191,36,.6); background: none; }
.callout.warn::before   { color: #fbbf24; }
.callout.danger { border-left-color: rgba(239,68,68,.65); background: none; }
.callout.danger::before { color: #f87171; }
.callout.ok     { border-left-color: rgba(34,197,94,.6); background: none; }
.callout.ok::before     { color: #4ade80; }

/* ── Data list (privacy §2): rows, no tiles, no icons ────────────────── */
.data-grid { display: block; margin: 4px 0 12px; }
.data-card {
  display: grid; grid-template-columns: 168px 1fr; gap: 16px; padding: 12px 0;
  border: 0; border-top: 1px solid rgba(255,255,255,.07); border-radius: 0; background: none; transition: none;
}
.data-card:first-child { border-top: 0; padding-top: 0; }
.data-card:hover { border-color: rgba(255,255,255,.07); background: none; transform: none; }
.data-card .dc-ic { display: none; }
.data-card .dc-t { font-size: 14px; font-weight: 600; color: #fff; margin: 0; line-height: 1.5; }
.data-card .dc-d { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ── Contact: plain link ────────────────────────────────────────────── */
.contact-box {
  display: inline-flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 0;
  border: 0; border-radius: 0; background: none; text-decoration: none; transition: none;
}
.contact-box:hover { background: none; transform: none; }
.contact-box .cb-ic { display: none; }
.contact-box .cb-t { font-size: 15px; font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.contact-box:hover .cb-t { text-decoration-color: #fff; }
.contact-box .cb-s { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* Legacy market footer chrome (pages still using .ftr) */
.ftr {
  position: relative; z-index: 10; flex-shrink: 0; width: 100%; max-width: 1280px; margin: 0 auto; margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.06); padding: 20px clamp(16px,3vw,48px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 10px; color: rgba(255,255,255,.28); box-sizing: border-box;
}
.ftr > span:last-child { display: inline-flex; align-items: center; gap: 0; }
.ftr a { color: rgba(255,255,255,.28); text-decoration: none; margin-left: 12px; transition: color .18s; }
.ftr a:hover { color: rgba(255,255,255,.55); }
.ftr a.act { color: rgba(255,255,255,.45); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .doc-grid { grid-template-columns: 188px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 860px) {
  .doc-grid { grid-template-columns: 1fr; gap: 20px; }
  .legal-lead { margin-bottom: 28px; }
  /* TOC becomes a sticky horizontal strip of text links with an underline indicator */
  .toc {
    position: sticky; top: 64px; z-index: 20; margin: 0 -16px; padding: 8px 16px 0;
    background: rgba(0,0,0,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .toc-title { display: none; }
  .toc-inner {
    flex-direction: row; align-items: stretch; gap: 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1);
    overflow-x: auto; overflow-y: hidden; max-height: none; padding: 0;
  }
  .toc-ind { left: 0; top: auto; bottom: -1px; height: 2px; width: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), width .2s ease; }
  .toc-link {
    display: inline-block; width: auto; flex: 0 0 auto; white-space: nowrap;
    padding: 10px 12px 12px; font-size: 13px; border: 0; border-radius: 0; min-height: 0;
  }
  .toc-link.act { color: #fff; border: 0 !important; }
  .def, .data-card { grid-template-columns: 1fr; gap: 4px; }
  .clause { grid-template-columns: 38px 1fr; }
}
@media (max-width: 640px) {
  .main { padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
  .page-title { font-size: 28px; letter-spacing: -.03em; text-wrap: balance; }
  .toc { top: calc(56px + env(safe-area-inset-top, 0px)); }
  .section { scroll-margin-top: calc(56px + env(safe-area-inset-top, 0px) + 56px); }
  .section p, .section li, .key-terms li, .callout { font-size: 15.5px; line-height: 1.65; overflow-wrap: break-word; }
  .legal-lead { padding-left: 16px; }
  .ftr { font-size: 9px; padding: 14px clamp(14px,3vw,48px); flex-direction: column; gap: 6px; text-align: center; }
  .ftr a { margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .toc-ind { transition: none; }
}
