
/* =========================================================
   DOKUMENTY PRAWNE — PREMIUM GLASS
   Wspólny styl dla:
   - Polityki prywatności
   - Polityki cookies
   - Klauzuli informacyjnej
   - Regulaminu serwisu
   ========================================================= */

.sp-legal-v2-body {
    --legal-ink:#0d2d45;
    --legal-text:#4f697d;
    --legal-muted:#74899a;
    --legal-line:rgba(54,101,135,.14);
    --legal-cyan:#0ab6c8;
    --legal-blue:#147fe1;
    --legal-violet:#7c55f2;
    background:#f8fbfe;
}
.sp-legal-v2-body .sp-main { overflow:visible; }
.sp-legal-v2-body .site-main { overflow:visible; }

/* HERO */
.sp-legal-hero {
    position:relative;
    overflow:hidden;
    padding:58px 0 46px;
    background:
        radial-gradient(circle at 78% 18%,rgba(53,188,255,.14),transparent 25%),
        radial-gradient(circle at 98% 48%,rgba(174,70,236,.12),transparent 24%),
        linear-gradient(115deg,#fff 0%,#fbfdff 57%,#eef8fd 100%);
    border-bottom:1px solid var(--legal-line);
}
.sp-legal-hero::before {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    opacity:.42;
    background-image:
        linear-gradient(rgba(49,105,143,.04) 1px,transparent 1px),
        linear-gradient(90deg,rgba(49,105,143,.04) 1px,transparent 1px);
    background-size:44px 44px;
    mask-image:linear-gradient(90deg,transparent 4%,#000 42%,#000);
}
.sp-legal-hero::after {
    content:"LEGAL / DOCUMENT";
    position:absolute;
    right:5%;
    bottom:6px;
    color:rgba(26,72,105,.035);
    font-size:clamp(60px,6.7vw,118px);
    line-height:.84;
    font-weight:900;
    letter-spacing:-.065em;
    pointer-events:none;
    white-space:nowrap;
}
.sp-legal-hero .sp-shell {
    position:relative;
    z-index:2;
}
.sp-legal-hero .sp-section-kicker {
    width:max-content;
    margin:0 0 14px;
    padding:7px 10px;
    border:1px solid rgba(42,137,180,.18);
    border-radius:9px;
    background:rgba(255,255,255,.72);
    box-shadow:0 7px 20px rgba(35,78,108,.045);
    color:#078ba2;
    font-size:8px;
    font-weight:900;
    letter-spacing:.12em;
}
.sp-legal-hero h1 {
    max-width:1050px;
    margin:0;
    color:var(--legal-ink);
    font-size:clamp(46px,4.6vw,72px);
    line-height:.98;
    letter-spacing:-.052em;
}
.sp-legal-hero > .sp-shell > p:not(.sp-section-kicker) {
    max-width:760px;
    margin:17px 0 0;
    color:#5e778b;
    font-size:13px;
    line-height:1.65;
}
.sp-legal-hero > .sp-shell > span {
    display:inline-flex;
    margin-top:15px;
    color:#718697;
    font-size:8.5px;
    font-weight:800;
}

/* DOCUMENT SWITCHER */
.sp-legal-switcher {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:23px;
}
.sp-legal-switcher a {
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:0 12px;
    border:1px solid rgba(65,111,144,.14);
    border-radius:999px;
    color:#315a77;
    background:rgba(255,255,255,.76);
    backdrop-filter:blur(12px);
    box-shadow:0 8px 22px rgba(30,69,98,.045);
    font-size:8.5px;
    font-weight:900;
    text-decoration:none;
    transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.sp-legal-switcher a:hover {
    transform:translateY(-2px);
    border-color:rgba(36,144,189,.28);
    box-shadow:0 12px 26px rgba(30,69,98,.075);
}

/* MAIN LEGAL AREA */
.sp-legal {
    position:relative;
    padding:48px 0 64px;
    background:
        radial-gradient(circle at 8% 12%,rgba(18,182,199,.045),transparent 20%),
        radial-gradient(circle at 96% 14%,rgba(132,77,232,.045),transparent 22%),
        #f8fbfe;
}
.sp-legal::before {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    opacity:.27;
    background-image:
        linear-gradient(rgba(45,101,137,.028) 1px,transparent 1px),
        linear-gradient(90deg,rgba(45,101,137,.028) 1px,transparent 1px);
    background-size:52px 52px;
    mask-image:linear-gradient(90deg,#000,transparent 30%,transparent 72%,#000);
}
.sp-legal__layout {
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:255px minmax(0,1fr);
    gap:46px;
    align-items:start;
}

/* TOC */
.sp-legal__toc {
    position:sticky;
    top:105px;
    overflow:hidden;
    display:grid;
    gap:0;
    padding:12px;
    border:1px solid rgba(70,111,140,.14);
    border-radius:18px;
    background:
        radial-gradient(circle at 92% 8%,rgba(88,111,234,.07),transparent 25%),
        rgba(255,255,255,.86);
    box-shadow:
        0 16px 34px rgba(26,66,95,.065),
        inset 0 1px 0 rgba(255,255,255,.98);
    backdrop-filter:blur(15px);
}
.sp-legal__toc::before {
    content:"";
    position:absolute;
    left:12px;
    right:12px;
    top:0;
    height:2px;
    border-radius:0 0 999px 999px;
    background:linear-gradient(90deg,var(--legal-cyan),var(--legal-blue),var(--legal-violet));
}
.sp-legal__toc strong {
    display:block;
    padding:12px 11px 10px;
    color:var(--legal-ink)!important;
    font-size:8px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
}
.sp-legal__toc a {
    position:relative;
    display:block;
    padding:9px 11px;
    border-radius:9px;
    color:#577186!important;
    font-size:9px;
    line-height:1.35;
    text-decoration:none;
    transition:background .18s ease,color .18s ease,transform .18s ease;
}
.sp-legal__toc a::before {
    content:"";
    position:absolute;
    left:2px;
    top:50%;
    width:3px;
    height:3px;
    border-radius:50%;
    background:#35a9cf;
    opacity:0;
    transform:translateY(-50%);
}
.sp-legal__toc a:hover {
    color:#126fae!important;
    background:#f0f8fb;
    transform:translateX(2px);
}
.sp-legal__toc a:hover::before { opacity:1; }

/* CONTENT */
.sp-legal__content {
    min-width:0;
    padding:4px 0 0;
}
.sp-legal__content section {
    position:relative;
    padding:0 0 34px;
    margin:0 0 34px;
    border-bottom:1px solid rgba(66,105,134,.13);
    scroll-margin-top:115px;
}
.sp-legal__content section:last-child {
    margin-bottom:0;
    padding-bottom:0;
    border-bottom:0;
}
.sp-legal__content section::before {
    content:"";
    position:absolute;
    left:-22px;
    top:8px;
    width:3px;
    height:34px;
    border-radius:99px;
    background:linear-gradient(180deg,var(--legal-cyan),var(--legal-blue),var(--legal-violet));
    opacity:.75;
}
.sp-legal__content h2 {
    margin:0 0 15px;
    color:var(--legal-ink)!important;
    font-size:clamp(24px,2vw,31px);
    line-height:1.08;
    letter-spacing:-.035em;
}
.sp-legal__content h3 {
    margin:22px 0 9px;
    color:#173b55!important;
    font-size:17px;
    line-height:1.2;
    letter-spacing:-.018em;
}
.sp-legal__content p,
.sp-legal__content li {
    color:var(--legal-text)!important;
    font-size:13.5px;
    line-height:1.78;
}
.sp-legal__content p {
    margin:0 0 13px;
}
.sp-legal__content ul,
.sp-legal__content ol {
    margin:10px 0 16px;
    padding-left:22px;
}
.sp-legal__content li + li {
    margin-top:6px;
}
.sp-legal__content strong,
.sp-legal__content b {
    color:var(--legal-ink)!important;
    font-weight:800;
}
.sp-legal__content a {
    color:#087fae!important;
    font-weight:700;
    text-decoration:none;
    border-bottom:1px solid rgba(8,127,174,.22);
}
.sp-legal__content a:hover {
    color:#7b4cdf!important;
    border-bottom-color:rgba(123,76,223,.35);
}

/* Make dense legal fragments easier to scan */
.sp-legal__content section > p:first-of-type {
    color:#415f74!important;
}
.sp-legal__content ul li::marker,
.sp-legal__content ol li::marker {
    color:#198ebc;
}

/* Tables, if one is later added */
.sp-legal__content table {
    width:100%;
    margin:18px 0;
    border-collapse:separate;
    border-spacing:0;
    overflow:hidden;
    border:1px solid var(--legal-line);
    border-radius:14px;
    background:#fff;
}
.sp-legal__content th,
.sp-legal__content td {
    padding:11px 13px;
    border-bottom:1px solid var(--legal-line);
    color:var(--legal-text);
    font-size:11px;
    text-align:left;
}
.sp-legal__content th {
    color:var(--legal-ink);
    background:#f3f9fb;
    font-weight:900;
}
.sp-legal__content tr:last-child td { border-bottom:0; }

/* RESPONSIVE */

@media(max-width:900px){
    .sp-legal-hero::after {
        right:18px;
        bottom:16px;
        font-size:clamp(30px,8vw,38px);
        line-height:.9;
        letter-spacing:-.045em;
    }
}

@media(max-width:1000px){
    .sp-legal__layout {
        grid-template-columns:220px minmax(0,1fr);
        gap:32px;
    }
}
@media(max-width:800px){
    .sp-legal-hero { padding:45px 0 38px; }
    .sp-legal__layout {
        grid-template-columns:1fr;
        gap:26px;
    }
    .sp-legal__toc {
        position:relative;
        top:auto;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:4px;
    }
    .sp-legal__toc strong {
        grid-column:1/-1;
    }
    .sp-legal__content section::before {
        left:-12px;
    }
}
@media(max-width:560px){
    .sp-legal-hero {
        padding:40px 0 34px;
    }
    .sp-legal-hero::after {
        right:15px;
        bottom:13px;
        font-size:clamp(27px,7.6vw,34px);
    }
    .sp-legal-hero h1 {
        font-size:clamp(40px,12vw,54px);
        line-height:1;
    }
    .sp-legal-switcher {
        display:grid;
        grid-template-columns:1fr 1fr;
    }
    .sp-legal-switcher a {
        justify-content:center;
        padding:0 9px;
        text-align:center;
    }
    .sp-legal { padding:34px 0 48px; }
    .sp-legal__toc {
        grid-template-columns:1fr;
        padding:10px;
    }
    .sp-legal__toc strong {
        grid-column:auto;
    }
    .sp-legal__content {
        padding-left:8px;
    }
    .sp-legal__content section {
        padding-bottom:28px;
        margin-bottom:28px;
    }
    .sp-legal__content section::before {
        left:-8px;
        width:2px;
        height:28px;
    }
    .sp-legal__content h2 {
        font-size:24px;
    }
    .sp-legal__content p,
    .sp-legal__content li {
        font-size:13px;
        line-height:1.72;
    }
}
