/* =========================================================
   STRONY TECHNICZNE / PRAWNE — ZwiedzajwPolsce.pl
   ========================================================= */
.zwp-tech-page {
    background: #f7f8f5;
    color: #33443a;
}

.zwp-tech-page .zwp-tech-shell,
.zwp-tech-page .cookies-page,
.zwp-tech-page .privacy-page-main,
.zwp-tech-page .main-content-wrapper {
    width: min(1120px, calc(100% - 40px));
    max-width: 1120px;
    margin: 0 auto;
}

.zwp-tech-page .cookies-page,
.zwp-tech-page .privacy-page-main,
.zwp-tech-page .main-content-wrapper {
    padding: clamp(42px, 6vw, 74px) 0 80px;
}

.zwp-tech-page .legal-document,
.zwp-tech-page .page-privacy,
.zwp-tech-page .cookies-page {
    font-family: var(--font-body, "Open Sans", Arial, sans-serif);
}

.zwp-tech-page .legal-document,
.zwp-tech-page .page-privacy {
    overflow: hidden;
    border: 1px solid #e2e9e4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(45,90,61,.06);
}

.zwp-tech-page .legal-header {
    padding: 22px 34px;
    border-bottom: 1px solid #e7ece8;
    background: #f3f7f4;
}

.zwp-tech-page .legal-date,
.zwp-tech-page .zwp-tech-update {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    color: #66766d;
    font-size: 14px;
}

.zwp-tech-page .legal-date i,
.zwp-tech-page .zwp-tech-update i { color: #4a7c59; }

.zwp-tech-page .legal-toc {
    padding: 28px 34px;
    border-bottom: 1px solid #e7ece8;
    background: #fbfcfb;
}

.zwp-tech-page .legal-toc-title {
    margin: 0 0 14px;
    color: #173a2a;
    font-size: 18px;
}

.zwp-tech-page .legal-toc-title i { color: #c9a227; margin-right: 7px; }
.zwp-tech-page .legal-toc ol { margin: 0; padding-left: 22px; }
.zwp-tech-page .legal-toc li { margin: 7px 0; }
.zwp-tech-page .legal-toc a,
.zwp-tech-page .entry-content a,
.zwp-tech-page .legal-subsection a { color: #3f7450; font-weight: 700; text-decoration: none; }
.zwp-tech-page .legal-toc a:hover,
.zwp-tech-page .entry-content a:hover,
.zwp-tech-page .legal-subsection a:hover { text-decoration: underline; }

.zwp-tech-page .legal-section { padding: 38px 42px; border-bottom: 1px solid #edf0ee; }
.zwp-tech-page .legal-section:last-child { border-bottom: 0; }

.zwp-tech-page .legal-section-title {
    display: flex;
    gap: 13px;
    align-items: center;
    margin: 0 0 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid #dde7df;
    color: #173a2a;
    font-size: clamp(22px, 3vw, 28px);
}

.zwp-tech-page .legal-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: #2d5a3d;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.zwp-tech-page .legal-subsection { margin-bottom: 32px; }
.zwp-tech-page .legal-subsection:last-child { margin-bottom: 0; }

.zwp-tech-page .legal-subsection h3,
.zwp-tech-page .entry-content h2,
.zwp-tech-page .cookies-page h2 {
    margin: 42px 0 18px;
    padding-left: 14px;
    border-left: 4px solid #4a7c59;
    color: #173a2a;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.25;
}

.zwp-tech-page .legal-subsection:first-child h3,
.zwp-tech-page .entry-content h2:first-of-type,
.zwp-tech-page .cookies-page h2:first-of-type { margin-top: 0; }

.zwp-tech-page .legal-subsection h4,
.zwp-tech-page .cookies-page h3 {
    margin: 28px 0 12px;
    color: #2a4938;
    font-size: 18px;
}

.zwp-tech-page p,
.zwp-tech-page li,
.zwp-tech-page td,
.zwp-tech-page address {
    color: #53645b;
    font-size: 15px;
    line-height: 1.75;
}

.zwp-tech-page .entry-content,
.zwp-tech-page .page-privacy { padding: 36px 42px 46px; }

.zwp-tech-page .page-privacy .entry-content { padding: 0; }

.zwp-tech-page .zwp-tech-update {
    margin: -4px 0 26px;
    padding: 13px 16px;
    border-radius: 14px;
    background: #f2f6f3;
}

.zwp-tech-page .legal-note,
.zwp-tech-page .info-box,
.zwp-tech-page .warning-box,
.zwp-tech-page .important {
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid #e1e9e3;
    border-radius: 16px;
    background: #f7faf8;
}

.zwp-tech-page .info-box { border-left: 4px solid #4a7c59; background: #f0f6f2; }
.zwp-tech-page .warning-box { border-left: 4px solid #c98b27; background: #fff9ee; }

.zwp-tech-page .legal-address {
    margin: 14px 0;
    padding: 16px 18px;
    border-left: 4px solid #4a7c59;
    border-radius: 0 14px 14px 0;
    background: #f2f6f3;
    font-style: normal;
}

.zwp-tech-page .table-responsive { width: 100%; overflow-x: auto; margin: 24px 0; border-radius: 16px; }

.zwp-tech-page .cookie-table,
.zwp-tech-page .polityka-table {
    width: 100%;
    margin: 24px 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #dfe7e1;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

.zwp-tech-page .cookie-table th,
.zwp-tech-page .polityka-table th {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #dbe4dd;
    background: #2d5a3d;
    color: #fff;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.zwp-tech-page .cookie-table td,
.zwp-tech-page .polityka-table td {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #edf1ee;
    vertical-align: top;
}

.zwp-tech-page .cookie-table tr:last-child td,
.zwp-tech-page .polityka-table tr:last-child td { border-bottom: 0; }
.zwp-tech-page .cookie-table tr:nth-child(even),
.zwp-tech-page .polityka-table tr:nth-child(even) { background: #fafcfb; }
.zwp-tech-page .cookie-table tr:hover,
.zwp-tech-page .polityka-table tr:hover { background: #f2f7f3; }

.zwp-tech-page .cookie-table code {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 7px;
    background: #edf2ee;
    color: #254432;
    font-size: 12px;
}

.zwp-tech-page .cookie-type {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}
.zwp-tech-page .cookie-type.niezbedne { background: #e9f5ed; color: #2f7145; }
.zwp-tech-page .cookie-type.analityczne { background: #edf3fa; color: #3d6590; }
.zwp-tech-page .cookie-type.marketingowe { background: #fbeeee; color: #a54a4a; }
.zwp-tech-page .cookie-type.funkcjonalne { background: #fff5e4; color: #a56a12; }

.zwp-tech-page .browser-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.zwp-tech-page .browser-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid #dfe7e1;
    border-radius: 14px;
    background: #fff;
    color: #345141;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.zwp-tech-page .browser-link:hover { transform: translateY(-2px); border-color: #a8c1ae; background: #f5f9f6; }
.zwp-tech-page .browser-link img { width: 28px; height: 28px; margin: 0; }

.zwp-tech-page .manage-cookies-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 20px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: #2d5a3d;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.zwp-tech-page .manage-cookies-btn:hover { background: #244b33; }

.zwp-tech-page .contact-card {
    margin-top: 34px;
    padding: 24px;
    border: 1px solid #dce7df;
    border-radius: 18px;
    background: linear-gradient(135deg, #2d5a3d 0%, #3f7250 100%);
    color: #fff;
}
.zwp-tech-page .contact-card h3,
.zwp-tech-page .contact-card p,
.zwp-tech-page .contact-card li,
.zwp-tech-page .contact-card a { color: #fff; }
.zwp-tech-page .contact-card a { text-decoration: underline; }

.zwp-tech-page .last-update {
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid #e6ebe7;
    color: #77877e;
    text-align: center;
}

@media (max-width: 760px) {
    .zwp-tech-page .zwp-tech-shell,
    .zwp-tech-page .cookies-page,
    .zwp-tech-page .privacy-page-main,
    .zwp-tech-page .main-content-wrapper { width: min(100% - 24px, 1120px); }

    .zwp-tech-page .legal-section,
    .zwp-tech-page .legal-toc,
    .zwp-tech-page .legal-header,
    .zwp-tech-page .entry-content,
    .zwp-tech-page .page-privacy { padding-left: 20px; padding-right: 20px; }

    .zwp-tech-page .table-responsive { overflow: visible; }
    .zwp-tech-page .cookie-table thead { display: none; }
    .zwp-tech-page .cookie-table,
    .zwp-tech-page .cookie-table tbody { display: block; border: 0; background: transparent; }
    .zwp-tech-page .cookie-table tr {
        display: block;
        margin-bottom: 12px;
        padding: 14px;
        border: 1px solid #dfe7e1;
        border-radius: 14px;
        background: #fff;
    }
    .zwp-tech-page .cookie-table td {
        display: grid;
        grid-template-columns: 90px 1fr;
        gap: 10px;
        padding: 8px 0;
    }
    .zwp-tech-page .cookie-table td::before {
        content: attr(data-label);
        color: #718078;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }
    .zwp-tech-page .polityka-table { display: block; overflow-x: auto; }
}
