/* ==============================================
   WARRANTY TERMS CONTENT
   ============================================== */

.wterms {
    padding: 80px 120px 0 120px;
}

.wterms__inner {
    display: flex;
    gap: 64px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- SIDEBAR ---- */

.wterms__sidebar {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 148px;
    align-self: flex-start;
}

/* Sidebar building photo */
.wterms__sidebar-img {
    width: 100%;
    overflow: hidden;
}

.wterms__sidebar-img img {
    display: block;
    width: 100%;
    height: auto;
}

/* TOC box */
.wterms__sidebar-toc {
    background: #f5f6f6;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wterms__sidebar-title {
    font-family: var(--font-neo);
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -1px;
    color: #000;
    margin: 0;
}

.wterms__toc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wterms__toc-nav a {
    font-family: var(--font-inter);
    font-size: 14px;
    line-height: 22px;
    color: #00693e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wterms__toc-nav a:hover {
    opacity: 0.75;
}

.wterms__sidebar-help {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.wterms__help-label {
    font-family: var(--font-inter);
    font-size: 14px;
    line-height: 22px;
    color: #5f5f5f;
    margin: 0;
}

/* ---- MAIN CONTENT ---- */

.wterms__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Top-level section */
.wterms__section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wterms__h1 {
    font-family: var(--font-neo);
    font-size: 48px;
    line-height: 58px;
    letter-spacing: -1.8px;
    color: #000;
    margin: 0;
}

/* Subsection */
.wterms__sub {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wterms__sub-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wterms__h3 {
    font-family: var(--font-neo);
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -1px;
    color: #000;
    margin: 0;
}

.wterms__lead {
    font-family: var(--font-inter);
    font-size: 19px;
    line-height: 30px;
    color: #5f5f5f;
    margin: 0;
}

.wterms__text {
    font-family: var(--font-inter);
    font-size: 19px;
    line-height: 30px;
    color: #5f5f5f;
    margin: 0;
}

/* Callout block */
.wterms__callout {
    background: #f5f6f6;
    border-left: 3px solid #00693e;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wterms__callout-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wterms__callout-text {
    font-family: var(--font-inter);
    font-size: 17px;
    line-height: 23px;
    color: #5f5f5f;
    margin: 0;
}

.wterms__callout-note {
    display: flex;
    gap: 24px;
    align-items: center;
}

.wterms__callout-note img {
    flex-shrink: 0;
}

.wterms__note-text {
    font-family: var(--font-inter);
    font-size: 14px;
    line-height: 22px;
    color: #5f5f5f;
    margin: 0;
}

/* Download */
.wterms__download {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wterms__download .btn {
    width: 350px;
}

/* ---- TABLET ---- */

@media (max-width: 1170px) {
    .wterms {
        padding: 64px 40px;
    }

    .wterms__inner {
        gap: 40px;
    }

    .wterms__sidebar {
        width: 260px;
    }

    .wterms__sidebar-toc {
        min-height: unset;
    }
}

@media (max-width: 800px) {
    .wterms {
        padding: 48px 24px;
    }

    .wterms__inner {
        flex-direction: column;
        gap: 0;
    }

    .wterms__sidebar {
        width: 100%;
        position: static;
    }

    .wterms__sidebar-img {
        padding: 0 40px;
    }

    .wterms__sidebar-toc {
        padding: 32px 24px;
    }

    .wterms__sidebar-title {
        font-size: 32px;
        line-height: 37px;
        letter-spacing: 0;
    }

    .wterms__main {
        padding-top: 32px;
        gap: 32px;
    }

    .wterms__h1 {
        font-size: 32px;
        line-height: 37px;
        letter-spacing: 0;
    }

    .wterms__h3 {
        font-size: 24px;
        line-height: 28px;
        letter-spacing: 0;
    }

    .wterms__download .btn {
        width: 100%;
    }
}

/* ---- MOBILE ---- */

@media (max-width: 640px) {
    .wterms {
        padding: 0;
    }

    .wterms__main {
        padding: 32px 24px;
    }

    .wterms__lead,
    .wterms__text {
        font-size: 14px;
        line-height: 22px;
    }

    .wterms__sub {
        gap: 24px;
    }

    .wterms__callout {
        padding: 24px;
    }

    .wterms__callout-note {
        gap: 16px;
    }

    .wterms__callout-text {
        font-size: 14px;
        line-height: 22px;
    }

    .wterms__download .btn {
        height: 44px;
        font-size: 16px;
        line-height: 21px;
    }
}
