/* ============================================================================
   NOSEAMS — Legal pages
   Applies to Terms & Conditions, Privacy Policy and Cookies Policy.
   ============================================================================ */

body.page .ns-page--legal {
    width: 100%;
    min-height: 70vh;
    margin: 0;
    padding: 168px var(--ns-side-space, 46px) 118px;
    background: var(--ns-white, #ffffff);
    color: var(--ns-black, #231f20);
}

body.page .ns-page--legal > h1 {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 46px;
    padding: 0;
    font-size: clamp(30px, 3.2vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    font-weight: 400;
    text-transform: none;
}

body.page .ns-page--legal .ns-page__content {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
    text-align: justify;
    text-align-last: auto;
    hyphens: auto;
}

body.page .ns-page--legal .ns-page__content :where(p, li, div, span, dd) {
    text-align: justify;
    text-align-last: auto;
    hyphens: auto;
}

body.page .ns-page--legal .ns-page__content :where(h1, h2, h3, h4, h5, h6, a, button, .button, .wp-block-button, .wp-block-button__link) {
    text-align: left;
    text-align-last: auto;
    hyphens: manual;
}

body.page .ns-page--legal .ns-page__content > *:first-child {
    margin-top: 0;
}

body.page .ns-page--legal .ns-page__content > *:last-child {
    margin-bottom: 0;
}

body.page .ns-page--legal .ns-page__content h2,
body.page .ns-page--legal .ns-page__content h3,
body.page .ns-page--legal .ns-page__content h4 {
    max-width: 1240px;
    margin: 44px 0 16px;
    padding: 0;
    color: inherit;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
}

body.page .ns-page--legal .ns-page__content h2 {
    margin-top: 56px;
    font-size: clamp(22px, 2.1vw, 34px);
    line-height: 1.06;
}

body.page .ns-page--legal .ns-page__content h3 {
    font-size: clamp(17px, 1.25vw, 22px);
    line-height: 1.18;
}

body.page .ns-page--legal .ns-page__content h4 {
    font-size: 15px;
    line-height: 1.25;
}

body.page .ns-page--legal .ns-page__content p,
body.page .ns-page--legal .ns-page__content li {
    max-width: 1240px;
    margin: 0 0 15px;
    color: inherit;
    font-size: 14px;
    line-height: 1.62;
    letter-spacing: 0.01em;
    font-weight: 400;
    text-align: justify;
    text-align-last: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

body.page .ns-page--legal .ns-page__content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.page .ns-page--legal .ns-page__content ul,
body.page .ns-page--legal .ns-page__content ol {
    max-width: 1240px;
    margin: 0 0 24px 18px;
    padding: 0;
}

body.page .ns-page--legal .ns-page__content ul li {
    list-style: disc;
    padding-left: 4px;
}

body.page .ns-page--legal .ns-page__content ol li {
    list-style: decimal;
    padding-left: 4px;
}

body.page .ns-page--legal .ns-page__content hr,
body.page .ns-page--legal .ns-page__content .wp-block-separator {
    max-width: 1320px;
    margin: 48px 0;
    border: 0;
    border-top: 1px solid var(--ns-line, #d7d3d1);
}

body.page .ns-page--legal .ns-page__content strong,
body.page .ns-page--legal .ns-page__content b {
    font-weight: 700;
}

body.page .ns-page--legal .ns-page__content .wp-block-heading:first-child {
    margin-top: 0;
}

@media (max-width: 960px) {
    body.page .ns-page--legal {
        padding: 112px var(--ns-side-space, 22px) 82px;
    }

    body.page .ns-page--legal > h1 {
        margin-bottom: 34px;
        font-size: clamp(30px, 10vw, 44px);
        line-height: 1;
    }

    body.page .ns-page--legal .ns-page__content h2 {
        margin-top: 42px;
        margin-bottom: 14px;
    }

    body.page .ns-page--legal .ns-page__content h3,
    body.page .ns-page--legal .ns-page__content h4 {
        margin-top: 32px;
        margin-bottom: 12px;
    }

    body.page .ns-page--legal .ns-page__content p,
    body.page .ns-page--legal .ns-page__content li {
        font-size: 13px;
        line-height: 1.58;
    }
}

/* Policy/legal pages full site grid width
   Match the horizontal rhythm of header/footer: full content area between side gutters. */
@media (min-width: 961px) {
    body.page .ns-page--legal {
        padding-left: var(--ns-side-space, clamp(42px, 3.1vw, 60px)) !important;
        padding-right: var(--ns-side-space, clamp(42px, 3.1vw, 60px)) !important;
    }

    body.page .ns-page--legal > h1,
    body.page .ns-page--legal .ns-page__content,
    body.page .ns-page--legal .ns-page__content :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, div, section, article, blockquote, table, .wp-block-group, .wp-block-columns, .wp-block-column, .wp-block-heading) {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Keep anchored legal sections visible below the fixed header. */
body.page .ns-page--legal #consumer-dispute-resolution {
    scroll-margin-top: calc(var(--ns-header-desktop-height, 132px) + 24px);
}

@media (max-width: 960px) {
    body.page .ns-page--legal #consumer-dispute-resolution {
        scroll-margin-top: calc(var(--ns-header-mobile-height, 58px) + 20px);
    }
}
