:root {
    --ts-primary: #3f9b46;
    --ts-primary-dark: #2d7533;
    --ts-primary-soft: #eef8ef;
    --ts-accent: #f3a51b;
    --ts-ink: #202832;
    --ts-muted: #66717d;
    --ts-line: #dfe5e8;
    --ts-bg: #f4f6f7;
    --ts-white: #ffffff;
    --ts-shadow: 0 12px 34px rgba(26, 42, 51, .08);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ts-ink);
    background: var(--ts-bg);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.72;
}

a {
    color: var(--ts-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

    a:hover {
        color: var(--ts-primary);
    }

.terms-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 70px;
    color: var(--ts-white);
    background: linear-gradient(125deg, #172128 0%, #26333b 66%, #31413f 100%);
    border-bottom: 5px solid var(--ts-primary);
}

    .terms-hero::after {
        content: "";
        position: absolute;
        width: 430px;
        height: 430px;
        right: -140px;
        top: -180px;
        border: 72px solid rgba(63, 155, 70, .18);
        border-radius: 50%;
    }

.terms-hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.eyebrow {
    display: inline-flex;
    padding: 7px 13px;
    margin-bottom: 18px;
    color: #e7f7e9;
    background: rgba(63, 155, 70, .2);
    border: 1px solid rgba(159, 219, 164, .35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.terms-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.05;
}

.terms-hero p {
    max-width: 820px;
    margin: 0 0 20px;
    color: #dbe2e6;
    font-size: 18px;
}

.site-link {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    text-decoration-color: var(--ts-accent);
}

    .site-link:hover {
        color: #fff;
    }

.terms-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    padding-top: 42px;
    padding-bottom: 72px;
}

.terms-sidebar {
    min-width: 0;
}

.sidebar-card {
    position: sticky;
    top: 70px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 12px;
    box-shadow: var(--ts-shadow);
}

    .sidebar-card h2 {
        margin: 0 0 16px;
        font-size: 18px;
        font-weight: 800;
    }

.terms-nav {
    display: grid;
    gap: 7px;
}

    .terms-nav a {
        display: grid;
        grid-template-columns: 32px 1fr;
        gap: 9px;
        align-items: start;
        padding: 9px 10px;
        color: #37424b;
        border-radius: 8px;
        font-size: 13px;
        line-height: 1.35;
        text-decoration: none;
    }

        .terms-nav a:hover {
            color: var(--ts-primary-dark);
            background: var(--ts-primary-soft);
        }

    .terms-nav span {
        display: grid;
        place-items: center;
        min-height: 24px;
        color: #fff;
        background: var(--ts-primary);
        border-radius: 5px;
        font-size: 11px;
        font-weight: 800;
    }

.terms-content {
    min-width: 0;
}

.terms-card {
    margin-bottom: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 12px;
    box-shadow: var(--ts-shadow);
    scroll-margin-top: 70px;
}

.terms-card__header {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 26px;
    background: linear-gradient(90deg, #f8fbf8, #fff);
    border-bottom: 1px solid var(--ts-line);
}

.part-number {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ts-primary);
    border-radius: 10px;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(63,155,70,.22);
}

.terms-card__header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.terms-card__body {
    padding: 28px;
}

    .terms-card__body > :last-child {
        margin-bottom: 0px;
    }

    .terms-card__body p {
        margin: 0 0 17px;
    }

    .terms-card__body strong {
        color: #161d22;
    }

.clause-title {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin: 34px 0 18px;
    padding: 14px 16px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    background: var(--ts-primary-soft);
    border-left: 4px solid var(--ts-primary);
    border-radius: 0 8px 8px 0;
    scroll-margin-top: 70px;
}

    .clause-title:first-child {
        margin-top: 0;
    }

    .clause-title span {
        flex: 0 0 auto;
        color: var(--ts-primary-dark);
    }

.company-data {
    margin: 0;
    padding-left: 24px;
}

    .company-data li {
        margin-bottom: 10px;
        padding-left: 5px;
    }

.terms-list {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
}

    .terms-list li {
        position: relative;
        margin-bottom: 10px;
        padding-left: 25px;
    }

        .terms-list li::before {
            content: "";
            position: absolute;
            left: 2px;
            top: .72em;
            width: 8px;
            height: 8px;
            background: var(--ts-accent);
            border-radius: 50%;
        }

.terms-card__body address {
    font-style: normal;
}

.terms-card__body br + br {
    display: none;
}

@media (max-width: 991.98px) {
    .terms-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }

    .terms-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .terms-hero {
        padding: 52px 0 48px;
    }

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

    .terms-layout {
        padding-top: 24px;
        padding-bottom: 44px;
    }

    .terms-nav {
        grid-template-columns: 1fr;
    }

    .terms-card__header {
        padding: 17px;
        align-items: flex-start;
    }

    .part-number {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .terms-card__header h2 {
        font-size: 20px;
    }

    .terms-card__body {
        padding: 20px 17px;
    }

    .clause-title {
        font-size: 17px;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .terms-hero {
        padding: 25px 0;
        color: #000;
        background: #fff;
        border-bottom: 2px solid #000;
    }

        .terms-hero::after, .terms-sidebar {
            display: none;
        }

        .terms-hero p, .site-link {
            color: #000;
        }

    .terms-layout {
        display: block;
        padding: 20px 0;
    }

    .terms-card {
        break-inside: avoid;
        box-shadow: none;
        border-color: #aaa;
    }

    .part-number {
        color: #000;
        background: #fff;
        border: 1px solid #000;
        box-shadow: none;
    }

    a {
        color: #000;
        text-decoration: none;
    }
}
