/* ClearDeal – Regulamin i polityka na telefonie (paczka 94)
   Plik: /var/www/cleardeal.store/css/cd-regulamin-mobile.css
   Przyczyna: body ma display:flex (css/style.css), a #cdRegulamin z margin:auto rozpychał się do szerokości tabel (1180 px). */
#cdRegulamin { width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
#cdRegulamin h1, #cdRegulamin h2, #cdRegulamin h3 { background: transparent !important; }
#cdRegulamin .rg-layout > * { min-width: 0; }
#cdRegulamin .rg-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }

@media (max-width: 900px) {
  #cdRegulamin { padding-left: 12px !important; padding-right: 12px !important; margin-top: 12px !important; margin-bottom: 120px !important; }
  #cdRegulamin .rg-hero { padding: 20px 16px !important; border-radius: 18px !important; overflow: hidden; }
  #cdRegulamin h1 { font-size: 23px !important; line-height: 1.25 !important; word-break: break-word; }
  #cdRegulamin .rg-hero p { font-size: 14.5px; }
  #cdRegulamin .rg-meta { display: flex; flex-wrap: wrap; gap: 6px; }
  #cdRegulamin .rg-meta > * { font-size: 12px !important; padding: 6px 10px !important; }
  #cdRegulamin .rg-tabs { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  #cdRegulamin .rg-tabs > * { justify-content: center; text-align: center; padding: 11px 8px !important; font-size: 14px !important; }
  /* spis treści – pasek przewijany palcem, przyklejony u góry */
  #cdRegulamin .rg-toc { position: sticky !important; top: 0; z-index: 5; max-width: 100%; overflow-x: auto !important; -webkit-overflow-scrolling: touch;
                         scrollbar-width: none; background: rgba(13,20,34,.96) !important; backdrop-filter: blur(8px); }
  #cdRegulamin .rg-toc::-webkit-scrollbar { display: none; }
  #cdRegulamin .rg-toc a { font-size: 12.5px !important; padding: 7px 10px !important; }
  #cdRegulamin .rg-sec { padding: 16px 14px !important; border-radius: 16px !important; }
  #cdRegulamin .rg-sec h2 { font-size: 17px !important; }
  #cdRegulamin .rg-sec li, #cdRegulamin .rg-sec p { font-size: 14.5px; line-height: 1.6; word-break: break-word; }
  #cdRegulamin .rg-sec ol, #cdRegulamin .rg-sec ul { padding-left: 20px; }
  #cdRegulamin .rg-table th, #cdRegulamin .rg-table td { padding: 8px !important; font-size: 12.5px !important; }
}

/* tabele opłat jako karty na wąskim ekranie */
@media (max-width: 560px) {
  #cdRegulamin .rg-scroll { overflow: visible; }
  #cdRegulamin .rg-table, #cdRegulamin .rg-table tbody, #cdRegulamin .rg-table tr, #cdRegulamin .rg-table td { display: block; width: 100%; box-sizing: border-box; }
  #cdRegulamin .rg-table { background: transparent !important; }
  #cdRegulamin .rg-table thead { display: none; }
  #cdRegulamin .rg-table tr { margin-bottom: 8px; padding: 8px 12px; border-radius: 12px; background: #0d1422 !important; border: 1px solid rgba(255,255,255,.08); }
  #cdRegulamin .rg-table tbody tr:nth-child(even) td, #cdRegulamin .rg-table tbody tr td { background: transparent !important; }
  #cdRegulamin .rg-table td { display: flex; justify-content: space-between; gap: 10px; white-space: normal !important; text-align: right !important; border: 0 !important; padding: 5px 0 !important; }
  #cdRegulamin .rg-table td::before { content: attr(data-label); color: #98a1b5; font-weight: 700; font-size: 12px; text-align: left; }
  #cdRegulamin .rg-table td:first-child { font-weight: 800; font-size: 14px !important; color: #fff !important; }
  #cdRegulamin .rg-table td:first-child::before { display: none; }
}
