/* global definitions */
:root {
    --legal-text-color: #3b3b3b;
    --legal-selector-bg-active-color: #fcbf00;
}

/* Common */
.legal-header {
    width: 100%;

    & h1 {
        width: 100%;
        text-align: center;
    }

    & p {
        width: 100%;
        text-align: center;
    }
}

.legal-content-wrapper {
    min-height: 70svh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.legal-content {
    width: 100%;
    overflow: hidden;

    & .legal-p {
        width: 100%;
        display: grid;
        grid-template-columns: auto auto;
        color: var(--legal-text-color);
    }
}

.legal-content-collapsable {
    & .legal-p {
        max-height: 0;
    }
}

.legal-content-active {
    & .legal-p {
        max-height: none;
    }
}

/* Impressum */
.imp-table {
    display: grid;
    width: 100%;

    & .imp-label {
        width: 100%;
        font-weight: bold;
    }

    & .imp-detail {
        width: 100%;
    }
}

/* AGB */
.agb-selectors {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    width: 100%;

    & .agb-selector {
        cursor: pointer;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

        & p {
            text-transform: uppercase;
            text-align: center;
        }
    }

    & .agb-selector-active {
        background-color: var(--legal-selector-bg-active-color) !important;
    }
}


@media screen and (min-width: 1200px) {
    /* Impressum */
    .imp-table {
        grid-template-columns: 35% 65%;

        & .imp-label {
            padding: 1rem 3rem;
            font-size: 2rem;
        }

        & .imp-detail {
            padding: 1rem 3rem;
            font-size: 2rem;
        }
    }

    .legal-header {
        padding: 3rem;

        & h1 {
            padding: 2rem 0;
            font-size: 4rem;
        }

        & p {
            padding: 1rem 0;
            font-size: 2rem;
        }
    }

    .agb-selectors {
        padding: 3rem 3rem;
        padding-bottom: 8rem;

        & .agb-selector {
            width: 280px;
            cursor: pointer;
            border-radius: 1.5rem;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

            & p {
                padding: 2rem 3rem;
                font-size: 2rem;
                font-weight: bold;
                text-transform: uppercase;
            }
        }

    }

    .legal-content {
        padding: 0 3rem;

        & .legal-p {
            gap: 2rem;

            & .legal-p-nr {
                width: auto;
                font-size: 2rem
            }

            & .legal-p-text {
                width: auto;
                font-size: 2rem;
            }
        }
    }

    .legal-content-collapsable {
        padding: 0 4rem !important;
    }
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
    /* Impressum */
    .imp-table {
        grid-template-columns: 35% 65%;

        & .imp-label {
            padding: 1rem 3rem;
            font-size: 2rem;
        }

        & .imp-detail {
            padding: 1rem 3rem;
            font-size: 2rem;
        }
    }

    .legal-header {
        padding: 3rem;

        & h1 {
            padding: 2rem 0;
            font-size: 4rem;
        }

        & p {
            padding: 1rem 0;
            font-size: 2rem;
        }
    }

    .agb-selectors {
        padding: 3rem 3rem;
        padding-bottom: 8rem;

        & .agb-selector {
            width: 280px;
            cursor: pointer;
            border-radius: 1.5rem;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

            & p {
                padding: 2rem 3rem;
                font-size: 2rem;
                font-weight: bold;
                text-transform: uppercase;
            }
        }

    }

    .legal-content {
        padding: 0 3rem;

        & .legal-p {
            gap: 2rem;

            & .legal-p-nr {
                width: auto;
                font-size: 2rem
            }

            & .legal-p-text {
                width: auto;
                font-size: 2rem;
            }
        }
    }

    .legal-content-collapsable {
        padding: 0 4rem !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
    /* Impressum */
    .imp-table {
        grid-template-columns: 40% 60%;
        padding: 4rem 3rem;

        & .imp-label {
            padding: 0.8rem 0rem;
            font-size: 1.8rem;
        }

        & .imp-detail {
            padding: 0.8rem 0rem;
            font-size: 1.8rem;
        }
    }

    .legal-header {
        padding: 3rem;

        & h1 {
            padding: 2rem 0;
            font-size: 2.2rem;
        }

        & p {
            padding: 1rem 0;
            font-size: 1.4rem;
        }
    }

    .agb-selectors {
        padding: 3rem 1rem;
        padding-bottom: 4rem;

        & .agb-selector {
            width: 150px;
            cursor: pointer;
            border-radius: 1.5rem;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

            & p {
                padding: 1rem 0.5rem;
                font-size: 1.4rem;
                font-weight: bold;
                text-transform: uppercase;
            }
        }

    }

    .legal-content {
        padding: 0 1rem;

        & .legal-p {
            gap: 1rem;

            & .legal-p-nr {
                width: auto;
                font-size: 1.4rem
            }

            & .legal-p-text {
                width: auto;
                font-size: 1.4rem;
            }
        }
    }

    .legal-content-collapsable {
        padding: 0 4rem !important;
    }
}

@media screen and (min-width: 480px) and (max-width: 768px) {
    /* Impressum */
    .imp-table {
        grid-template-rows: 1fr;
        padding: 2rem 3rem;

        & .imp-label {
            padding: 0.8rem 0rem;
            font-size: 1.8rem;
        }

        & .imp-detail {
            padding: 0.8rem 0rem;
            padding-left: 3rem;
            font-size: 1.8rem;
        }
    }

    .legal-header {
        padding: 3rem;

        & h1 {
            padding: 2rem 0;
            font-size: 2.2rem;
        }

        & p {
            padding: 1rem 0;
            font-size: 1.4rem;
        }
    }

    .agb-selectors {
        padding: 3rem 1rem;
        padding-bottom: 4rem;

        & .agb-selector {
            width: 190px;
            cursor: pointer;
            border-radius: 1.5rem;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

            & p {
                padding: 1rem 0.5rem;
                font-size: 1.4rem;
                font-weight: bold;
                text-transform: uppercase;
            }
        }

    }

    .legal-content {
        padding: 0 1rem;

        & .legal-p {
            gap: 1rem;

            & .legal-p-nr {
                width: auto;
                font-size: 1.4rem
            }

            & .legal-p-text {
                width: auto;
                font-size: 1.4rem;
            }
        }
    }

    .legal-content-collapsable {
        padding: 0 4rem !important;
    }
}

@media screen and (max-width: 480px) {
    /* Impressum */
    .imp-table {
        grid-template-rows: 1fr;
        padding: 2rem 3rem;

        & .imp-label {
            padding: 0.8rem 0rem;
            font-size: 1.8rem;
        }

        & .imp-detail {
            padding: 0.8rem 0rem;
            padding-left: 3rem;
            font-size: 1.8rem;
        }
    }

    .legal-header {
        padding: 3rem;

        & h1 {
            padding: 2rem 0;
            font-size: 2.2rem;
        }

        & p {
            padding: 1rem 0;
            font-size: 1.4rem;
        }
    }

    .agb-selectors {
        padding: 3rem 1rem;
        padding-bottom: 4rem;

        & .agb-selector {
            width: 150px;
            cursor: pointer;
            border-radius: 1.5rem;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

            & p {
                padding: 1rem 0.5rem;
                font-size: 1.4rem;
                font-weight: bold;
                text-transform: uppercase;
            }
        }

    }

    .legal-content {
        padding: 0 1rem;

        & .legal-p {
            gap: 1rem;

            & .legal-p-nr {
                width: auto;
                font-size: 1.4rem
            }

            & .legal-p-text {
                width: auto;
                font-size: 1.4rem;
            }
        }
    }

    .legal-content-collapsable {
        padding: 0 4rem !important;
    }
}