

/* Start:/bitrix/templates/seotemple/assets/styles/legal.css?179626769917826*/
/* Юридические страницы (/include/licenses_detail.php): свой первый экран с карточкой условий,
   ниже — текст документа по макету review-docs/consent.html (липкое содержание, карточка оператора,
   белая карточка документа). Штатный заголовок с крошками скрыт (HIDETITLE = Y). */
.st-legal {
  --legal-blue: var(--theme-base-color, #1a66ff);
  --legal-ink: #1b1b1b;
  --legal-text: #2f3542;
  --legal-muted: #606069;
  --legal-line: rgba(20, 41, 70, 0.09);
  --legal-soft: #eef3ff;
  --legal-shadow: 0 18px 48px rgba(20, 41, 70, 0.08);
  --legal-font: STMontserrat, Montserrat, Arial, sans-serif;
  /* ширина как у макета (.st-legal-main): шире контейнера сайта, по центру экрана */
  --legal-width: min(100vw - 64px, max(1360px, calc(100vw - var(--u, 0.75px) * 800)));
  width: var(--legal-width);
  margin-left: calc((100% - var(--legal-width)) / 2);
  padding-bottom: 84px;
  color: var(--legal-ink);
  font-family: var(--legal-font);
  font-size: 16px;
  line-height: 1.7;
}
.st-legal-hero p { margin: 0; }

.st-legal__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--legal-blue);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  box-shadow: 0 4px 14px rgba(20, 41, 70, 0.07);
}
.st-legal__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(26, 102, 255, 0.15); }

/* Первый экран */
.st-legal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  padding: 24px 0 80px; /* сверху уже есть отступ .main под шапку */
}
.st-legal-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -100vmax;
  background:
    radial-gradient(600px 360px at 78% 45%, rgba(26, 102, 255, 0.12), transparent 70%),
    radial-gradient(520px 320px at 12% 30%, rgba(170, 120, 255, 0.10), transparent 70%);
  pointer-events: none;
}
.st-legal-hero__title {
  margin: 24px 0 20px;
  font: 700 56px/1.08 var(--legal-font);
  letter-spacing: -0.01em;
  color: var(--legal-ink);
}
.st-legal-hero__accent { display: block; color: var(--legal-blue); font-style: italic; }
.st-legal-hero__lead { max-width: 560px; color: var(--legal-muted); font-size: 20px; font-weight: 500; line-height: 1.55; }
.st-legal-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.st-legal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border: 1.5px solid var(--legal-blue);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms, color 180ms, transform 180ms, box-shadow 180ms;
}
.st-legal-btn--primary { background: var(--legal-blue); color: #fff; box-shadow: 0 10px 24px rgba(26, 102, 255, 0.25); }
.st-legal-btn--primary:hover { background: var(--theme-more-color, #005ed8); border-color: var(--theme-more-color, #005ed8); color: #fff; transform: translateY(-1px); }
.st-legal-btn--ghost { background: #fff; color: var(--legal-blue); }
.st-legal-btn--ghost:hover { background: var(--legal-soft); color: var(--legal-blue); }

/* Карточка «Коротко о главном» */
.st-legal-card {
  padding: 28px;
  border: 1px solid var(--legal-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--legal-shadow);
  backdrop-filter: blur(6px);
}
.st-legal-card__head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; }
.st-legal-card__shield {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--legal-blue), #7a5cff);
  color: #fff;
}
.st-legal-card__shield svg { width: 28px; height: 28px; }
.st-legal-card__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.st-legal-card__sub { color: var(--legal-muted); font-size: 13px; line-height: 1.4; }
.st-legal-card__facts { margin: 0; }
.st-legal-card__fact { padding: 14px 0; border-top: 1px solid var(--legal-line); }
.st-legal-card__fact:last-child { padding-bottom: 0; }
.st-legal-card__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--legal-line); }
.st-legal-card__row .st-legal-card__fact { border-top: 0; padding-bottom: 14px; }
.st-legal-card__fact dt { margin-bottom: 6px; color: var(--legal-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.4; text-transform: uppercase; }
.st-legal-card__fact dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.st-legal-card__fact dd a { color: var(--legal-blue); text-decoration: none; }
.st-legal-card__fact dd a:hover { color: var(--legal-ink); }
.st-legal__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.st-legal__chips li { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--legal-soft); color: var(--legal-blue); font-size: 13px; font-weight: 600; line-height: 20px; }
.st-legal__chips li::before { display: none; }

@media (max-width: 1199px) {
  .st-legal-hero__title { font-size: 46px; }
}
@media (max-width: 1099px) {
  .st-legal { width: auto; margin-left: 0; padding-bottom: 64px; }
  .st-legal-hero { grid-template-columns: 1fr; gap: 36px; padding: 16px 0 56px; }
  .st-legal-hero__title { font-size: 40px; }
  .st-legal-hero__lead { font-size: 18px; }
}
@media (max-width: 600px) {
  .st-legal { font-size: 15px; }
  .st-legal-hero { padding: 12px 0 40px; gap: 28px; }
  .st-legal-hero__title { margin: 18px 0 14px; font-size: 30px; line-height: 1.15; }
  .st-legal-hero__lead { font-size: 16px; }
  .st-legal-hero__actions { flex-direction: column; margin-top: 24px; }
  .st-legal-btn { width: 100%; min-height: 52px; }
  .st-legal-card { padding: 20px; border-radius: 20px; }
  .st-legal-card__row { grid-template-columns: 1fr; gap: 0; }
  .st-legal-card__row .st-legal-card__fact + .st-legal-card__fact { border-top: 1px solid var(--legal-line); }
}

.st-legal-toc a:focus-visible {
  outline: 2px solid #1769ff;
  outline-offset: 2px;
}

/* Вкладки «Политика / Согласие» и кнопка печати под первым экраном (как в макете) */
.st-legal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 28px;
}

.st-legal-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f5;
  box-shadow: 0 4px 16px rgba(27, 45, 95, 0.04);
}

.st-legal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  color: #364057 !important;
  font-family: STMontserrat, Montserrat, Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.st-legal-tab:hover,
.st-legal-tab:focus {
  color: #1769ff !important;
  background: #f3f7ff !important;
}

.st-legal-tab.is-active,
.st-legal-tab.is-active:hover,
.st-legal-tab.is-active:focus {
  background: #1769ff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(23, 105, 255, 0.24);
}

.st-legal-tab:focus-visible,
.st-legal-print:focus-visible {
  outline: 2px solid #1769ff;
  outline-offset: 2px;
}

.st-legal-print {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid #dce3f3;
  background: #ffffff;
  color: #1b1b1b;
  font-family: STMontserrat, Montserrat, Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(27, 45, 95, 0.04);
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.st-legal-print:hover {
  border-color: #1769ff;
  color: #1769ff;
  background: #f5f8ff;
}

.st-legal-print svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Текст документа по макету: липкая боковая колонка + карточка документа */
.st-legal-grid { scroll-margin-top: 112px; }
.st-legal-grid {
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.st-legal-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 105, 255, 0.22) transparent;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 4px;
}

.st-legal-sidecard {
  background: #ffffff;
  border: 1px solid #e5ebf7;
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 6px 24px rgba(27, 45, 95, 0.04);
}

.st-legal-sidecard__kicker {
  margin: 0 0 12px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f7a94;
}

/* Table of contents (explicitly strips native Aspro ul li:before em-dash!) */
.st-legal-toc {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.st-legal-toc li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.st-legal-toc li::before,
.st-legal-toc li::after {
  content: none !important;
  display: none !important;
}

.st-legal-toc[hidden] {
  display: none;
}

.st-legal-toc a {
  display: block;
  padding: 7px 11px;
  border-radius: 10px;
  color: #3e4860;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.st-legal-toc a:hover {
  background: #f3f7ff;
  color: #1769ff;
}

.st-legal-toc a.is-active {
  background: #eef4ff;
  color: #1769ff;
  font-weight: 600;
}

/* Operator details side card */
.st-legal-operator__name {
  margin: 0 0 4px;
  padding: 0 10px;
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 700;
  color: #1b1b1b;
}

.st-legal-operator__brand {
  margin: 0 0 16px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7690;
}

.st-legal-operator__list {
  margin: 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.st-legal-operator__list dt {
  margin: 0 0 2px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7d88a2;
}

.st-legal-operator__list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 500;
  color: #263044;
  word-break: break-word;
}

.st-legal-operator__list dd a {
  color: #1769ff;
  text-decoration: none !important;
  transition: color 150ms ease;
}

.st-legal-operator__list dd a:hover {
  color: #0e4fd1;
  text-decoration: none !important;
}

.st-legal-operator__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 10px 0;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: #1769ff;
  text-decoration: none;
}

.st-legal-operator__more:hover {
  color: #1b1b1b;
}

/* Белая карточка документа */
.st-legal-sidebar,
.st-legal-doc,
.st-legal-panel,
.st-legal-section {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.st-legal-doc {
  background: #ffffff;
  border: 1px solid #e5ebf7;
  border-radius: 26px;
  padding: 42px 46px;
  box-shadow: 0 10px 34px rgba(27, 45, 95, 0.045);
}

.st-legal-panel[hidden] {
  display: none;
}

.st-legal-section {
  scroll-margin-top: 112px;
  margin-bottom: 34px;
}

.st-legal-section:last-child {
  margin-bottom: 0;
}

.st-legal-section h2 {
  margin: 0 0 16px !important;
  font-family: STMontserrat, Montserrat, Arial, sans-serif !important;
  font-size: 24px !important;
  line-height: 1.28 !important;
  font-weight: 700 !important;
  color: #1b1b1b !important;
  letter-spacing: -0.015em;
}

.st-legal-section p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: #30394d;
}

.st-legal-section p:last-child {
  margin-bottom: 0;
}

.st-legal-section strong {
  font-weight: 600;
  color: #1b1b1b;
}

.st-legal-section a {
  color: #1769ff;
  text-decoration: none !important;
  transition: color 150ms ease;
}

.st-legal-section a:hover {
  color: #0e4fd1;
  text-decoration: none !important;
}

.st-legal-list {
  margin: 10px 0 14px !important;
  padding: 0 0 0 20px !important;
  list-style: disc !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st-legal-list:last-child {
  margin-bottom: 0 !important;
}

.st-legal-list li {
  padding-left: 2px !important;
  margin: 0 !important;
  list-style: disc !important;
  font-size: 16px;
  line-height: 1.65;
  color: #30394d;
}

.st-legal-list li::before {
  content: none !important;
  display: none !important;
}

.st-legal-list li::marker {
  color: #1769ff;
}

/* Note callout inside document */
.st-legal-note {
  margin: 16px 0 0;
  padding: 15px 18px;
  border-radius: 14px;
  background: #f5f8ff;
  border: 1px solid #dde7ff;
  font-size: 14px;
  line-height: 1.58;
  color: #2c3852;
}

/* Data purposes & retention table + Requisites table */
.st-legal-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 14px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid #e4eaf7;
}

.st-legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.54;
  color: #2b3448;
  background: #ffffff;
}

.st-legal-table th {
  padding: 13px 15px;
  text-align: left;
  font-weight: 700;
  font-size: 13.5px;
  color: #1b1b1b;
  background: #f4f7ff;
  border-bottom: 1px solid #e2e9f8;
}

.st-legal-table td {
  padding: 13px 15px;
  vertical-align: top;
  border-bottom: 1px solid #eef2fa;
}

.st-legal-table tr:last-child td {
  border-bottom: 0;
}

.st-legal-kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.56;
}

.st-legal-kv th {
  width: 230px;
  padding: 11px 14px 11px 0;
  text-align: left;
  vertical-align: top;
  font-weight: 600;
  color: #5b657d;
  border-bottom: 1px solid #eef2fa;
}

.st-legal-kv td {
  padding: 11px 0;
  vertical-align: top;
  color: #1b1b1b;
  font-weight: 500;
  border-bottom: 1px solid #eef2fa;
}

.st-legal-kv tr:last-child th,
.st-legal-kv tr:last-child td {
  border-bottom: 0;
}

/* Mobile collapsible TOC (hidden on desktop) */
.st-legal-toc-mobile {
  display: none;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #e5ebf7;
  border-radius: 16px;
  overflow: hidden;
}

.st-legal-toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1b1b1b;
  cursor: pointer;
  list-style: none;
}

.st-legal-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.st-legal-toc-mobile summary svg {
  width: 16px;
  height: 16px;
  color: #1769ff;
  transition: transform 200ms ease;
}

.st-legal-toc-mobile[open] summary svg {
  transform: rotate(180deg);
}

.st-legal-toc-mobile__body {
  padding: 0 12px 12px;
  border-top: 1px solid #eef2fb;
}

/* Responsive */
@media (max-width: 991px) {
  .st-legal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .st-legal-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    order: 2;
  }
  .st-legal-sidebar .st-legal-sidecard--toc {
    display: none;
  }
  .st-legal-toc-mobile {
    display: block;
  }
  .st-legal-doc {
    order: 1;
    padding: 28px 24px;
    border-radius: 20px;
  }
}

@media (max-width: 600px) {
  .st-legal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .st-legal-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .st-legal-tab {
    padding: 8px 10px;
    font-size: 12.5px;
    text-align: center;
  }
  .st-legal-print {
    justify-content: center;
    width: 100%;
  }
  .st-legal-doc {
    padding: 22px 16px;
    border-radius: 18px;
  }
  .st-legal-section {
    padding-bottom: 22px;
    margin-bottom: 22px;
  }
  .st-legal-section h2 {
    font-size: 18px !important;
  }
  .st-legal-section p,
  .st-legal-list li {
    font-size: 14px;
  }
  .st-legal-kv th,
  .st-legal-kv td {
    display: block;
    width: 100%;
    padding: 4px 0;
    border-bottom: 0;
  }
  .st-legal-kv tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eef2fa;
  }
  .st-legal-kv tr:last-child {
    border-bottom: 0;
  }
}

/* Clean Print / PDF export */
@media print {
  header,
  footer,
  .header,
  .mega-fixed-menu,
  .mobileheader,
  .eyed-panel,
  .st-legal-hero,
  .st-legal-toolbar,
  .st-legal-sidebar,
  .st-legal-toc-mobile {
    display: none !important;
  }
  .st-legal,
  .st-legal-doc {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
  }
  .st-legal-grid {
    display: block !important;
  }
  .st-legal-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* End */
/* /bitrix/templates/seotemple/assets/styles/legal.css?179626769917826 */
