/* =========================================================
   Regulaminy (<article class="cb-regulations">)
   Regulamin C&B, One to One, Warsztatów Pozowania i kolejne.
   Długi tekst prawny: wąska kolumna, duża interlinia, wyraźne paragrafy.
   ========================================================= */

.cb-regulations {
  --reg-ink: var(--fm-black, #171717);
  --reg-text: var(--fm-text, #2d2c30);
  --reg-muted: var(--fm-muted, #655e59);
  --reg-line: var(--fm-line, rgba(181, 146, 77, .30));
  width: min(var(--fm-wrap-narrow, 820px), 100% - 2 * var(--fm-gutter, 16px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px);
  color: var(--reg-text);
  font-family: var(--fm-font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.cb-regulations section { margin: 0; }

/* Tytuł i wersja */
.cb-regulations h1 {
  margin: 0 0 12px;
  color: var(--reg-ink);
  font-family: var(--fm-font-display);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
  text-transform: none;
}

.cb-regulations .cb-regulations__version {
  display: inline-block;
  margin: 0 0 clamp(24px, 4vw, 40px);
  padding: 6px 14px;
  border: 1px solid var(--reg-line);
  border-radius: 999px;
  background: var(--fm-paper, #fffdfa);
  color: var(--reg-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* Paragrafy § */
.cb-regulations .level2 {
  padding-top: clamp(26px, 4vw, 36px);
  margin-top: clamp(26px, 4vw, 36px);
  border-top: 1px solid var(--reg-line);
  scroll-margin-top: 110px;
}
.cb-regulations__document > .cb-regulations__version + .level2 {
  margin-top: 0;
}

.cb-regulations h2 {
  margin: 0 0 14px;
  color: var(--reg-ink);
  font-family: var(--fm-font-display);
  font-size: clamp(22px, 3vw, 27px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.cb-regulations p { margin: 0 0 1em; }

/* Ustępy i punkty */
.cb-regulations ol {
  margin: 0;
  padding-left: 1.6em;
  list-style-type: decimal;
}
.cb-regulations ol ol {
  margin: .5em 0 .25em;
  padding-left: 1.5em;
  list-style-type: decimal;
}
.cb-regulations li { margin: 0 0 .7em; padding-left: .25em; }
.cb-regulations ol ol li { margin-bottom: .35em; }
.cb-regulations li::marker { color: var(--reg-muted); font-weight: 600; }

.cb-regulations strong { color: var(--reg-ink); font-weight: 700; }

.cb-regulations a {
  color: var(--fm-pink, #b4566b);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cb-regulations a:hover { color: var(--fm-pink-hover, #8f3f52); }
.cb-regulations a strong { color: inherit; }

/* Załącznik: wzór oświadczenia */
.cb-regulations .cb-regulations__appendix {
  margin-top: clamp(36px, 6vw, 56px);
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--reg-line);
  border-radius: var(--fm-radius, 22px);
  background: var(--fm-paper, #fffdfa);
}
.cb-regulations .cb-regulations__appendix h2 {
  font-family: var(--fm-font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.5;
  text-transform: uppercase;
}
.cb-regulations .cb-regulations__appendix p { margin-bottom: .8em; }

@media (max-width: 480px) {
  .cb-regulations { font-size: 16px; }
  .cb-regulations ol { padding-left: 1.35em; }
  .cb-regulations ol ol { padding-left: 1.2em; }
}

@media print {
  .cb-regulations { width: auto; padding: 0; font-size: 11pt; line-height: 1.5; }
  .cb-regulations .level2 { break-inside: avoid-page; }
  .cb-regulations .cb-regulations__appendix { break-before: page; border: 0; padding: 0; }
  .cb-regulations a { color: inherit; text-decoration: none; }
}
