/* ========================================
   ICY END CO.
   TERMS + SUCCESS
======================================== */

:root {
    --brand-red: #A61E2D;
    --dark-red: #68151E;
    --light-red: #F5E8E9;

    --ivory: #FAF8F5;
    --white: #FFFFFF;

    --black: #191717;
    --gray: #6D6666;

    --border: rgba(25, 23, 23, 0.14);

    --font-heading: "Manrope", sans-serif;
    --font-body: "DM Sans", sans-serif;

    --container: 1320px;
}


/* ========================================
   RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ivory);
    color: var(--black);

    font-family: var(--font-body);

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.05;
}

.eyebrow {
    margin-bottom: 20px;

    color: var(--brand-red);

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.16em;
}


/* ========================================
   SHARED HEADER
======================================== */

.legal-header {
    width: 100%;
    height: 86px;

    position: relative;

    padding: 0 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--ivory);

    border-bottom: 1px solid var(--border);

    z-index: 100;
}

.brand {
    font-family: var(--font-heading);

    font-size: 1.05rem;
    font-weight: 700;

    letter-spacing: 0.16em;
}

.legal-nav {
    display: flex;
    align-items: center;

    gap: 32px;

    font-size: 0.88rem;
    font-weight: 500;
}

.legal-nav > a:not(.nav-cta) {
    position: relative;
}

.legal-nav > a:not(.nav-cta)::after {
    content: "";

    width: 0;
    height: 1px;

    position: absolute;

    left: 0;
    bottom: -6px;

    background: var(--black);

    transition: width 0.25s ease;
}

.legal-nav > a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 20px;

    background: var(--brand-red);
    color: var(--white);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.nav-cta:hover {
    background: var(--dark-red);

    transform: translateY(-1px);
}


/* ========================================
   TERMS HERO
======================================== */

.terms-hero {
    padding: 100px 6vw 80px;
}

.terms-hero-inner {
    max-width: var(--container);

    margin: auto;
}

.terms-hero h1 {
    max-width: 1000px;

    margin-bottom: 60px;

    font-size: clamp(4.5rem, 8vw, 8.5rem);

    letter-spacing: -0.07em;
}

.terms-hero-bottom {
    padding-top: 25px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;

    border-top: 1px solid var(--border);
}

.terms-hero-bottom p {
    max-width: 600px;

    color: var(--gray);

    line-height: 1.7;
}

.terms-hero-bottom span {
    color: var(--gray);

    font-size: 0.78rem;
}


/* ========================================
   TERMS LAYOUT
======================================== */

.terms-section {
    padding: 80px 5vw 120px;

    background: var(--white);
}

.terms-layout {
    max-width: var(--container);

    margin: auto;

    display: grid;
    grid-template-columns: 260px minmax(0, 760px);

    gap: 110px;

    justify-content: center;
}


/* ========================================
   TERMS SIDEBAR
======================================== */

.terms-sidebar {
    position: sticky;

    top: 40px;

    height: fit-content;
}

.sidebar-label {
    margin-bottom: 22px;

    color: var(--brand-red);

    font-size: 0.66rem;
    font-weight: 600;

    letter-spacing: 0.15em;
}

.terms-sidebar nav {
    display: grid;
}

.terms-sidebar nav a {
    padding: 10px 0;

    color: var(--gray);

    font-size: 0.82rem;

    border-bottom: 1px solid rgba(25, 23, 23, 0.08);

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.terms-sidebar nav a:hover {
    padding-left: 5px;

    color: var(--brand-red);
}


/* ========================================
   TERMS CONTENT
======================================== */

.terms-content {
    min-width: 0;
}

.terms-block {
    padding: 0 0 65px;
    margin-bottom: 65px;

    scroll-margin-top: 40px;

    border-bottom: 1px solid var(--border);
}

.terms-block:last-child {
    margin-bottom: 0;

    border-bottom: none;
}

.section-number {
    display: block;

    margin-bottom: 25px;

    color: var(--brand-red);

    font-size: 0.7rem;
    font-weight: 600;
}

.terms-block h2 {
    margin-bottom: 28px;

    font-size: clamp(2.2rem, 4vw, 3.7rem);

    letter-spacing: -0.05em;
}

.terms-block > p {
    margin-bottom: 18px;

    color: var(--gray);

    font-size: 0.97rem;
    line-height: 1.85;
}

.terms-block > p:last-child {
    margin-bottom: 0;
}


/* ========================================
   LEGAL NOTE
======================================== */

.legal-note {
    margin-top: 32px;

    padding: 25px;

    background: var(--light-red);

    border-left: 3px solid var(--brand-red);
}

.legal-note strong {
    display: block;

    margin-bottom: 8px;

    font-family: var(--font-heading);
}

.legal-note p {
    color: var(--gray);

    font-size: 0.9rem;
    line-height: 1.7;
}


/* ========================================
   TERMS EMAIL
======================================== */

.terms-email {
    margin-top: 15px;

    padding: 18px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--brand-red);

    font-family: var(--font-heading);

    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transition: padding 0.25s ease;
}

.terms-email:hover {
    padding-left: 8px;
    padding-right: 8px;
}


/* ========================================
   LEGAL CTA
======================================== */

.legal-cta {
    padding: 100px 5vw;

    background: var(--dark-red);
    color: var(--white);

    text-align: center;
}

.legal-cta > div {
    max-width: 850px;

    margin: auto;
}

.light-eyebrow {
    color: rgba(255, 255, 255, 0.52);
}

.legal-cta h2 {
    margin-bottom: 20px;

    font-size: clamp(3rem, 5.5vw, 5.8rem);

    letter-spacing: -0.06em;
}

.legal-cta > div > p:not(.eyebrow) {
    margin-bottom: 32px;

    color: rgba(255, 255, 255, 0.65);
}

.legal-cta a {
    min-height: 52px;

    padding: 0 24px;

    display: inline-flex;
    align-items: center;

    gap: 30px;

    background: var(--ivory);
    color: var(--dark-red);

    font-weight: 600;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.legal-cta a:hover {
    background: var(--white);

    transform: translateY(-2px);
}


/* ========================================
   SHARED FOOTER
======================================== */

.footer {
    padding: 70px 6vw 28px;

    background: var(--black);
    color: var(--white);
}

.footer-top {
    max-width: var(--container);

    margin: auto;

    padding-bottom: 65px;

    display: flex;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand h2 {
    margin-bottom: 20px;

    font-size: clamp(2.5rem, 6vw, 6rem);

    letter-spacing: -0.055em;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    min-width: 140px;

    display: grid;

    gap: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: var(--container);

    margin: auto;

    padding-top: 25px;

    display: flex;
    justify-content: space-between;

    color: rgba(255, 255, 255, 0.38);

    font-size: 0.76rem;
}


/* ========================================
   SUCCESS PAGE
======================================== */

.success-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

.success-main {
    flex: 1;

    display: flex;
}

.success-section {
    width: 100%;
    min-height: calc(100vh - 156px);

    position: relative;

    padding: 80px 7vw;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;

    align-items: center;

    gap: 80px;

    overflow: hidden;

    background: var(--ivory);
}

.success-content {
    max-width: 850px;

    position: relative;

    z-index: 2;
}

.success-icon {
    width: 52px;
    height: 52px;

    margin-bottom: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--brand-red);
    color: var(--white);

    border-radius: 50%;

    font-size: 1.15rem;
}

.success-content h1 {
    margin-bottom: 28px;

    font-size: clamp(4rem, 7.5vw, 8rem);

    letter-spacing: -0.07em;
}

.success-description {
    max-width: 620px;

    color: var(--gray);

    font-size: 1.02rem;
    line-height: 1.75;
}


/* ========================================
   SUCCESS RESPONSE
======================================== */

.response-note {
    margin-top: 30px;

    display: flex;
    align-items: center;

    gap: 13px;

    color: var(--gray);

    font-size: 0.84rem;
}

.response-line {
    width: 38px;
    height: 1px;

    flex-shrink: 0;

    background: var(--brand-red);
}

.response-note strong {
    color: var(--black);
}


/* ========================================
   SUCCESS BUTTONS
======================================== */

.success-actions {
    margin-top: 40px;

    display: flex;

    gap: 12px;
}

.success-primary,
.success-secondary {
    min-height: 54px;

    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.88rem;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.success-primary {
    gap: 28px;

    background: var(--brand-red);
    color: var(--white);
}

.success-primary:hover {
    background: var(--dark-red);

    transform: translateY(-2px);
}

.success-primary span {
    transition: transform 0.25s ease;
}

.success-primary:hover span {
    transform: translateX(4px);
}

.success-secondary {
    border: 1px solid var(--border);

    color: var(--black);
}

.success-secondary:hover {
    border-color: var(--black);

    transform: translateY(-2px);
}


/* ========================================
   SUCCESS SIDE CARD
======================================== */

.success-side {
    position: relative;

    padding: 38px;

    background: var(--light-red);

    z-index: 2;
}

.success-side > p {
    margin-bottom: 70px;

    color: var(--brand-red);

    font-size: 0.65rem;
    font-weight: 600;

    letter-spacing: 0.14em;
}

.success-side h2 {
    margin-bottom: 30px;

    font-size: 2.3rem;

    letter-spacing: -0.05em;
}

.success-side a {
    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid var(--border);

    font-size: 0.84rem;
    font-weight: 600;

    transition: color 0.2s ease;
}

.success-side a:hover {
    color: var(--brand-red);
}


/* ========================================
   SUCCESS DECORATION
======================================== */

.success-decoration {
    position: absolute;

    top: 0;
    right: 0;

    width: 55%;
    height: 100%;

    pointer-events: none;
}

.circle-one,
.circle-two {
    position: absolute;

    border: 1px solid rgba(166, 30, 45, 0.09);

    border-radius: 50%;
}

.circle-one {
    width: 650px;
    height: 650px;

    top: -270px;
    right: -230px;
}

.circle-two {
    width: 450px;
    height: 450px;

    bottom: -250px;
    right: 140px;
}


/* ========================================
   SUCCESS FOOTER
======================================== */

.success-footer {
    min-height: 70px;

    padding: 0 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--black);
    color: rgba(255, 255, 255, 0.5);

    font-size: 0.75rem;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 950px) {

    .terms-layout {
        grid-template-columns: 200px minmax(0, 1fr);

        gap: 60px;
    }


    .success-section {
        grid-template-columns: 1fr;

        padding-top: 100px;
        padding-bottom: 100px;
    }

    .success-side {
        max-width: 550px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 800px) {

    .legal-header {
        height: auto;
        min-height: 74px;

        padding: 20px 22px;
    }

    .legal-nav > a:not(.nav-cta) {
        display: none;
    }

    .legal-nav {
        gap: 0;
    }


    .terms-hero {
        padding: 75px 22px 60px;
    }

    .terms-hero h1 {
        margin-bottom: 45px;

        font-size: clamp(3.7rem, 16vw, 6rem);
    }

    .terms-hero-bottom {
        flex-direction: column;

        gap: 18px;
    }


    .terms-section {
        padding: 65px 22px 80px;
    }

    .terms-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .terms-sidebar {
        position: static;

        padding-bottom: 25px;

        border-bottom: 1px solid var(--border);
    }

    .terms-sidebar nav {
        grid-template-columns: 1fr 1fr;

        column-gap: 20px;
    }


    .legal-cta {
        padding: 80px 22px;
    }


    .footer {
        padding: 60px 22px 25px;
    }

    .footer-top {
        flex-direction: column;

        gap: 50px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 6px;
    }


    .success-section {
        min-height: auto;

        padding: 75px 22px;

        gap: 55px;
    }

    .success-content h1 {
        font-size: clamp(3.6rem, 16vw, 6rem);
    }

    .success-footer {
        min-height: 90px;

        padding: 20px 22px;

        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        gap: 4px;
    }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 480px) {

    .legal-header .nav-cta {
        padding: 10px 14px;

        font-size: 0.78rem;
    }


    .terms-sidebar nav {
        grid-template-columns: 1fr;
    }

    .terms-block {
        padding-bottom: 45px;
        margin-bottom: 45px;
    }


    .success-actions {
        flex-direction: column;
    }

    .success-primary,
    .success-secondary {
        width: 100%;
    }

    .success-primary {
        justify-content: space-between;
    }

    .success-side {
        padding: 30px;
    }

    .success-side > p {
        margin-bottom: 45px;
    }

}