/* =========================================================
   REGULAMIN
========================================================= */

.legal-page {
    padding-bottom: 0;
}


/* =========================================================
   HEADER — TYLKO PODSTRONA REGULAMINU
========================================================= */

.site-header {
    padding-bottom: 15px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.legal-page .legal-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 0;
    padding: 10px 0 0;

    color: #8a8882;

    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    line-height: 1.4;
}

.legal-page .legal-breadcrumbs a {
    color: #8a8882;
    transition: color .2s ease;
}

.legal-page .legal-breadcrumbs a:hover {
    color: #596042;
}

.legal-page .legal-breadcrumbs > span {
    color: #aaa79f;
}

.legal-page .legal-breadcrumbs strong {
    color: #4f5152;
    font-weight: 500;
}


/* =========================================================
   HERO
========================================================= */

.legal-page .legal-hero {
    position: relative !important;

    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 52px 0 48px !important;

    overflow: visible !important;

    background: none !important;
}

.legal-page .legal-hero::before,
.legal-page .legal-hero::after {
    display: none !important;
    content: none !important;
}

.legal-page .legal-hero__grid {
    display: block !important;

    width: 100% !important;

    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: none !important;
}

.legal-page .legal-hero__content {
    position: relative !important;

    width: 100% !important;
    max-width: 560px !important;

    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: none !important;
}

.legal-page .legal-hero__image {
    display: none !important;
}


/* =========================================================
   HERO — EYEBROW
========================================================= */

.legal-page .legal-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 0 0 15px;

    color: #606846;

    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 2.7px;
}

.legal-page .legal-hero__eyebrow span {
    display: block;

    width: 38px;
    height: 1px;

    background: #8b9077;
}


/* =========================================================
   HERO — TYTUŁ
========================================================= */

.legal-page .legal-hero h1 {
    width: auto !important;
    max-width: 540px !important;

    margin: 0 0 17px !important;

    color: var(--text);

    font-family: "Cormorant Garamond", serif;
    font-size: 44px;
    font-weight: 600;

    line-height: .92;

    letter-spacing: -1.1px;
}

.legal-page .legal-hero h1 em {
    display: inline-block;

    color: #697250;

    font-weight: 600;
}


/* =========================================================
   HERO — OPIS
========================================================= */

.legal-page .legal-hero__intro {
    width: auto !important;
    max-width: 450px !important;

    margin: 0 !important;

    color: #676763;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   REGULAMIN
========================================================= */

.legal-page .legal-content {
    margin: 0;
    padding: 0;
}

.legal-page .legal-accordion {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 9px;
}


/* =========================================================
   POJEDYNCZA SEKCJA
========================================================= */

.legal-page .legal-section {
    overflow: hidden;

    margin: 0;

    border: 1px solid rgba(188, 183, 172, .46);
    border-radius: 11px;

    background: rgba(255, 255, 255, .12);

    transition:
        border-color .2s ease,
        background-color .2s ease;
}

.legal-page .legal-section[open] {
    border-color: rgba(166, 163, 151, .55);

    background: rgba(255, 255, 255, .19);
}

.legal-page .legal-section > summary {
    list-style: none;
}

.legal-page .legal-section > summary::-webkit-details-marker {
    display: none;
}


/* =========================================================
   NAGŁÓWEK SEKCJI
========================================================= */

.legal-page .legal-section__header {
    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr)
        34px;

    align-items: center;

    gap: 12px;

    min-height: 62px;

    margin: 0;

    padding: 9px 11px 9px 12px;

    cursor: pointer;
}


/* =========================================================
   NUMER §
========================================================= */

.legal-page .legal-section__number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: rgba(225, 219, 207, .5);

    color: #363a3b;

    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;

    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}


/* =========================================================
   TYTUŁ SEKCJI
========================================================= */

.legal-page .legal-section__header .legal-section__title {
    margin: 0 !important;

    color: var(--text);

    font-family: "Cormorant Garamond", serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;

    line-height: 1.12 !important;

    letter-spacing: 0 !important;
}


/* =========================================================
   STRZAŁKA
========================================================= */

.legal-page .legal-section__arrow {
    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: rgba(225, 219, 207, .42);
}

.legal-page .legal-section__arrow svg {
    display: block;

    width: 14px;
    height: 14px;

    fill: none;

    stroke: #555b45;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform .22s ease;
}

.legal-page .legal-section[open] .legal-section__arrow svg {
    transform: rotate(180deg);
}


/* =========================================================
   TREŚĆ
========================================================= */

.legal-page .legal-section__content {
    max-width: 690px;

    margin: 0;

    padding:
        5px
        54px
        25px
        65px;

    color: #55575a;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    line-height: 1.68;
}

.legal-page .legal-section__content ol {
    margin: 0;
    padding-left: 20px;
}

.legal-page .legal-section__content > ol > li {
    padding-left: 2px;
}

.legal-page .legal-section__content li + li {
    margin-top: 9px;
}

.legal-page .legal-section__content strong {
    color: #333638;
    font-weight: 600;
}

.legal-page .legal-section__content ul {
    margin: 10px 0 4px;

    padding-left: 20px;

    list-style: disc;
}

.legal-page .legal-section__content ul li + li {
    margin-top: 6px;
}


/* =========================================================
   LINKI
========================================================= */

.legal-page .legal-section__content a {
    color: #596042;

    font-weight: 500;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition: color .2s ease;
}

.legal-page .legal-section__content a:hover {
    color: #3f4630;
}


/* =========================================================
   OTWIERANIE
========================================================= */

.legal-page .legal-section[open] .legal-section__content {
    animation: legalReveal .18s ease;
}

@keyframes legalReveal {

    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {


    /* =========================
       HEADER
    ========================= */

    .site-header {
        padding-bottom: 12px;
    }


    /* =========================
       BREADCRUMB
    ========================= */

    .legal-page .legal-breadcrumbs {
        padding-top: 4px;

        font-size: 11px;
    }


    /* =========================
       HERO
    ========================= */

    .legal-page .legal-hero {
        min-height: 0 !important;
        height: auto !important;

        padding: 34px 0 36px !important;
    }

    .legal-page .legal-hero__grid,
    .legal-page .legal-hero__content {
        min-height: 0 !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        background: none !important;
    }

    .legal-page .legal-hero__eyebrow {
        gap: 10px;

        margin-bottom: 12px;

        font-size: 10px;

        letter-spacing: 2.3px;
    }

    .legal-page .legal-hero__eyebrow span {
        width: 29px;
    }

    .legal-page .legal-hero h1 {
        max-width: 330px !important;

        margin-bottom: 14px !important;

        font-size: 36px;
        line-height: .94;

        letter-spacing: -.75px;
    }

    .legal-page .legal-hero__intro {
        max-width: 335px !important;

        font-size: 13px;
        line-height: 1.55;
    }


    /* =========================
       ACCORDION
    ========================= */

    .legal-page .legal-content {
        margin: 0;
        padding: 0;
    }

    .legal-page .legal-accordion {
        gap: 8px;
    }


    /* =========================
       WIERSZ
    ========================= */

    .legal-page .legal-section__header {
        grid-template-columns:
            39px
            minmax(0, 1fr)
            32px;

        gap: 9px;

        min-height: 58px;

        padding: 8px 9px 8px 10px;
    }


    /* =========================
       NUMER
    ========================= */

    .legal-page .legal-section__number {
        width: 36px;
        height: 36px;

        font-size: 15px;
    }


    /* =========================
       TYTUŁ
    ========================= */

    .legal-page .legal-section__header .legal-section__title {
        font-size: 18px !important;

        line-height: 1.12 !important;
    }


    /* =========================
       STRZAŁKA
    ========================= */

    .legal-page .legal-section__arrow {
        width: 30px;
        height: 30px;
    }

    .legal-page .legal-section__arrow svg {
        width: 13px;
        height: 13px;
    }


    /* =========================
       TREŚĆ
    ========================= */

    .legal-page .legal-section__content {
        max-width: none;

        padding:
            4px
            14px
            21px
            55px;

        font-size: 13px;
        line-height: 1.62;
    }

    .legal-page .legal-section__content ol {
        padding-left: 18px;
    }

}