/* The legal pages (/privacy, /terms, their translations), made by scripts/legal.mjs: a long text,
   its lists and tables, in the frame of the small pages (pages.css). */
.lg__languages ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 28px; font-size: 14.5px; color: var(--text-3); }
.lg__languages [aria-current="page"] { color: var(--text); font-weight: 700; }
.lg p, .lg__list li, .lg td, .lg th { font-size: 16px; line-height: 1.65; color: var(--text-2); overflow-wrap: break-word; }
.lg h1 + p { margin-top: 18px; font-size: 15px; color: var(--text-3); }
.lg p { margin-top: 14px; }
.lg b { color: var(--text); font-weight: 700; }
.lg__h2 { margin-top: 44px; }
.lg__h3 { margin-top: 28px; font-weight: 700; font-size: 17px; line-height: 1.4; }
.lg__list { margin-top: 12px; padding-left: 1.25em; list-style: disc; display: grid; gap: 8px; }
.lg__list li::marker { color: var(--text-3); }
.lg__table { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.lg table { width: 100%; border-collapse: collapse; }
.lg th, .lg td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.lg thead th { border-top: 0; color: var(--text); font-weight: 700; background: var(--surface); }
.lg th, .lg td { font-size: 15px; line-height: 1.55; }

/* Narrower screens. */
@media (max-width: 767px) {
  .lg__h2 { margin-top: 36px; }
  /* One block per row, each value under its column's name: three columns do not fit. */
  .lg__table { border: 0; border-radius: 0; overflow: visible; }
  .lg table, .lg tbody, .lg tr, .lg td { display: block; width: auto; }
  .lg thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 0; }
  .lg tr + tr { margin-top: 10px; }
  .lg td { border-top: 0; padding: 5px 14px; font-size: 15px; }
  .lg td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
}
