/* Юридические страницы app-boo.com. Подключается после site.css: шрифт Inter и палитра (--cream, --ink,
   --teal, --night, --coin) берутся оттуда. Курсива нет, красного нет, скриптов нет. */

html.lg-html { background: var(--cream); scroll-behavior: auto; scroll-padding-top: 16px; }
body.lg {
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--cream); color: var(--ink);
  font-size: 18px; line-height: 1.6;
}
.lg :focus-visible { outline-color: var(--teal); }
.lg .skip:focus-visible { outline-color: var(--ink); }

/* ---------- шапка ---------- */
.lg-hdr { border-bottom: 1px solid rgba(28, 25, 20, .14); }
.lg-hdr__in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 10px; padding-bottom: 10px; }
.lg-logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--teal); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; }
.lg-logo img { width: 40px; height: 40px; }
.lg-lang { display: inline-flex; margin-left: auto; padding: 2px; gap: 2px; border-radius: 999px; background: rgba(17, 102, 111, .1); }
.lg-lang a, .lg-lang span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px;
  border-radius: 999px; font-size: 16px; font-weight: 700; letter-spacing: .02em; color: var(--teal); text-decoration: none;
}
.lg-lang span { background: var(--teal); color: var(--cream); }
.lg-nav { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 0 18px; }
.lg-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); font-size: 16px; text-decoration: none; }
.lg-nav a:hover { text-decoration: underline; text-underline-offset: .22em; }
.lg-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 2px; }
@media (min-width: 900px) {
  .lg-nav { order: 2; flex-basis: auto; margin-left: 24px; }
  .lg-lang { order: 3; margin-left: auto; }
  .lg-hdr__in { flex-wrap: nowrap; }
}

/* ---------- текст ---------- */
/* site.css красит main в цвет раздела главной — здесь фон остаётся страницы */
.lg main.lg-main { flex: 1; position: static; z-index: auto; background: transparent; }
.lg-doc { max-width: 46rem; margin-inline: auto; padding-top: 32px; padding-bottom: 64px; overflow-wrap: break-word; }
/* h1: нижняя граница 32px сжимается на узком экране так, чтобы самое длинное слово («конфиденциальности» ≈ 10,5 em) влезало в колонку:
   ширина колонки (100vw без двух полей) / 11. От 389px и шире нижняя граница снова 32px — вид как был; на 320px ≈ 26px, на 360px ≈ 30px. */
.lg-doc h1 { font-size: clamp(min(32px, calc((100vw - 2 * var(--gutter)) / 11)), 7.4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 20px; text-wrap: balance; }
.lg-doc section { margin-top: 36px; scroll-margin-top: 16px; }
.lg-doc h2 { font-size: clamp(22px, 5.4vw, 28px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.lg-doc h3 { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 20px 0 6px; }
.lg-doc p { margin: 0 0 14px; text-wrap: pretty; }
.lg-doc ul, .lg-doc ol { margin: 0 0 14px; padding-left: 1.4em; }
.lg-doc ul { list-style: disc; }
.lg-doc ol { list-style: decimal; }
.lg-doc li { margin: 0 0 6px; padding-left: .2em; }
.lg-doc a { color: var(--teal); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
.lg-doc strong, .lg-doc b { font-weight: 700; }
.lg-doc address, .lg-doc cite, .lg-doc dfn, .lg-doc var, .lg-doc em, .lg-doc i { font-style: normal; font-weight: 600; }
.lg-doc blockquote { margin: 0 0 14px; padding: 4px 0 4px 16px; border-left: 3px solid var(--teal); }

/* таблицы: внутри обёртки; страница вширь не растёт */
.lg-table { margin: 0 0 20px; overflow-x: auto; border: 1px solid rgba(28, 25, 20, .14); border-radius: 12px; }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.lg-table th, .lg-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(28, 25, 20, .12); overflow-wrap: anywhere; }
.lg-table th { font-weight: 700; background: rgba(17, 102, 111, .08); }
.lg-table tr:last-child td { border-bottom: 0; }
/* узкий экран: таблица раскладывается, а не рвёт слова по буквам */
@media (max-width: 520px) {
  /* «название — значение»: заголовок строки встаёт над значением */
  .lg-table th[scope="row"], .lg-table th[scope="row"] + td { display: block; }
  .lg-table th[scope="row"] { border-bottom: 0; padding-bottom: 2px; }
  .lg-table th[scope="row"] + td { padding-top: 2px; }
  /* таблица с шапкой: шапка уходит из вида (скринридеру остаётся), каждая ячейка подписана своей колонкой (data-label) */
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lg-table td[data-label] { display: block; border-bottom: 0; padding: 2px 12px; }
  .lg-table td[data-label]::before { content: attr(data-label); display: block; font-weight: 700; }
  .lg-table td[data-label]:first-child { padding-top: 10px; }
  .lg-table td[data-label]:last-child { padding-bottom: 10px; border-bottom: 1px solid rgba(28, 25, 20, .12); }
  .lg-table tr:last-child td[data-label]:last-child { border-bottom: 0; }
}

/* пустое поле company.json */
mark.ph { background: var(--coin); color: var(--ink); padding: 0 .25em; border-radius: 4px; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- подвал ---------- */
.lg-ftr { background: var(--night); color: var(--night-text); }
.lg-ftr :focus-visible { outline-color: var(--coin); }
.lg-ftr__in { display: grid; gap: 28px; padding-top: 48px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.lg-ftr__brand { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.lg-ftr__brand img { width: 56px; height: 56px; grid-row: span 2; }
.lg-ftr__word { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.lg-ftr__tag, .lg-ftr__reqs, .lg-ftr__copy { font-size: 16px; color: rgba(234, 232, 227, .74); }
.lg-ftr__links { display: grid; gap: 4px; }
.lg-ftr__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; color: var(--night-text); text-decoration-color: rgba(234, 232, 227, .35); }
.lg-ftr__links a:hover { text-decoration-color: var(--coin); }
.lg-ftr__meta { display: grid; gap: 12px; align-content: start; }
@media (min-width: 768px) {
  .lg-ftr__in { grid-template-columns: 1.2fr 1fr 1.2fr; align-items: start; padding-top: 64px; }
}
