:root {
    --ts-red: #cb1219;
    --ts-red-dark: #a90f15;
    --ts-dark: #202020;
    --ts-text: #3a3a3a;
    --ts-muted: #6f757b;
    --ts-border: #e6e6e6;
    --ts-surface: #ffffff;
    --ts-surface-soft: #f7f7f7;
    --ts-info: #fff5f5;
    --ts-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ts-text);
    background: #f3f3f3;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--ts-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--ts-red-dark);
    text-decoration: underline;
}

.page-wrap {
    padding: 42px 0 64px;
}

.terms-page .container {
    max-width: 1180px;
}

.terms-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 38px 42px;
    color: #ffffff;
    background: linear-gradient(135deg, #1d1d1d 0%, #2f2f2f 72%, #3b1517 100%);
    border-radius: 6px;
    box-shadow: var(--ts-shadow);
}

.terms-header::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -45px;
    width: 230px;
    height: 230px;
    border: 30px solid rgba(203, 18, 25, 0.32);
    border-radius: 50%;
}

.terms-header > * {
    position: relative;
    z-index: 1;
}

.terms-header .badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 8px 13px;
    color: var(--ts-red);
    background: #ffffff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terms-header .lead {
    max-width: 900px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.75;
}

.terms-card {
    margin-bottom: 22px;
    background: var(--ts-surface);
    border: 1px solid var(--ts-border);
    border-radius: 6px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.045);
    scroll-margin-top: 70px;
}

.terms-card .card-header {
    padding: 19px 24px;
    background: var(--ts-surface-soft);
    border-bottom: 1px solid var(--ts-border);
}

.terms-card .card-header h2 {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--ts-dark);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.section-number {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 13px;
    color: #ffffff;
    background: var(--ts-red);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 800;
}

.terms-card .card-body {
    padding: 26px 28px;
}

.terms-card .card-body > :last-child {
    margin-bottom: 0;
}

.terms-card .card-body p {
    margin: 0 0 17px;
}

.terms-card .card-body strong {
    color: var(--ts-dark);
}

.terms-card blockquote {
    margin: 18px 0 0;
    padding: 18px 20px;
    color: var(--ts-text);
    background: var(--ts-info);
    border: 1px solid #f0c7c9;
    border-left: 5px solid var(--ts-red);
    border-radius: 5px;
    font-style: italic;
}

.faq-contact-wrapper {
    margin-top: 24px;
    text-align: center;
}

.faq-contact-button {
    display: inline-block;
    padding: 12px 24px;
    color: #ffffff;
    background-color: var(--ts-red);
    border: 1px solid var(--ts-red);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
}

.faq-contact-button:hover,
.faq-contact-button:focus {
    color: #ffffff;
    background-color: var(--ts-red-dark);
    border-color: var(--ts-red-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    .page-wrap {
        padding: 22px 0 38px;
    }

    .terms-header {
        padding: 28px 22px;
        border-radius: 4px;
    }

    .terms-header .lead {
        font-size: 15px;
        line-height: 1.65;
    }

    .terms-card .card-header {
        padding: 16px 18px;
    }

    .terms-card .card-header h2 {
        align-items: flex-start;
        font-size: 18px;
    }

    .section-number {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }

    .terms-card .card-body {
        padding: 20px 18px;
    }
}

@media print {
    body {
        color: #000000;
        background: #ffffff;
    }

    .page-wrap {
        padding: 0;
    }

    .terms-header {
        color: #000000;
        background: #ffffff;
        border: 1px solid #cccccc;
        box-shadow: none;
    }

    .terms-header .lead {
        color: #000000;
    }

    .terms-header::after,
    .terms-header .badge {
        display: none;
    }

    .terms-card {
        break-inside: avoid;
        box-shadow: none;
    }

    a {
        color: #000000;
        text-decoration: none;
    }
}
