:root {
    --dm-navy: #1b3068;
    --dm-navy-dark: #142550;
    --dm-brown: #C72C41;
    --dm-cream: #f1ece3;
    --dm-cream-light: rgba(247, 243, 236, 0.616);
    --dm-paper: #fbf9f5;
    --dm-ink: #211b18;
    --dm-muted: #756d63;
    --dm-line: #d0c6b9;
    --dm-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--dm-ink);
    background: var(--dm-cream-light);
    font-family: "Open Sans", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   CONTAINER
===================================================== */

.dm-terms-container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}


/* =====================================================
   HERO
===================================================== */

.dm-terms-hero {
    padding: 96px 0 60px;
    background: var(--dm-cream);
    border-bottom: 1px solid var(--dm-line);
}

.dm-terms-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;

    color: var(--dm-brown);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.dm-terms-eyebrow i {
    width: 38px;
    height: 1px;

    background: var(--dm-brown);
}

.dm-terms-hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
}

.dm-terms-hero h1 {
    margin: 0;

    color: var(--dm-ink);

    font-family: "Poppins", sans-serif;
    font-size: clamp(48px, 7vw, 78px);
    font-weight: 400;
    line-height: .95;

    letter-spacing: -4px;
}

.dm-terms-hero h1 em {
    color: var(--dm-navy);
    font-style: italic;
}

.dm-terms-hero-content > div:first-child {
    max-width: 780px;
}

.dm-terms-hero p {
    max-width: 650px;

    margin: 22px 0 0;

    color: var(--dm-muted);

    font-size: 15px;
    line-height: 1.7;
}

.dm-terms-effective {
    min-width: 205px;

    padding: 20px 22px;

    background: var(--dm-paper);
    border: 1px solid var(--dm-line);
}

.dm-terms-effective span {
    display: block;

    margin-bottom: 9px;

    color: var(--dm-muted);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.dm-terms-effective strong {
    color: var(--dm-navy);

    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 500;
}


/* =====================================================
   MAIN SECTION
===================================================== */

.dm-terms-section {
    padding: 55px 0 90px;

    background: var(--dm-cream-light);
}

.dm-terms-main {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    display: grid;
    gap: 20px;
}


/* =====================================================
   TERMS CARD
===================================================== */

.dm-terms-card {
    padding: 30px;

    background: var(--dm-paper);
    border: 1px solid var(--dm-line);

    scroll-margin-top: 30px;
}

.dm-terms-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 25px;
    padding-bottom: 20px;

    border-bottom: 1px solid var(--dm-line);
}

.dm-terms-card-heading > div span {
    display: block;

    margin-bottom: 8px;

    color: var(--dm-brown);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.dm-terms-card-heading h2 {
    margin: 0;

    color: var(--dm-ink);

    font-family: "Poppins", sans-serif;
    font-size: 27px;
    font-weight: 400;
}

.dm-terms-card-heading > i {
    color: var(--dm-navy);
    font-size: 19px;
}


/* =====================================================
   NUMBER
===================================================== */

.dm-terms-number {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--dm-navy);
    background: var(--dm-cream);

    border: 1px solid var(--dm-line);

    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
}


/* =====================================================
   TEXT
===================================================== */

.dm-terms-card p {
    margin: 0 0 16px;

    color: var(--dm-muted);

    font-size: 15px;
    line-height: 1.8;
}

.dm-terms-card p:last-child {
    margin-bottom: 0;
}

.dm-terms-card p strong {
    color: var(--dm-ink);
    font-weight: 700;
}


/* =====================================================
   INTRO
===================================================== */

.dm-terms-intro {
    border-left: 3px solid var(--dm-navy);
}

.dm-terms-intro p {
    font-size: 16px;
    line-height: 1.85;
}


/* =====================================================
   LIST
===================================================== */

.dm-terms-list {
    display: grid;
    gap: 0;

    margin: 0;
    padding: 0;

    list-style: none;
}

.dm-terms-list li {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    padding: 15px 0;

    color: var(--dm-muted);

    border-bottom: 1px solid var(--dm-line);

    font-size: 15px;
    line-height: 1.7;
}

.dm-terms-list li:first-child {
    padding-top: 0;
}

.dm-terms-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dm-terms-list li i {
    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 1px;

    color: var(--dm-navy);
    background: var(--dm-cream);

    border-radius: 50%;

    font-size: 9px;
}

.dm-terms-list a {
    color: var(--dm-navy);

    font-weight: 700;

    border-bottom: 1px solid rgba(27, 48, 104, .35);

    transition: .2s ease;
}

.dm-terms-list a:hover {
    color: var(--dm-brown);
    border-color: var(--dm-brown);
}


/* =====================================================
   CONTACT
===================================================== */

.dm-terms-contact {
    border-top: 3px solid var(--dm-navy);
}

.dm-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 0 30px;

    margin-top: 25px;
}

.dm-contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 15px 0;

    border-top: 1px solid var(--dm-line);
}

.dm-contact-item span {
    color: var(--dm-muted);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.dm-contact-item strong,
.dm-contact-item a {
    color: var(--dm-ink);

    font-size: 14px;
    line-height: 1.6;
}

.dm-contact-item a {
    color: var(--dm-navy);
    font-weight: 600;
}

.dm-contact-item a:hover {
    color: var(--dm-brown);
}

.dm-contact-full {
    grid-column: 1 / -1;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 800px) {

    .dm-terms-hero-content {
        display: block;
    }

    .dm-terms-effective {
        width: fit-content;

        margin-top: 28px;
    }

    .dm-terms-main {
        max-width: 100%;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .dm-terms-container {
        width: min(100% - 30px, 600px);
    }

    .dm-terms-hero {
        padding: 100px 0 45px;
    }

    .dm-terms-eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .dm-terms-eyebrow i {
        width: 25px;
    }

    .dm-terms-hero h1 {
        font-size: 49px;
        letter-spacing: -3px;
    }

    .dm-terms-hero p {
        font-size: 14px;
    }

    .dm-terms-section {
        padding: 35px 0 60px;
    }

    .dm-terms-card {
        padding: 20px;
    }

    .dm-terms-card-heading {
        margin-bottom: 20px;
        padding-bottom: 17px;
    }

    .dm-terms-card-heading h2 {
        font-size: 23px;
    }

    .dm-terms-card p,
    .dm-terms-list li {
        font-size: 14px;
    }

    .dm-contact-grid {
        grid-template-columns: 1fr;
    }

    .dm-contact-full {
        grid-column: auto;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 430px) {

    .dm-terms-container {
        width: calc(100% - 24px);
    }

    .dm-terms-hero h1 {
        font-size: 42px;
    }

    .dm-terms-card {
        padding: 17px;
    }

    .dm-terms-card-heading h2 {
        font-size: 21px;
    }

    .dm-terms-number {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 11px;
    }

}