body.fiwork-info-page {
    width: 100%;
    margin: 0;
    background: var(--fiwork-page-background);
}

.fiwork-info-page .terms-of-service-block,
.fiwork-info-page .terms-of-service-block * {
    box-sizing: border-box;
}

body.fiwork-info-page > .main-block {
    align-items: flex-start;
    padding: 0 20px;
    overflow: visible;
    background: var(--fiwork-page-background);
}

body.fiwork-info-page > .main-block > .main-container {
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 1276px;
    margin: 24px 0;
    padding: 8px;
    overflow: visible;
    border: 1px solid #e7e8eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.terms-of-service-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: start;
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 16px;
    font-family: var(--font-family), Inter, sans-serif;
}

.terms-of-service-content {
    min-width: 0;
    width: 100%;
    padding: 28px;
    overflow-wrap: anywhere;
    border: 0;
    border-radius: 12px;
    color: #344054;
    background: transparent;
    text-align: left;
}

.terms-of-service-content > :first-child {
    margin-top: 0;
}

.terms-of-service-content h1,
.terms-of-service-content h2,
.terms-of-service-content h3 {
    color: #101828;
    font-family: var(--font-family), Inter, sans-serif;
    overflow-wrap: anywhere;
}

.terms-of-service-content h2 {
    margin: 32px 0 16px;
    padding: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.terms-of-service-content > h2:first-child {
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 28px;
    letter-spacing: -.02em;
}

.terms-of-service-content h3 {
    margin: 24px 0 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.terms-of-service-content p,
.terms-of-service-content li {
    color: #475467;
    font-family: var(--font-family), Inter, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
}

.terms-of-service-content p {
    margin: 14px 0;
    padding: 0;
}

.terms-of-service-content b,
.terms-of-service-content strong {
    color: #1d2939;
    font-weight: 700;
}

.terms-of-service-content a {
    color: #177de5;
    text-decoration: none;
    text-underline-offset: 3px;
}

.terms-of-service-content a:hover {
    color: #0b65c1;
    text-decoration: underline;
}

.terms-of-service-content ul,
.terms-of-service-content ol {
    margin: 14px 0;
    padding-left: 24px;
}

.terms-of-service-content li {
    margin: 8px 0;
    padding-left: 3px;
    text-indent: 0;
}

.terms-of-service-navigation {
    position: sticky;
    top: 16px;
    min-width: 0;
}

.terms-of-service-nav-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    padding: 18px;
    border: 0;
    border-radius: 12px;
    background: #fafafa;
}

.terms-of-service-nav-container h3 {
    margin: 0;
    padding: 0 0 13px;
    border-bottom: 1px solid #e7e8eb;
    color: #101828;
    font-family: var(--font-family), Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.terms-of-service-nav-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
}

.terms-of-service-nav-content a {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    color: #475467;
    font-family: var(--font-family), Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
}

.terms-of-service-nav-content a:hover,
.terms-of-service-nav-content a:focus-visible {
    color: #177de5;
    background: #eef5ff;
    outline: none;
}

body.fiwork-withdraw-methods-page .terms-of-service-nav-content a[href$="/withdraw-methods"],
body.fiwork-paymethod-page .terms-of-service-nav-content a[href$="/paymethod"],
body.fiwork-faq-page .terms-of-service-nav-content a[href$="/faq"],
body.fiwork-support-page .terms-of-service-nav-content a[href$="/support"],
body.fiwork-choices-page .terms-of-service-nav-content a[href$="/choices"],
body.fiwork-terms-page .terms-of-service-nav-content a[href$="/docs/terms"]:first-child,
body.fiwork-privacy-page .terms-of-service-nav-content a[href$="/docs/privacy"],
body.fiwork-requisites-page .terms-of-service-nav-content a[href$="/docs/requesits"] {
    color: #177de5;
    background: #eef5ff;
    font-weight: 600;
}

.terms-of-service-nav-container label {
    color: #344054;
    font-family: var(--font-family), Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.terms-of-service-nav-container .search-input {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    color: #101828;
    background: #fff;
    font: 400 14px/1.4 var(--font-family), Inter, sans-serif;
}

.terms-of-service-nav-container .search-input:focus {
    border-color: #177de5;
    box-shadow: 0 0 0 3px rgba(23, 125, 229, .12);
}

/* Shared content primitives for the company information pages. */
.terms-of-service-content {
    --fiwork-info-ink: #111827;
    --fiwork-info-copy: #4b5563;
    --fiwork-info-card: #f6f8fa;
    --fiwork-info-muted: #f9fafb;
    --fiwork-info-action: #0177ff;
}

.terms-of-service-content :is(
    .fiwork-withdraw-hero,
    .fiwork-pay-hero,
    .fiwork-faq-hero,
    .fiwork-support-hero,
    .fiwork-doc-hero
) {
    margin-bottom: 28px;
    padding: 30px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
}

.terms-of-service-content .fiwork-withdraw-hero {
    padding: 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f2fff8 0%, #f7fbff 56%, #eef8ff 100%);
}

.terms-of-service-content .fiwork-pay-hero {
    padding: 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef8ff 0%, #f7fbff 58%, #f2fff8 100%);
}

.terms-of-service-content :is(.fiwork-faq-hero, .fiwork-support-hero) {
    background: linear-gradient(135deg, #eef8ff 0%, #f7fbff 100%);
}

.terms-of-service-content .fiwork-doc-hero {
    padding: 28px;
    background: linear-gradient(135deg, #f2f8ff 0%, #f7fbff 100%);
}

.terms-of-service-content :is(
    .fiwork-withdraw-hero h1,
    .fiwork-pay-hero h1,
    .fiwork-faq-hero h1,
    .fiwork-support-hero h1,
    .fiwork-doc-hero h1
) {
    margin: 0 0 12px;
    color: var(--fiwork-info-ink);
    font-family: var(--font-family), Inter, sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.12;
}

.terms-of-service-content :is(
    .fiwork-withdraw-hero p,
    .fiwork-pay-hero p,
    .fiwork-faq-hero p,
    .fiwork-support-hero p,
    .fiwork-doc-hero p,
    .fiwork-doc-card p
) {
    max-width: 720px;
    margin: 0;
    color: var(--fiwork-info-copy);
}

.terms-of-service-content :is(
    .fiwork-withdraw-grid,
    .fiwork-pay-grid,
    .fiwork-support-actions,
    .fiwork-doc-card-grid
) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.terms-of-service-content :is(.fiwork-support-actions, .fiwork-doc-card-grid) {
    gap: 14px;
    margin: 22px 0;
}

.terms-of-service-content :is(
    .fiwork-withdraw-card,
    .fiwork-pay-card,
    .fiwork-support-card,
    .fiwork-doc-card
) {
    padding: 20px;
    border: 0;
    border-radius: 12px;
    background: var(--fiwork-info-card);
}

.terms-of-service-content :is(.fiwork-withdraw-card, .fiwork-pay-card) {
    min-height: 184px;
}

.terms-of-service-content .fiwork-pay-card {
    min-height: 190px;
}

.terms-of-service-content :is(.fiwork-support-card, .fiwork-doc-card) {
    border-radius: 10px;
}

.terms-of-service-content .fiwork-support-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terms-of-service-content .fiwork-doc-card {
    padding: 18px;
}

.terms-of-service-content :is(
    .fiwork-withdraw-card h3,
    .fiwork-pay-card h3,
    .fiwork-support-card strong,
    .fiwork-doc-card h3
) {
    margin: 0 0 8px;
    color: var(--fiwork-info-ink);
    font-family: var(--font-family), Inter, sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.terms-of-service-content :is(.fiwork-support-card strong, .fiwork-doc-card h3) {
    font-size: 16px;
}

.terms-of-service-content :is(.fiwork-withdraw-card p, .fiwork-pay-card p, .fiwork-support-card span) {
    margin: 0;
    color: #5b6472;
}

.terms-of-service-content .fiwork-support-card span {
    font-family: var(--font-family), Inter, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.terms-of-service-content :is(.fiwork-withdraw-icon, .fiwork-pay-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 12px;
}

.terms-of-service-content .fiwork-withdraw-icon {
    color: #23a95d;
    background: #effaf4;
}

.terms-of-service-content .fiwork-pay-icon {
    color: var(--fiwork-info-action);
    background: #eef6ff;
}

.terms-of-service-content :is(.fiwork-withdraw-icon, .fiwork-pay-icon) svg {
    width: 26px;
    height: 26px;
}

.terms-of-service-content :is(.fiwork-withdraw-tags, .fiwork-pay-tags, .fiwork-pay-badges) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.terms-of-service-content .fiwork-pay-badges {
    gap: 10px;
    margin-top: 22px;
}

.terms-of-service-content :is(.fiwork-withdraw-tag, .fiwork-pay-tag, .fiwork-pay-badge) {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    color: #344054;
    background: #f3f7fb;
    font-family: var(--font-family), Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.terms-of-service-content .fiwork-pay-badge {
    min-height: 34px;
    padding: 0 12px;
    color: #1f2937;
    background: #fff;
    font-size: 13px;
}

.terms-of-service-content .fiwork-withdraw-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin-top: 22px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #0f8d43;
    background: #ecfdf3;
    font-family: var(--font-family), Inter, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.terms-of-service-content .fiwork-withdraw-highlight::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #23c366;
    box-shadow: 0 0 0 4px rgba(35, 195, 102, .14);
    content: "";
}

.terms-of-service-content :is(
    .fiwork-withdraw-note,
    .fiwork-pay-note,
    .fiwork-faq-contact,
    .fiwork-doc-note
) {
    margin-top: 28px;
    padding: 22px;
    border: 0;
    border-radius: 12px;
    background: var(--fiwork-info-muted);
}

.terms-of-service-content .fiwork-doc-note {
    padding: 16px 18px;
    border-radius: 10px;
}

.terms-of-service-content :is(.fiwork-withdraw-note, .fiwork-pay-note, .fiwork-faq-contact) h2 {
    margin-top: 0;
}

.terms-of-service-content :is(
    .fiwork-withdraw-button,
    .fiwork-pay-button,
    .fiwork-faq-button,
    .fiwork-support-button,
    .fiwork-doc-action
) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 12px;
    padding: 0 18px;
    border-radius: 8px;
    color: #fff !important;
    background: var(--fiwork-info-action);
    font-family: var(--font-family), Inter, sans-serif;
    font-weight: 700;
}

.terms-of-service-content .fiwork-support-button {
    width: fit-content;
    margin-top: 0;
}

.terms-of-service-content .fiwork-doc-action {
    margin-top: 14px;
}

.terms-of-service-content .fiwork-withdraw-button {
    background: #23c366;
}

.fiwork-faq-section {
    margin-top: 28px;
}

.terms-of-service-content .fiwork-faq-section-title {
    margin: 0 0 14px;
    color: var(--fiwork-info-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.fiwork-faq-list,
.fiwork-support-list {
    display: grid;
    gap: 10px;
}

.fiwork-support-list {
    gap: 12px;
    margin: 18px 0 0;
}

.fiwork-faq-item,
.fiwork-support-list-item {
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: var(--fiwork-info-card);
}

.fiwork-support-list-item {
    padding: 16px 18px;
    background: var(--fiwork-info-muted);
}

.fiwork-support-list-item h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.fiwork-support-list-item p {
    margin: 0;
}

.fiwork-faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 16px 52px 16px 18px;
    color: var(--fiwork-info-ink);
    font-family: var(--font-family), Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.fiwork-faq-item summary::-webkit-details-marker {
    display: none;
}

.fiwork-faq-item summary::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--fiwork-info-action);
    border-bottom: 2px solid var(--fiwork-info-action);
    content: "";
    transform: translateY(-65%) rotate(45deg);
    transition: transform .18s ease;
}

.fiwork-faq-item[open] summary::after {
    transform: translateY(-35%) rotate(225deg);
}

.fiwork-faq-answer {
    padding: 0 18px 18px;
}

.fiwork-faq-answer p {
    margin: 0;
    color: var(--fiwork-info-copy);
}

.terms-of-service-content :is(
    .fiwork-withdraw-card,
    .fiwork-pay-card,
    .fiwork-support-card,
    .fiwork-support-list-item,
    .fiwork-faq-item,
    .fiwork-doc-card,
    .fiwork-withdraw-note,
    .fiwork-pay-note,
    .fiwork-faq-contact,
    .fiwork-doc-note
) {
    box-shadow: none;
}

.terms-of-service-content :is(
    .fiwork-withdraw-button,
    .fiwork-pay-button,
    .fiwork-faq-button,
    .fiwork-support-button,
    .fiwork-doc-action
) {
    text-decoration: none;
    transition: transform .18s ease, filter .18s ease;
}

.terms-of-service-content :is(
    .fiwork-withdraw-button,
    .fiwork-pay-button,
    .fiwork-faq-button,
    .fiwork-support-button,
    .fiwork-doc-action
):hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(.96);
    transform: translateY(-1px);
}

mark {
    padding: 0 2px;
    border-radius: 2px;
    color: #161616 !important;
    background: #ffeb3b !important;
    font-weight: 600;
}

mark.current {
    color: #fff !important;
    background: #ff9800 !important;
}

@media (max-width: 960px) {
    .terms-of-service-block {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .terms-of-service-content {
        grid-row: 2;
    }

    .terms-of-service-navigation {
        position: static;
        grid-row: 1;
    }

    .terms-of-service-nav-container {
        padding: 14px;
    }

    .terms-of-service-nav-container h3 {
        padding: 0;
        border-bottom: 0;
    }

    .terms-of-service-nav-content {
        flex-direction: row;
        gap: 7px;
        padding-bottom: 2px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .terms-of-service-nav-content::-webkit-scrollbar {
        display: none;
    }

    .terms-of-service-nav-content a {
        flex: 0 0 auto;
        width: auto;
        padding: 8px 11px;
        border: 0;
        background: #fff;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    body.fiwork-info-page > .main-block {
        padding: 0 12px;
    }

    body.fiwork-info-page > .main-block > .main-container {
        margin: 14px 0;
        padding: 6px;
        border-radius: 16px;
    }

    .terms-of-service-block {
        gap: 10px;
        padding: 10px;
    }

    .terms-of-service-content {
        padding: 18px;
        border-radius: 11px;
    }

    .terms-of-service-content h2 {
        margin: 26px 0 13px;
        font-size: 21px;
        line-height: 1.3;
    }

    .terms-of-service-content > h2:first-child {
        margin: 0 0 18px;
        padding: 17px 16px;
        font-size: 24px;
    }

    .terms-of-service-content h3 {
        font-size: 16px;
    }

    .terms-of-service-content p,
    .terms-of-service-content li {
        font-size: 14px;
        line-height: 1.6;
    }

    .terms-of-service-nav-container {
        border-radius: 11px;
    }

    .terms-of-service-content :is(
        .fiwork-withdraw-grid,
        .fiwork-pay-grid,
        .fiwork-support-actions,
        .fiwork-doc-card-grid
    ) {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .terms-of-service-content :is(
        .fiwork-withdraw-hero,
        .fiwork-pay-hero,
        .fiwork-faq-hero,
        .fiwork-support-hero,
        .fiwork-doc-hero
    ) {
        margin-bottom: 18px;
        padding: 20px;
        border-radius: 11px;
    }

    .terms-of-service-content :is(
        .fiwork-withdraw-hero h1,
        .fiwork-pay-hero h1,
        .fiwork-faq-hero h1,
        .fiwork-support-hero h1,
        .fiwork-doc-hero h1
    ) {
        font-size: 26px;
        line-height: 1.16;
    }

    .terms-of-service-content :is(
        .fiwork-withdraw-card,
        .fiwork-pay-card,
        .fiwork-support-card,
        .fiwork-support-list-item,
        .fiwork-doc-card
    ) {
        min-height: 0;
        padding: 16px;
    }

    .terms-of-service-content :is(
        .fiwork-withdraw-note,
        .fiwork-pay-note,
        .fiwork-faq-contact,
        .fiwork-doc-note
    ) {
        margin-top: 18px;
        padding: 17px;
    }
}

@media (max-width: 480px) {
    body.fiwork-info-page > .main-block {
        padding: 0 8px;
    }

    .terms-of-service-block {
        padding: 6px;
    }

    .terms-of-service-content {
        padding: 15px;
    }

    .terms-of-service-nav-container {
        padding: 12px;
    }

    .terms-of-service-content :is(
        .fiwork-withdraw-highlight,
        .fiwork-withdraw-button,
        .fiwork-pay-button,
        .fiwork-faq-button,
        .fiwork-support-button,
        .fiwork-doc-action
    ) {
        width: 100%;
    }

    .terms-of-service-content .fiwork-withdraw-highlight {
        justify-content: center;
        height: auto;
        min-height: 40px;
        padding-block: 8px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terms-of-service-block *,
    .terms-of-service-block *::before,
    .terms-of-service-block *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
