/* =========================================
   STYLE DEDYKOWANE DLA STRON TEKSTOWYCH
   (Polityka prywatności, Regulaminy itp.)
   ========================================= */

/* --- HERO --- */
.text-hero {
  position: relative;
  background-color: var(--color-dark);
  padding: 160px 0 60px;
  color: #fff;
  text-align: center;
}

.text-hero__content { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.text-hero__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: var(--w-bold); margin-bottom: 0.5rem; }
.text-hero__meta { font-size: 1rem; opacity: 0.7; font-style: italic; font-weight: 300; }
.pxs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.pxs-breadcrumbs a {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.pxs-breadcrumbs a:hover {
  opacity: 1;
  border-color: currentColor;
}
.pxs-breadcrumbs .sep { opacity: 0.55; }
.pxs-breadcrumbs [aria-current="page"] { opacity: 1; }
.text-hero .pxs-breadcrumbs,
.offer-hero .pxs-breadcrumbs { color: #fff; }

/* --- CONTENT --- */
.text-page { background: #fff; }

.text-content {
  width: 100%; 
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  overflow-x: clip;
}

/* Typography wewnątrz artykułu */
.text-content p {
  margin-bottom: 1.5rem;
}

.text-content .lead {
  font-size: 1.2rem;
  font-weight: var(--w-semi);
  color: var(--color-text-heading);
  margin-bottom: 2.5rem;
}

.text-content h2 {
  font-size: 1.6rem;
  color: var(--color-text-heading);
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  font-weight: var(--w-bold);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.text-content h3 {
  font-size: 1.3rem;
  color: var(--color-text-heading);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: var(--w-semi);
}

/* Listy */
.text-content ul, 
.text-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.text-content ul li, 
.text-content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.text-content ul li::marker {
  color: var(--color-primary);
}

/* Linki w tekście (ZMIANA: wykluczamy klasę .btn, żeby nie kolorować przycisków) */
.text-content a:not(.btn) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.text-content a:not(.btn):hover {
  color: var(--color-dark);
}

/* Highlight box */
.contact-box {
  background: #f8fafc;
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-top: 4rem;
  text-align: center;
}

.contact-box h3 { margin-top: 0; margin-bottom: 0.5rem; }
.contact-box p { margin-bottom: 1.5rem; }

/* Styl przycisku w boxie */
.contact-box .btn { 
  display: inline-flex; 
  text-decoration: none; 
  color: #fff !important; /* WYMUSZENIE BIAŁEGO KOLORU */
}

/* Responsive */
@media (max-width: 576px) {
  .text-hero { padding: 140px 0 40px; }
  .text-content { font-size: 1rem; }
  .contact-box { padding: 1.5rem; }
}

/* --- Gutenberg / Editor Content --- */
.editor-content > * { margin-top: 0; margin-bottom: 1.45rem; }
.editor-content > *:last-child { margin-bottom: 0; }
.editor-content .wp-block-group,
.editor-content .wp-block-cover,
.editor-content .wp-block-media-text,
.editor-content .wp-block-columns {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.editor-content .wp-block-image img,
.editor-content .wp-block-gallery img {
  border-radius: 12px;
  height: auto;
}
.editor-content .wp-block-columns { gap: 1.4rem; }
.editor-content .wp-block-column > *:last-child { margin-bottom: 0; }
.editor-content .wp-block-media-text { gap: 1.2rem; align-items: center; }
.editor-content .wp-block-quote {
  border-left: 4px solid var(--color-primary);
  margin: 1.6rem 0;
  padding: 0.6rem 0 0.6rem 1rem;
  color: var(--color-text-heading);
  background: #f8fafc;
  border-radius: 8px;
}
.editor-content .wp-block-quote p { margin: 0; }
.editor-content .wp-block-pullquote {
  border-top: 2px solid #e2e8f0;
  border-bottom: 2px solid #e2e8f0;
  padding: 1.4rem 0;
}
.editor-content pre,
.editor-content .wp-block-code {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
}
.editor-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.editor-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
}
.editor-content .wp-block-table th,
.editor-content .wp-block-table td {
  border: 1px solid #e2e8f0;
  padding: 0.7rem 0.85rem;
  text-align: left;
}
.editor-content .wp-block-table th { background: #f8fafc; color: var(--color-text-heading); }
.editor-content .wp-block-separator {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}
.editor-content .wp-block-button { margin-top: 0.4rem; }
.editor-content .wp-block-button .wp-block-button__link,
.editor-content .wp-block-file__button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 5px 0.5rem 1rem;
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: var(--w-semi);
  background: var(--color-primary);
  color: #fff;
  transition: transform var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.editor-content .wp-block-button .wp-block-button__link::after,
.editor-content .wp-block-file__button::after {
  content: "";
  width: 32px;
  height: 32px;
  display: inline-block;
  background: url('../img/sygnet.svg') no-repeat center/contain;
  margin-left: auto;
  margin-right: 5px;
}
.editor-content .wp-block-button .wp-block-button__link:hover,
.editor-content .wp-block-file__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  background: #d55b29;
  border-color: #d55b29;
}
.editor-content .wp-block-embed iframe,
.editor-content .wp-block-video video {
  width: 100%;
  border-radius: 12px;
}
.editor-content .alignwide,
.editor-content .alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 576px) {
  .editor-content .wp-block-columns { display: block; }
  .editor-content .wp-block-column { margin-bottom: 1rem; }
}
