/* 12.11.26 käyttöehdot ja tietosuojaseloste (templates/legal.html). Lukusivu: yksi palsta,
   rivin pituus noin 70 merkkiä, yötila kuten muualla (html.pre-night / body.night). */
.lg-body { margin: 0; background: var(--bg, #f4f6f8); color: var(--text, #14202b);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6; }
.lg-main { max-width: 68ch; margin: 0 auto; padding: 24px 16px 56px; }
.lg-main h1 { font-size: 28px; line-height: 1.2; margin: 18px 0 4px; }
.lg-main h2 { font-size: 19px; line-height: 1.3; margin: 30px 0 8px; }
.lg-main p { margin: 0 0 12px; }
.lg-main ul, .lg-main ol { margin: 0 0 12px; padding-left: 22px; }
.lg-main li { margin-bottom: 6px; }
.lg-main a { color: var(--primary, #0a6ebd); }
.lg-nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }
.lg-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.lg-nav a[aria-current="page"] { color: inherit; text-decoration: none; }
.lg-lang, .lg-ver, .lg-foot { font-size: 14px; color: var(--text-sub, #5b6b79); }
.lg-foot { margin-top: 36px; }
.lg-table { overflow-x: auto; margin: 0 0 12px; }
.lg-table table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--border, #d6dde3); }
.lg-table th { font-size: 13px; color: var(--text-sub, #5b6b79); font-weight: 600; }
html.pre-night .lg-body, body.night.lg-body { background: #0f1720; color: #e6edf3; }
html.pre-night .lg-main a, body.night .lg-main a { color: #6cb6ff; }
html.pre-night .lg-lang, html.pre-night .lg-ver, html.pre-night .lg-foot, html.pre-night .lg-table th { color: #9fb0bf; }
html.pre-night .lg-table th, html.pre-night .lg-table td { border-color: #2a3948; }
@media print { .lg-nav, .lg-foot, .lg-lang { display: none; } .lg-body { background: #fff; color: #000; } }

/* 12.11.26 ehtojen hyväksymissivu (templates/terms_accept.html) */
.lg-form { display: flex; flex-direction: column; gap: 16px; margin: 18px 0 0; }
.lg-check { display: flex; gap: 12px; align-items: flex-start; }
.lg-check input { width: 22px; height: 22px; flex-shrink: 0; margin: 2px 0 0; }
.lg-btn { min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--primary, #0a6ebd);
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; align-self: flex-start; }
.lg-btn:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.lg-err { color: var(--danger, #c0392b); font-weight: 600; }

/* 12.11.26 kielivalinta tekstisivuilla */
.lg-langs { display: flex; gap: 16px; font-size: 14px; }
.lg-langs a { min-height: 44px; display: inline-flex; align-items: center; }
.lg-langs a[aria-current="true"] { color: inherit; font-weight: 700; text-decoration: none; }
