/* =====================================================================
   PAGE — POLITYKA PRYWATNOŚCI  (styl Cuberto: duża typografia, światło,
   przyklejony spis treści, czysty layout)
   ===================================================================== */

html { scroll-behavior: smooth; }

main[data-cursor] {
    background-color: var(--bg-light);
    color: var(--text-dark);
}


/* ========================= HERO ========================= */
.pp-hero {
    padding: 26vh 6vw 10vh;
    max-width: 1500px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(9, 9, 9, 0.12);
}

.pp-eyebrow {
    display: inline-block;
    font-family: 'Marble PL', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(9, 9, 9, 0.5);
    margin-bottom: 3vh;
}

.pp-hero-title {
    font-family: 'Marble PL', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 11rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-dark);
}

.pp-hero-title .pp-line {
    display: block;
    overflow: hidden;
}

.pp-hero-title .pp-line > span {
    display: block;
    transform: translateY(110%);
    will-change: transform;
}

.pp-lead {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    line-height: 1.55;
    color: rgba(9, 9, 9, 0.62);
    max-width: 44rem;
    margin: 5vh 0 0;
}

/* Meta — pasek pod leadem */
.pp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3vw;
    margin-top: 7vh;
}

.pp-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pp-meta-label {
    font-family: 'Marble PL', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(9, 9, 9, 0.4);
}

.pp-meta-value {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.pp-meta-value a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(9, 9, 9, 0.3);
    transition: border-color 0.3s ease;
}

.pp-meta-value a:hover {
    border-color: var(--text-dark);
}


/* ========================= TREŚĆ ========================= */
.pp-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 6vw;
    max-width: 1500px;
    margin: 0 auto;
    padding: 12vh 6vw 16vh;
    align-items: start;
}

/* Spis treści — przyklejony */
.pp-toc {
    position: sticky;
    top: 16vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pp-toc-title {
    font-family: 'Marble PL', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(9, 9, 9, 0.4);
}

.pp-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pp-toc-link {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.55rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    color: rgba(9, 9, 9, 0.45);
    text-decoration: none;
    border-bottom: 1px solid rgba(9, 9, 9, 0.07);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.pp-toc-num {
    font-family: 'Marble PL', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(9, 9, 9, 0.3);
    transition: color 0.3s ease;
}

.pp-toc-link:hover {
    color: var(--text-dark);
    padding-left: 0.4rem;
}

.pp-toc-link.is-active {
    color: var(--text-dark);
}

.pp-toc-link.is-active .pp-toc-num {
    color: var(--text-dark);
}


/* Sekcje */
.pp-content {
    min-width: 0;
}

.pp-section {
    position: relative;
    padding: 7vh 0;
    border-top: 1px solid rgba(9, 9, 9, 0.12);
}

.pp-section:first-child {
    padding-top: 0;
    border-top: none;
}

.pp-section-num {
    display: block;
    font-family: 'Marble PL', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: rgba(9, 9, 9, 0.35);
    margin-bottom: 1.5rem;
}

.pp-section-title {
    font-family: 'Marble PL', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3.6vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin: 0 0 2.5rem;
}

.pp-section-text {
    max-width: 48rem;
}

.pp-section-text p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    color: rgba(9, 9, 9, 0.7);
    margin: 0 0 1.4rem;
}

.pp-section-text p:last-child {
    margin-bottom: 0;
}

.pp-section-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.pp-section-text a {
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(9, 9, 9, 0.35);
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.pp-section-text a:hover {
    border-color: transparent;
    opacity: 0.65;
}

.pp-list {
    list-style: none;
    margin: 0 0 1.4rem;
    padding: 0;
}

.pp-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.7;
    color: rgba(9, 9, 9, 0.7);
}

.pp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-dark);
    opacity: 0.55;
}

/* Kontakt — duże linki na końcu */
.pp-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 3rem;
    margin-top: 2.5rem;
}

.pp-contact-link {
    font-family: 'Marble PL', sans-serif;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 2px solid rgba(9, 9, 9, 0.18);
    padding-bottom: 0.2rem;
    transition: border-color 0.35s ease;
}

.pp-contact-link:hover {
    border-color: var(--text-dark);
}


/* ========================= RESPONSIVE ========================= */
@media (max-width: 1024px) {
    .pp-hero {
        padding: 20vh 6vw 8vh;
    }

    .pp-body {
        grid-template-columns: 1fr;
        gap: 5vh;
        padding: 8vh 6vw 12vh;
    }

    /* Spis treści — nie przyklejony, zwijany u góry */
    .pp-toc {
        position: static;
        top: auto;
        padding: 1.5rem;
        border: 1px solid rgba(9, 9, 9, 0.12);
        border-radius: 18px;
        background: rgba(9, 9, 9, 0.02);
    }

    .pp-section:first-child {
        padding-top: 4vh;
        border-top: 1px solid rgba(9, 9, 9, 0.12);
    }
}

@media (max-width: 560px) {
    .pp-hero {
        padding: 18vh 5vw 7vh;
    }

    .pp-meta {
        gap: 2rem 3rem;
    }

    .pp-body {
        padding: 6vh 5vw 10vh;
    }

    .pp-section {
        padding: 5vh 0;
    }
}
