/* =============================================
   BASE
   ============================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =============================================
   TERMS SECTION
   ============================================= */

.terms-section {
    background: #F9F5EE;
    padding: 160px 20px 120px;
    /* top clears fixed 80px navbar with breathing room;
                                   horizontal padding prevents edge bleed on narrow screens */
}

/* =============================================
   TERMS CONTAINER
   ============================================= */

.terms-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* =============================================
   MAIN HEADING
   ============================================= */

.terms-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 600;
    color: #003060;
    margin-bottom: 50px;
    text-align: center;
    line-height: 1.1;
}

/* =============================================
   INTRO PARAGRAPH
   ============================================= */

.terms-container .intro {
    font-family: 'Urbanist', sans-serif;
    font-size: 18px;
    color: #4a5169;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   SECTION HEADINGS
   ============================================= */

.terms-container h2 {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #003060;
    margin-top: 60px;
    margin-bottom: 16px;
}

/* =============================================
   PARAGRAPHS
   ============================================= */

.terms-container p {
    font-family: 'Urbanist', sans-serif;
    font-size: 17px;
    color: #5F667A;
    line-height: 1.9;
    margin-bottom: 18px;
    max-width: 100%;
}

/* =============================================
   LIST STYLING
   ============================================= */

.terms-container ul {
    padding-left: 25px;
    margin-bottom: 25px;
}

.terms-container li {
    font-family: 'Urbanist', sans-serif;
    font-size: 17px;
    color: #5F667A;
    line-height: 1.9;
    margin-bottom: 10px;
}

/* =============================================
   LINKS
   ============================================= */

.terms-container a {
    color: #003060;
    text-decoration: underline;
    word-break: break-word;
    /* long URLs like the Elan PDF link won't overflow */
    transition: opacity 0.2s ease;
}

.terms-container a:hover {
    opacity: 0.7;
}

/* =============================================
   RESPONSIVE — TABLET (max-width: 1023px)
   ============================================= */

@media screen and (max-width: 1023px) {
    .terms-section {
        padding: 140px 30px 80px;
    }

    .terms-container h1 {
        font-size: 48px;
        margin-bottom: 36px;
    }

    .terms-container h2 {
        font-size: 18px;
        margin-top: 48px;
    }
}

/* =============================================
   RESPONSIVE — MOBILE (max-width: 767px)
   ============================================= */

@media screen and (max-width: 767px) {
    .terms-section {
        padding: 120px 20px 60px;
    }

    .terms-container h1 {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .terms-container .intro {
        font-size: 16px;
        text-align: left;
    }

    .terms-container h2 {
        font-size: 16px;
        margin-top: 40px;
        margin-bottom: 12px;
    }

    .terms-container p,
    .terms-container li {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (max-width: 479px)
   ============================================= */

@media screen and (max-width: 479px) {
    .terms-section {
        padding: 110px 16px 50px;
    }

    .terms-container h1 {
        font-size: 30px;
    }

    .terms-container h2 {
        font-size: 16px;
    }

    .terms-container p,
    .terms-container li {
        font-size: 14px;
    }
}