/* Юридические страницы — поверх общего стиля сайта (`styles.css`).
 * Один документ в колонку, читаемая мера строки, таблицы прокручиваются.
 * 🛑 Сама разметка страниц СОБИРАЕТСЯ (`build-legal.mjs`) из текстов
 * приложения — руками html не править, правка уедет при следующей сборке. */

main.legal { padding: 56px 0 80px; }
main.legal .container { max-width: 820px; }

.page-title {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800; letter-spacing: -1.2px; line-height: 1.1;
  /* Немецкий заголовок — одно длинное слово («Nutzungsbedingungen»): на 360 px
     оно шире колонки и распирало страницу вбок. Перенос по слогам берёт язык
     из `lang` страницы; разрыв слова — запасной путь, где словаря нет. */
  hyphens: auto; overflow-wrap: break-word;
}
.last-updated { color: var(--text-dim); font-size: 14px; margin-top: 12px; margin-bottom: 40px; }

main.legal h2.section-title {
  font-size: 21px; font-weight: 700; letter-spacing: -.3px; line-height: 1.3;
  margin: 40px 0 14px; padding-top: 28px;
  border-top: 1px solid var(--border-hairline);
  max-width: none;
}
main.legal h2.section-title:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

main.legal p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
main.legal strong { color: var(--text-primary); font-weight: 600; }
main.legal a { color: var(--accent); text-decoration: none; }
main.legal a:hover { text-decoration: underline; }

main.legal ul { margin: 0 0 16px 0; padding-left: 22px; }
main.legal li { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 8px; }

/* Таблица провайдеров: на узком экране прокручивается внутри своей рамки,
 * а не растягивает страницу. */
.tbl-wrap {
  overflow-x: auto; margin: 8px 0 20px;
  border: 1px solid var(--border-hairline); border-radius: 16px; background: var(--surface-2);
}
main.legal table { border-collapse: collapse; width: 100%; min-width: 560px; }
main.legal th, main.legal td {
  text-align: left; padding: 14px 16px; font-size: 14px; line-height: 1.55;
  border-bottom: 1px solid var(--border-hairline); color: var(--text-muted);
  vertical-align: top;
}
main.legal th {
  color: var(--text-primary); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; background: var(--surface-3);
}
main.legal tr:last-child td { border-bottom: none; }

.back-home { margin-top: 48px; }
.back-home a { color: var(--text-muted); }
