/* ==================================================
   GENERAL PAGE SETTINGS
================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background-color: #f7f5ef;

    color: #2f3e34;

    font-family: Arial, Helvetica, sans-serif;
}


/* ==================================================
   TERMS PAGE
================================================== */

.terms-page {
    width: 100%;

    min-height: 100vh;

    background-color: #f7f5ef;
}


/* ==================================================
   HEADER SPACING
================================================== */

.header {
    width: 100%;

    z-index: 1000;
}


/*
   IMPORTANT:

   If your header inside style.css uses:

   position: fixed;

   then uncomment this:

.terms-page {
    padding-top: 80px;
}

*/


/* ==================================================
   MAIN CONTENT CONTAINER
================================================== */

.terms-container {
    width: min(92%, 1050px);

    margin: 0 auto;
}


/* ==================================================
   TERMS HERO / PAGE HEADER
================================================== */

.terms-header {
    width: 100%;

    background-color: #315c45;

    color: #ffffff;

    padding: 55px 20px 50px;

    text-align: center;
}


.terms-header .terms-container {
    max-width: 850px;
}


/* Small "Legal" label */

.terms-label {
    margin: 0 0 10px;

    color: #d8b36a;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* Main heading */

.terms-header h1 {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: clamp(34px, 5vw, 48px);

    font-weight: 700;

    line-height: 1.15;
}


/* Introduction */

.terms-introduction {
    max-width: 720px;

    margin: 0 auto 15px;

    color: #e4eee8;

    font-size: 17px;

    line-height: 1.7;
}


/* Last updated */

.terms-date {
    margin: 0;

    color: #cddbd2;

    font-size: 13px;
}


/* ==================================================
   TERMS CONTENT AREA
================================================== */

.terms-content {
    width: 100%;

    padding: 45px 20px 65px;
}


/* ==================================================
   INDIVIDUAL TERMS CARDS
================================================== */

.terms-section {
    width: 100%;

    margin: 0 0 20px;

    padding: 28px 32px;

    background-color: #ffffff;

    border: 1px solid #e2e5e1;

    border-radius: 8px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04);
}


/* ==================================================
   IMPORTANT SECTIONS
================================================== */

.important-terms-section {
    background-color: #fbfcfa;

    border-left: 4px solid #315c45;
}


/* ==================================================
   SECTION TITLES
================================================== */

.terms-section h2 {
    margin: 0 0 14px;

    color: #315c45;

    font-size: 23px;

    font-weight: 700;

    line-height: 1.3;
}


.terms-section h3 {
    margin: 22px 0 10px;

    color: #3f624e;

    font-size: 18px;

    font-weight: 700;

    line-height: 1.4;
}


/* ==================================================
   PARAGRAPHS
================================================== */

.terms-section p {
    margin: 0 0 13px;

    color: #4d5750;

    font-size: 15.5px;

    line-height: 1.75;
}


.terms-section p:last-child {
    margin-bottom: 0;
}


/* ==================================================
   LISTS
================================================== */

.terms-section ul {
    margin: 12px 0 18px;

    padding-left: 24px;
}


.terms-section li {
    margin-bottom: 7px;

    color: #4d5750;

    font-size: 15.5px;

    line-height: 1.6;
}


.terms-section li::marker {
    color: #315c45;
}


/* ==================================================
   LINKS
================================================== */

.terms-section a {
    color: #315c45;

    font-weight: 600;

    text-decoration: underline;

    text-underline-offset: 3px;

    transition:
        color 0.2s ease;
}


.terms-section a:hover {
    color: #a2793d;
}


.terms-section a:focus {
    outline: 2px solid #d8b36a;

    outline-offset: 3px;
}


/* ==================================================
   STRONG TEXT
================================================== */

.terms-section strong {
    color: #315c45;
}


/* ==================================================
   CONTACT SECTION
================================================== */

.terms-contact {
    border-left: 4px solid #315c45;
}


.terms-contact p {
    margin-bottom: 8px;
}


/* ==================================================
   IMPORTANT NOTICE
================================================== */

.terms-notice {
    width: 100%;

    margin-top: 28px;

    padding: 25px 30px;

    background-color: #edf3ef;

    border-left: 4px solid #315c45;

    border-radius: 8px;
}


.terms-notice h2 {
    margin: 0 0 10px;

    color: #315c45;

    font-size: 21px;
}


.terms-notice p {
    margin: 0;

    color: #4d5750;

    font-size: 15px;

    line-height: 1.7;
}


/* ==================================================
   FOOTER
================================================== */

.footer {
    width: 100%;

    background-color: #315c45;

    color: #ffffff;

    padding: 42px 25px 23px;
}


/* ==================================================
   FOOTER CONTAINER
================================================== */

.footer-container {
    width: min(94%, 1300px);

    margin: 0 auto;
}


/* ==================================================
   FOOTER GRID
================================================== */

.footer-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    column-gap: 30px;

    row-gap: 25px;
}


/* ==================================================
   FOOTER BRAND
================================================== */

.footer-brand {
    grid-column: 1 / -1;

    max-width: 650px;

    margin-bottom: 5px;
}


.footer-brand h2 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 29px;

    line-height: 1.2;
}


.footer-brand p {
    max-width: 580px;

    margin: 0;

    color: #e4eee8;

    font-size: 15px;

    line-height: 1.6;
}


/* ==================================================
   FOOTER COLUMNS
================================================== */

.footer-grid > div:not(.footer-brand) {
    min-width: 0;
}


.footer h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 15px;

    line-height: 1.3;
}


/* ==================================================
   FOOTER LINKS
================================================== */

.footer-grid a {
    display: block;

    margin-bottom: 8px;

    color: #dce8e0;

    font-size: 13.5px;

    line-height: 1.5;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.footer-grid a:hover {
    color: #d8b36a;
}


.footer-grid a:focus {
    outline: 2px solid #d8b36a;

    outline-offset: 3px;
}


/* ==================================================
   FOOTER BOTTOM
================================================== */

.footer-bottom {
    width: 100%;

    margin-top: 35px;

    padding-top: 18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.23);

    text-align: center;
}


.footer-bottom > p {
    margin: 0 0 9px;

    color: #dce8e0;

    font-size: 12.5px;
}


/* ==================================================
   LEGAL LINKS
================================================== */

.legal-documents {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;
}


.legal-documents a {
    color: #dce8e0;

    font-size: 12.5px;

    text-decoration: none;
}


.legal-documents a:hover {
    color: #d8b36a;
}


.legal-documents span {
    color: #aebfb4;

    font-size: 12px;
}


/* ==================================================
   LARGE TABLET
================================================== */

@media (max-width: 1000px) {

    .terms-container {
        width: 92%;
    }


    .footer-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 28px;
    }


    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 768px) {

    .terms-header {
        padding:
            45px 20px
            42px;
    }


    .terms-header h1 {
        font-size: 36px;
    }


    .terms-introduction {
        font-size: 16px;
    }


    .terms-content {
        padding:
            35px 16px
            55px;
    }


    .terms-section {
        padding: 25px;
    }


    .terms-section h2 {
        font-size: 21px;
    }


    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {

    .terms-container {
        width: 100%;
    }


    .terms-header {
        padding:
            38px 18px
            35px;
    }


    .terms-header h1 {
        font-size: 31px;

        line-height: 1.2;
    }


    .terms-introduction {
        font-size: 15px;

        line-height: 1.65;
    }


    .terms-content {
        padding:
            25px 14px
            45px;
    }


    .terms-section {
        margin-bottom: 15px;

        padding:
            22px 18px;

        border-radius: 7px;
    }


    .terms-section h2 {
        margin-bottom: 12px;

        font-size: 20px;
    }


    .terms-section p,
    .terms-section li {
        font-size: 14.5px;
    }


    .terms-notice {
        margin-top: 22px;

        padding: 22px 18px;
    }


    /* FOOTER */

    .footer {
        padding:
            32px 20px
            20px;
    }


    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 20px;

        row-gap: 25px;
    }


    .footer-brand {
        grid-column: 1 / -1;
    }


    .footer-brand h2 {
        font-size: 25px;
    }


    .footer-brand p {
        font-size: 14px;
    }


    .footer-bottom {
        margin-top: 28px;
    }
}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 420px) {

    .terms-header h1 {
        font-size: 27px;
    }


    .terms-section {
        padding:
            20px 16px;
    }


    .footer-grid {
        grid-template-columns: 1fr;
    }


    .footer-brand {
        grid-column: 1;
    }


    .legal-documents {
        flex-direction: column;

        gap: 6px;
    }


    .legal-documents span {
        display: none;
    }
}