/**
 * ═══════════════════════════════════════════════════════════════════
 *  Strony tekstowe — polityka prywatności, regulamin, wpisy, 404.
 *
 *  main.css styluje komponenty landingu (sekcje, karty, cenniki), ale nie
 *  ma nic dla zwykłej treści z edytora. Bez tego arkusza polityka
 *  prywatności wygląda jak surowy tekst na białym tle.
 *
 *  Kolumna ~720 px to ok. 75 znaków w wierszu — długość, przy której
 *  oko nie gubi początku kolejnej linii w wielostronicowym dokumencie.
 * ═══════════════════════════════════════════════════════════════════
 */

/* ═══════════ NAGŁÓWEK STRONY ═══════════ */
/* Nawigacja landingu jest przezroczysta nad ciemnym hero; tutaj musi mieć
   własne tło, bo pod nią zaczyna się jasna treść. */
/* Pasek zostaje w przepływie strony (na landingu jest przyklejony nad
   ciemnym hero); „relative" dodatkowo służy za kotwicę dla rozwijanego
   menu mobilnego. */
.navbar--solid {
    position: relative;
    background: #0a0e1a;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* Menu mobilne.
   Na stronie głównej pasek jest przyklejony (position: fixed), więc
   schowane menu może stać poza ekranem — nie rozciąga strony. Tutaj pasek
   jest w normalnym przepływie, więc to samo „odsunięcie w bok" dokładałoby
   375 px szerokości i strona przewijałaby się na boki. Dlatego zamiast
   przesuwać, po prostu chowamy. */
@media (max-width: 768px) {
    .navbar--solid .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        min-height: 0;
        transform: none;
        transition: none;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 12px;
        background: #0a0e1a;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
        z-index: 1001;
    }
    .navbar--solid .nav-links.active { display: flex; }
    .navbar--solid .nav-links li { width: 100%; }
    .navbar--solid .nav-links a:not(.nav-cta) {
        display: block;
        padding: 13px 22px;
        color: rgba(255, 255, 255, .82);
        font-size: 1rem;
    }
    .navbar--solid .nav-links a:not(.nav-cta)::after { display: none; }
    .navbar--solid .nav-links a:not(.nav-cta):active,
    .navbar--solid .nav-links a:not(.nav-cta):hover { background: rgba(255, 255, 255, .06); }

    /* Zielona pigułka „Kup wtyczkę" zostaje pigułką — wyśrodkowana */
    .navbar--solid .nav-links .nav-links__cta { padding: 10px 22px 4px; }
    .navbar--solid .nav-links .nav-cta { justify-content: center; width: 100%; }

    /* Hamburger w krzyżyk po otwarciu */
    .navbar--solid .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .navbar--solid .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .navbar--solid .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.tekst-hero {
    background: linear-gradient(135deg, #0a0e1a 0%, #151a2e 55%, #1a1244 100%);
    color: #fff;
    padding: 58px 0 62px;
}

.tekst-okruszki {
    font-size: .84rem;
    color: #9aa3b8;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.tekst-okruszki a { color: #9aa3b8; text-decoration: none; }
.tekst-okruszki a:hover { color: #00d4aa; text-decoration: underline; }

.tekst-hero h1 {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    line-height: 1.18;
    letter-spacing: -.5px;
    margin: 0;
    color: #fff;
}

.tekst-data {
    margin: 14px 0 0;
    font-size: .88rem;
    color: #9aa3b8;
}

/* ═══════════ TREŚĆ ═══════════ */
.tekst-body {
    background: #fff;
    padding: 56px 0 76px;
}

.tekst-tresc {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 1.02rem;
    line-height: 1.78;
    color: #33384a;
}

.tekst-tresc > *:first-child { margin-top: 0; }

.tekst-tresc h2 {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.5rem;
    line-height: 1.3;
    color: #1a1f36;
    margin: 46px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef1f7;
}

.tekst-tresc h3 {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.15rem;
    color: #1a1f36;
    margin: 32px 0 10px;
}

.tekst-tresc h4 {
    font-size: 1rem;
    color: #1a1f36;
    margin: 24px 0 8px;
}

.tekst-tresc p { margin: 0 0 18px; }

.tekst-tresc ul,
.tekst-tresc ol { margin: 0 0 20px; padding-left: 24px; }
.tekst-tresc li { margin-bottom: 9px; }
.tekst-tresc li::marker { color: #00a888; }

.tekst-tresc a {
    color: #00a888;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tekst-tresc a:hover { color: #0a0e1a; }

.tekst-tresc strong { color: #1a1f36; font-weight: 600; }

.tekst-tresc blockquote {
    margin: 26px 0;
    padding: 16px 22px;
    background: #f0f6f4;
    border-left: 3px solid #00a888;
    border-radius: 0 10px 10px 0;
    color: #33384a;
}
.tekst-tresc blockquote p:last-child { margin-bottom: 0; }

.tekst-tresc code {
    background: #f4f6fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .9em;
    color: #1a1f36;
}

.tekst-tresc hr {
    border: 0;
    border-top: 1px solid #e4e9f2;
    margin: 38px 0;
}

/* Tabele — najczęstszy powód poziomego przewijania na telefonie */
.tekst-tresc table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: .95rem;
}
.tekst-tresc th,
.tekst-tresc td {
    padding: 11px 14px;
    border: 1px solid #e4e9f2;
    text-align: left;
    vertical-align: top;
}
.tekst-tresc th { background: #f7f9fc; color: #1a1f36; font-weight: 600; }

.tekst-tresc img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ═══════════ LISTA WPISÓW / WYNIKI WYSZUKIWANIA ═══════════ */
.tekst-lista article {
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid #eef1f7;
}
.tekst-lista article:last-child { border-bottom: 0; }
.tekst-lista h2 { margin-top: 0; border: 0; padding: 0; }
.tekst-lista h2 a { color: #1a1f36; text-decoration: none; }
.tekst-lista h2 a:hover { color: #00a888; }

.tekst-pusto {
    text-align: center;
    padding: 30px 0 10px;
}

/* Paginacja WordPressa */
.tekst-tresc .navigation.pagination { margin-top: 34px; }
.tekst-tresc .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.tekst-tresc .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e4e9f2;
    border-radius: 8px;
    text-decoration: none;
    color: #33384a;
}
.tekst-tresc .page-numbers.current,
.tekst-tresc .page-numbers:hover { background: #00a888; border-color: #00a888; color: #fff; }

/* ═══════════ TELEFONY ═══════════ */
@media (max-width: 768px) {
    .tekst-hero { padding: 38px 0 42px; }
    .tekst-body { padding: 38px 0 54px; }
    .tekst-tresc { font-size: .98rem; line-height: 1.72; }
    .tekst-tresc h2 { font-size: 1.28rem; margin-top: 34px; }
    .tekst-tresc h3 { font-size: 1.06rem; margin-top: 26px; }

    /* Szeroka tabela przewija się we własnym pudełku, a nie całą stroną.
       Bez „nowrap": przy opisowych komórkach (cel przetwarzania, podstawa
       prawna) tekst w jednej linii wymuszałby przewijanie na czterokrotność
       szerokości ekranu. Tekst zawija się, a minimalna szerokość kolumny
       pilnuje, żeby nie zwęziły się do jednego wyrazu na wiersz. */
    .tekst-tresc table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: .88rem;
    }
    .tekst-tresc th,
    .tekst-tresc td {
        padding: 9px 11px;
        min-width: 96px;
    }
    /* Kolumna z opisem dostaje więcej miejsca niż etykiety */
    .tekst-tresc td:last-child:not(:first-child) { min-width: 140px; }
}
