/* Strony informacyjne: dostawa, zwroty, regulaminy, polityka prywatności */
.lg {
    --lg-text: #1e1e1e;
    --lg-body: #3a3a3a;
    --lg-muted: #6b6b6b;
    --lg-line: #ececec;
    --lg-soft: #f5f4f2;
    --lg-accent: #CD0000;
    padding: 24px 0 72px;
    color: var(--lg-body);
    font-family: 'Gilroy', sans-serif;
    font-size: 14.5px;
    line-height: 1.4;
}

.lg *,
.lg *::before,
.lg *::after {
    letter-spacing: normal;
}

.lg p {
    margin: 0 0 12px;
    color: var(--lg-body);
    font-size: 14.5px;
    line-height: 1.4;
}

.lg a:not(.b-btn) {
    color: var(--lg-text);
    font-size: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, .25);
    text-underline-offset: 2px;
    word-break: break-word;
}

.lg a:not(.b-btn):hover {
    color: var(--lg-accent);
    text-decoration-color: currentColor;
}

/* ---------- Nawigacja między dokumentami ---------- */
.lg-nav ul {
    display: flex;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0 0 2px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.lg-nav ul::-webkit-scrollbar {
    display: none;
}

.lg .lg-nav a {
    display: block;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--lg-soft);
    color: var(--lg-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.lg .lg-nav a:hover {
    background: #ebe9e6;
    color: var(--lg-text);
}

.lg .lg-nav a.is-active {
    background: var(--lg-text);
    color: #fff;
}

/* ---------- Tytuł ---------- */
.lg .lg-title {
    margin: 0 0 28px;
    color: var(--lg-text);
    font-family: 'Gilroy', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: none;
}

/* ---------- Dokument (regulamin) ze spisem treści ---------- */
.lg-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
}

.lg-toc {
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 16px 8px 16px 16px;
    border-radius: 14px;
    background: var(--lg-soft);
}

.lg-toc summary {
    color: var(--lg-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .1em !important;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
}

.lg-toc summary::-webkit-details-marker {
    display: none;
}

.lg-toc ol {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.lg .lg-toc a {
    display: flex;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--lg-body);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.lg .lg-toc a:hover,
.lg .lg-toc a.is-current {
    background: #fff;
    color: var(--lg-text);
}

.lg .lg-toc a.is-current {
    font-weight: 700;
}

.lg-toc a span {
    flex: none;
    min-width: 2.4em;
    color: var(--lg-muted);
    font-weight: 700;
}

.lg .legal-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 24px 0 10px;
    padding-top: 16px;
    border-top: 1px solid var(--lg-line);
    color: var(--lg-text);
    font-family: 'Gilroy', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
    scroll-margin-top: 72px;
}

.lg .legal-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal-sec-no {
    color: var(--lg-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em !important;
}

.lg .legal-p {
    margin: 0 0 6px;
}

.legal-n {
    display: inline-block;
    min-width: 2.2em;
    text-indent: 0; /* inline-block dziedziczy ujemne wcięcie akapitu */
    color: var(--lg-text);
    font-weight: 700;
}

.legal-l0 { padding-left: 2.2em; text-indent: -2.2em; }
.legal-l1 { padding-left: 5em; text-indent: -2.8em; }
.legal-l1 .legal-n { min-width: 2.8em; }
.legal-l2 { padding-left: 7.2em; text-indent: -2.2em; }

.legal-doc strong {
    color: var(--lg-text);
}

/* ---------- Prosta strona tekstowa (zwroty) ---------- */
.lg-plain section {
    padding: 16px 0;
    border-top: 1px solid var(--lg-line);
    scroll-margin-top: 72px;
}

.lg-plain section:first-child {
    padding-top: 0;
    border-top: 0;
}

.lg .lg-plain h2 {
    margin: 0 0 8px;
    color: var(--lg-text);
    font-family: 'Gilroy', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

/* Jeden rytm odstępów: akapity, punkty list i podtytuły */
.lg .lg-plain p {
    margin: 0 0 6px;
}

.lg .lg-plain h3 {
    margin: 12px 0 4px;
    color: var(--lg-text);
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
}

.lg-plain ol {
    margin: 0 0 6px;
    padding-left: 1.4em;
}

.lg-plain li {
    margin: 0 0 6px;
    color: var(--lg-body);
    font-size: 14.5px;
    line-height: 1.4;
}

.lg-plain li::marker {
    color: var(--lg-text);
    font-weight: 700;
}

.lg-plain strong {
    color: var(--lg-text);
}

.lg .lg-plain section > p:last-child {
    margin-bottom: 0;
}

.lg-account-no {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Tablet i telefon ---------- */
@media (max-width: 991px) {
    .lg-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lg-toc {
        position: static;
        max-height: none;
        padding: 14px 16px;
    }

    .lg-toc summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .lg-toc summary::after {
        content: '\f107';
        font-family: FontAwesome;
        font-size: 18px;
        transition: transform .2s ease;
    }

    .lg-toc[open] summary::after {
        transform: rotate(180deg);
    }
}

@media (max-width: 767px) {
    .lg {
        padding: 12px 0 48px;
        font-size: 14.5px;
    }

    .lg p,
    .lg-plain li {
        font-size: 14.5px;
    }

    .lg .lg-title {
        margin-bottom: 20px;
        font-size: 26px;
    }

    .lg .legal-section,
    .lg .lg-plain h2 {
        font-size: 19px;
    }

    .lg p,
    .lg-plain li {
        line-height: 1.4;
    }

    .legal-l0 { padding-left: 1.8em; text-indent: -1.8em; }
    .legal-l0 .legal-n { min-width: 1.8em; }
    .legal-l1 { padding-left: 4em; text-indent: -2.8em; }
    .legal-l2 { padding-left: 5.6em; text-indent: -2.2em; }

}
