/**
 * Fichier  : /pages/legal/assets/css/style.css
 * Fonction : style des pages légalement obligatoires
 */


/* ==================================================
   STRUCTURE
================================================== */

.legal {
    position: relative;
    padding: 3em 20em;
}

.legal main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


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

.legal header {
    margin-bottom: 2em;

    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ==================================================
   SECTIONS
================================================== */

.legal main section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal section {
    box-sizing: border-box;
    padding: 2.5em 2em;

    background: linear-gradient(
        130deg,
        rgb(255 255 255) 0%,
        #eee 100%
    );

    border: 1px solid #ddd;
    border-radius: 15px;
}


/* ==================================================
   TYPOGRAPHY
================================================== */

.legal h2,
.legal h3,
.legal h4,
.legal b,
.legal a {
    font-family: 'bold-font';
}

.legal p,
.legal ul,
.legal h5 {
    font-family: 'content-font';
}


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

.legal header h2,
.legal header h5,
.legal header p {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.legal h2 {
    font-size: 28px;
    font-weight: 400;
}

.legal h5 {
    font-size: 12px;
    font-weight: 100;
}

.legal header p {
    font-size: 12px;
    line-height: 18px;
}


/* ==================================================
   TITLES
================================================== */

.legal h3 {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 18px;

    color: #111;
}

.legal h3::before {
    content: "";

    width: 50px;
    height: 2px;

    background: var(--color__2);
    border-radius: 20px;
}

.legal h4 {
    font-size: 14px;
    font-weight: 400;
    color: #111;
}


/* ==================================================
   CONTENT
================================================== */

.legal p,
.legal ul {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;

    color: #111;
}

.legal p {
    text-align: justify;
}

.legal ul {
    text-align: left;
}


/* ==================================================
   LINKS
================================================== */

.legal a {
    color: var(--color__2);
}

.legal a:hover {
    text-decoration: underline !important;
}


/* ==================================================
   ADVANCED LINKS
================================================== */

.legal .advanced a {
    font-family: 'content-font';
    font-size: 14px;
    line-height: 25px;
    color: #3263ff;
}


/* ==================================================
   TABLES
================================================== */

.legal table {
    padding: 20px;

    background-color: #00000020;
    border-radius: 5px;
}

.legal table tr {
    background-color: var(--color__2);
}

.legal table tr th {
    padding: 10px;

    font-family: 'content-font';
    font-size: 14px;
    font-weight: 400;
    line-height: 23px;
    text-align: justify;

    color: #111;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media screen and (max-width: 1024px) {

    .legal {
        padding: 3em 1.5em;
    }

    .legal section {
        padding: 2em 1.5em;
    }

    .legal h2 {
        font-size: 24px;
    }

    .legal h3::before {
        width: 30px;
    }

    .legal header p {
        text-transform: none;
        letter-spacing: 0;
    }

}