* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fbfdff;
    color: #172044;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}


/* HEADER */

.site-header {
    width: min(912px, calc(100% - 64px));
    height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    display: block;
    width: 200px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 37px;
    color: #526181;
    font-size: 15px;
    font-weight: 700;
}

.main-nav a:hover {
    color: #1670ee;
}

.nav-play {
    padding: 15px 27px;
    border-radius: 30px;
    background: #1670ee;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(22, 112, 238, .18);
}

.nav-play span {
    margin-left: 5px;
}


/* HERO */

.terms-hero {
    width: min(904px, calc(100% - 64px));
    margin: 35px auto 35px;
}

.eyebrow {
    margin-bottom: 12px;
    color: #4287f5;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
}

.terms-hero h1 {
    margin: 0 0 10px;
    color: #11183e;
    font-size: clamp(54px, 6vw, 66px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 850;
}

.effective-date {
    margin-bottom: 19px;
    color: #566789;
    font-size: 18px;
}

.terms-hero > p {
    max-width: 760px;
    margin: 0;
    color: #566789;
    font-size: 17px;
    line-height: 1.6;
}


/* CONTENT */

.terms-content {
    width: min(904px, calc(100% - 64px));
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    padding: 25px 27px;
    border: 1px solid #e5edf7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(35, 67, 112, .025);
}

.section-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}

.blue {
    background: #e9f3ff;
    color: #1670ee;
}

.yellow {
    background: #fff7d9;
    color: #e8aa00;
}

.purple {
    background: #f1ebff;
    color: #8355ed;
}

.green {
    background: #e7f8ec;
    color: #32ae68;
}

.pink {
    background: #ffedf3;
    color: #ef557b;
}

.section-content h2 {
    margin: 2px 0 12px;
    color: #11183e;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
}

.section-content p {
    margin: 0 0 12px;
    color: #536689;
    font-size: 14px;
    line-height: 1.55;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content ul {
    margin: 0 0 14px;
    padding-left: 22px;
    color: #536689;
    font-size: 14px;
    line-height: 1.6;
}

.section-content li {
    margin-bottom: 5px;
}

.section-content a {
    color: #0874ed;
    font-weight: 700;
}


/* RELATED LINKS */

.terms-links {
    width: min(904px, calc(100% - 64px));
    margin: 0 auto 45px;
    padding: 20px 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    border-top: 1px solid #e5edf7;
    color: #526181;
    font-size: 13px;
    font-weight: 700;
}

.terms-links a:hover,
.terms-links .current {
    color: #1670ee;
}


/* FOOTER */

.site-footer {
    width: 100%;
    min-height: 90px;
    padding: 15px max(40px, calc((100vw - 950px) / 2));
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
        "brand links coffee social"
        "copyright copyright copyright copyright";
    align-items: center;
    column-gap: 26px;
    row-gap: 6px;
    background: #fff;
    border-top: 1px solid #e6edf5;
    color: #53627e;
}

.footer-brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    padding-right: 23px;
    border-right: 1px solid #dce4ee;
}

.footer-brand img {
    width: 120px;
    height: auto;
}

.footer-links {
    grid-area: links;
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-right: 23px;
    border-right: 1px solid #dce4ee;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.footer-links a:hover {
    color: #1670ee;
}

.coffee-link {
    grid-area: coffee;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #172044;
    font-size: 13px;
    font-weight: 800;
}

.coffee-icon {
    width: 31px;
    height: 31px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffd21a;
}

.social-links {
    grid-area: social;
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 25px;
    color: #53627e;
}

.footer-copyright {
    grid-area: copyright;
    color: #697995;
    font-size: 10px;
}


/* TABLET */

@media (max-width: 850px) {

    .site-header {
        width: calc(100% - 40px);
    }

    .terms-hero,
    .terms-content,
    .terms-links {
        width: calc(100% - 40px);
    }

    .main-nav {
        gap: 20px;
    }

    .footer-links {
        gap: 12px;
    }
}


/* MOBILE */

@media (max-width: 680px) {

    .site-header {
        width: calc(100% - 28px);
        height: 72px;
    }

    .header-logo img {
        width: 128px;
    }

    .main-nav {
        gap: 0;
    }

    .main-nav > a:not(.nav-play) {
        display: none;
    }

    .nav-play {
        padding: 11px 16px;
        font-size: 13px;
    }


    .terms-hero {
        width: calc(100% - 28px);
        margin-top: 28px;
        margin-bottom: 25px;
        text-align: center;
    }

    .eyebrow {
        font-size: 12px;
    }

    .terms-hero h1 {
        font-size: clamp(43px, 13vw, 58px);
    }

    .effective-date {
        font-size: 16px;
    }

    .terms-hero > p {
        font-size: 15px;
        line-height: 1.55;
    }


    .terms-content {
        width: calc(100% - 20px);
        gap: 9px;
    }

    .terms-card {
        grid-template-columns: 35px 1fr;
        gap: 12px;
        padding: 18px 15px;
        border-radius: 14px;
    }

    .section-number {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .section-content h2 {
        margin-top: 2px;
        font-size: 16px;
        line-height: 1.25;
    }

    .section-content p,
    .section-content ul {
        font-size: 13px;
        line-height: 1.52;
    }

    .section-content ul {
        padding-left: 19px;
    }


    .terms-links {
        width: calc(100% - 24px);
        margin-bottom: 30px;
        gap: 12px 18px;
        padding: 18px 10px;
        font-size: 12px;
    }


    .site-footer {
        min-height: 0;
        padding: 20px 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "links links"
            "coffee social"
            "copyright copyright";
        gap: 16px 0;
        justify-items: center;
    }

    .footer-brand {
        width: 100%;
        justify-content: center;
        padding: 0 0 15px;
        border-right: 0;
        border-bottom: 1px solid #dce4ee;
    }

    .footer-brand img {
        width: 118px;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 9px 17px;
        padding: 0;
        border-right: 0;
        font-size: 12px;
    }

    .coffee-link {
        justify-self: end;
        padding-right: 18px;
        border-right: 1px solid #dce4ee;
        font-size: 12px;
    }

    .social-links {
        justify-self: start;
        gap: 16px;
        font-size: 22px;
    }

    .footer-copyright {
        font-size: 10px;
    }
}


/* SMALL PHONES */

@media (max-width: 420px) {

    .terms-hero {
        width: calc(100% - 22px);
    }

    .terms-hero h1 {
        font-size: 41px;
    }

    .terms-hero > p {
        font-size: 14px;
    }

    .terms-content {
        width: calc(100% - 14px);
    }

    .terms-card {
        grid-template-columns: 31px 1fr;
        gap: 9px;
        padding: 15px 11px;
    }

    .section-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .section-content h2 {
        font-size: 14px;
    }

    .section-content p,
    .section-content ul {
        font-size: 12px;
    }

    .terms-links {
        width: calc(100% - 18px);
        gap: 10px 14px;
        font-size: 11px;
    }

    .site-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-links {
        gap: 8px 13px;
        font-size: 11px;
    }

    .coffee-link {
        font-size: 11px;
        padding-right: 12px;
    }

    .social-links {
        gap: 13px;
        font-size: 21px;
    }
}
