/* Czytelność regulaminu 1.0: jedna kolumna ok. 70 znaków, kolory z tokenów motywu.
   Panel ma tokeny --t-*, strona publiczna zmienne symu2026.css. Karty bez własnego tła,
   bo stara biała .terms-box dawała jasny tekst na białym w ciemnym motywie. */
.terms-read {
  --tr-text: var(--t-text-body, var(--soft, #B9BECC));
  --tr-head: var(--t-text, var(--text, #FFFFFF));
  --tr-muted: var(--t-text-muted, var(--muted, #8A90A4));
  --tr-line: var(--t-border-strong, var(--line-2, rgba(255,255,255,.14)));
  --tr-link: var(--t-accent-text, #8DB4FF);
  --tr-sunken: var(--t-surface, var(--surface, #171926));
  box-sizing: border-box;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 32px 0 72px;
  color: var(--tr-text);
  font-size: 17px;
  line-height: 1.7;
  text-align: left;
  overflow-wrap: break-word;
}
.container-fluid.terms-page { padding-left: 20px; padding-right: 20px; padding-top: 0; }

.terms-read .terms-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 56px !important;
  color: var(--tr-text);
}
.terms-read .terms-box:last-child { margin-bottom: 0 !important; }
.terms-read p { margin: 0 0 16px; color: inherit; font-size: inherit; line-height: inherit; }
.terms-read h2, .terms-read h3, .terms-read h4 { color: var(--tr-head); scroll-margin-top: 96px; }
.terms-read h2 {
  font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 20px;
}
.terms-read .terms-box { scroll-margin-top: 96px; }
.terms-read h3 { font-size: 20px; line-height: 1.35; font-weight: 700; margin: 36px 0 12px; }
.terms-read h4 { font-size: 17px; line-height: 1.45; font-weight: 700; margin: 28px 0 10px; }
.terms-read ul { list-style: disc; display: block; margin: 0 0 18px; padding-left: 1.4em; }
.terms-read li { margin: 0 0 8px; padding-left: .2em; color: inherit; }
.terms-read a { color: var(--tr-link); text-decoration: underline; text-underline-offset: 3px; }
.terms-read a:hover { color: var(--tr-head); }
.terms-read a:focus-visible { outline: 2px solid var(--tr-link); outline-offset: 2px; border-radius: 2px; }

/* Spis treści */
.terms-read .terms-toc {
  background: var(--tr-sunken);
  border: 1px solid var(--tr-line);
  border-radius: 12px;
  padding: 18px 22px 12px;
  margin: 0 0 44px;
  font-size: 15.5px;
  line-height: 1.45;
}
.terms-read .terms-toc__title {
  margin: 0 0 10px; color: var(--tr-muted);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.terms-read .terms-toc ol { list-style: none; margin: 0; padding: 0; }
.terms-read .terms-toc ol ol { margin: 6px 0 2px; padding-left: 14px; border-left: 1px solid var(--tr-line); }
.terms-read .terms-toc li { margin: 0 0 6px; padding: 0; }
.terms-read .terms-toc a { display: inline-block; padding: 2px 0; color: var(--tr-text); text-decoration: none; }
.terms-read .terms-toc a:hover { color: var(--tr-head); text-decoration: underline; }

@media (max-width: 560px) {
  .container-fluid.terms-page { padding-left: 16px; padding-right: 16px; }
  .terms-read { padding: 20px 0 48px; font-size: 16px; }
  .terms-read h2 { font-size: 24px; }
  .terms-read h3 { font-size: 18px; margin-top: 30px; }
  .terms-read h4 { font-size: 16px; }
  .terms-read .terms-toc { padding: 14px 16px 8px; margin-bottom: 32px; font-size: 15px; }
  .terms-read .terms-toc a { padding: 5px 0; }
}

@media print {
  .terms-read { max-width: none; color: #000; font-size: 11pt; }
  .terms-read h2, .terms-read h3, .terms-read h4, .terms-read a { color: #000; }
  .terms-read .terms-toc { display: none; }
}

