/* =========================================================
   LEGAL + CONTACT PAGES
   ========================================================= */

body.page-template-default
.th-page-card:has(.th-legal-page) {
    max-width: 980px;

    margin-inline: auto;
}

.th-legal-page {
    padding: 36px;

    border: 1px solid var(--th-border);
    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 10px 34px
        rgba(16,24,40,.045);
}

.th-legal-page > h1 {
    margin: 0 0 16px;

    color: var(--th-text);

    font-size: 38px;
    line-height: 1.3;
    font-weight: 900;
}

.th-legal-intro {
    margin: 0 0 32px;

    padding: 18px 20px;

    border-radius: 12px;

    background: var(--th-blue-soft);

    color: var(--th-text);

    font-size: 16px;
    line-height: 2;
}

.th-legal-page h2 {
    margin:
        34px 0
        12px;

    color: var(--th-text);

    font-size: 23px;
    line-height: 1.4;
    font-weight: 900;
}

.th-legal-page h3 {
    color: var(--th-text);

    font-size: 18px;
    font-weight: 800;
}

.th-legal-page p,
.th-legal-page li {
    color: #475467;

    font-size: 15px;
    line-height: 2;
}

.th-legal-page ul,
.th-legal-page ol {
    padding-right: 22px;
}

.th-legal-page li + li {
    margin-top: 5px;
}

.th-legal-page a {
    color: var(--th-blue);

    font-weight: 700;
}

.th-legal-page a:hover {
    text-decoration: underline;
}


/* =========================================================
   CONTACT
   ========================================================= */

.th-contact-page {
    min-height: 430px;
}

.th-contact-cards {
    margin-top: 28px;

    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 16px;
}

.th-contact-card {
    min-height: 190px;

    padding: 25px;

    border: 1px solid var(--th-border);
    border-radius: 14px;

    background: #f8fafc;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.th-contact-card h3 {
    margin: 0 0 7px;

    font-size: 19px;
}

.th-contact-card p {
    margin: 0 0 13px;

    font-size: 14px;
}

.th-contact-card a {
    display: inline-flex;

    width: fit-content;

    padding: 9px 13px;

    border-radius: 9px;

    background: var(--th-blue);
    color: #fff;

    font-size: 14px;
    font-weight: 800;
}

.th-contact-card a:hover {
    background: var(--th-blue-hover);
    color: #fff;

    text-decoration: none;
}


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

@media (max-width: 767px) {

    .th-legal-page {
        padding: 22px 17px;

        border-radius: 14px;
    }

    .th-legal-page > h1 {
        font-size: 30px;
    }

    .th-legal-intro {
        margin-bottom: 24px;

        padding: 14px;

        font-size: 14px;
    }

    .th-legal-page h2 {
        margin-top: 27px;

        font-size: 20px;
    }

    .th-legal-page p,
    .th-legal-page li {
        font-size: 14px;
        line-height: 1.9;
    }

    .th-contact-cards {
        grid-template-columns: 1fr;
    }

    .th-contact-card {
        min-height: 155px;

        padding: 20px;
    }
}
