/* The legal /docs pages share the same quiet workspace as /manage-services. */
body.fiwork-legal-page {
    --legal-canvas: #f4f5f7;
    --legal-surface: #fff;
    --legal-subtle: #f3f5f7;
    --legal-border: rgba(17, 24, 39, .07);
    --legal-ink: #202228;
    --legal-copy: #4f5966;
    --legal-muted: #747c88;
    --legal-link: #0874d7;
}

body.fiwork-legal-page > .main-block {
    box-sizing: border-box;
    width: 100%;
    padding: 0 16px;
    background: var(--legal-canvas);
}

body.fiwork-legal-page > .main-block > .main-container.fiwork-layout-container {
    width: min(100%, 1276px);
    max-width: 1276px;
    margin: 32px auto 72px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.fiwork-legal-page .terms-of-service-block {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.fiwork-legal-page .terms-of-service-navigation {
    position: sticky;
    top: 88px;
    min-width: 0;
}

body.fiwork-legal-page .terms-of-service-nav-container,
body.fiwork-legal-page .terms-of-service-content {
    min-width: 0;
    border: 1px solid var(--legal-border);
    border-radius: 26px;
    background: var(--legal-surface);
    box-shadow: none;
}

body.fiwork-legal-page .terms-of-service-nav-container {
    display: block;
    padding: 12px;
}

body.fiwork-legal-page .terms-of-service-nav-title {
    display: block;
    margin: 0;
    padding: 14px 12px 10px;
    border: 0;
    color: var(--legal-ink);
    font: 650 14px/1.4 "Geologica", "Inter", Arial, sans-serif;
}

body.fiwork-legal-page .terms-of-service-nav-content {
    display: grid;
    gap: 4px;
    margin: 0;
}

body.fiwork-legal-page .terms-of-service-nav-content a {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    border: 0;
    border-radius: 11px;
    color: var(--legal-copy);
    background: transparent;
    font: 520 13px/1.45 "Geologica", "Inter", Arial, sans-serif;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.fiwork-legal-page .terms-of-service-nav-content a:hover,
body.fiwork-legal-page .terms-of-service-nav-content a:focus-visible {
    color: var(--legal-ink);
    background: var(--legal-subtle);
}

body.fiwork-legal-page .terms-of-service-nav-content a:focus-visible {
    outline: 2px solid var(--legal-link);
    outline-offset: 2px;
}

body.fiwork-legal-page .terms-of-service-nav-content a[aria-current="page"] {
    color: var(--legal-link);
    background: #e8f4ff;
    font-weight: 650;
}

body.fiwork-legal-page .terms-of-service-content {
    width: 100%;
    padding: 36px 42px 44px;
    color: var(--legal-copy);
    overflow-wrap: break-word;
}

body.fiwork-legal-page .terms-of-service-content > h1:first-child {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--legal-ink);
    font: 700 25px/1.3 "Inter", Arial, sans-serif;
    letter-spacing: -.02em;
}

body.fiwork-legal-page .terms-of-service-content h2:not(:first-child) {
    margin: 32px 0 11px;
    padding: 0;
    color: var(--legal-ink);
    font: 650 18px/1.4 "Geologica", "Inter", Arial, sans-serif;
    letter-spacing: 0;
}

body.fiwork-legal-page .terms-of-service-content h3 {
    margin: 24px 0 9px;
    color: var(--legal-ink);
    font: 650 15px/1.5 "Geologica", "Inter", Arial, sans-serif;
}

body.fiwork-legal-page .terms-of-service-content :is(p, li) {
    max-width: 82ch;
    overflow-wrap: anywhere;
    color: var(--legal-copy);
    font: 400 14px/1.75 "Geologica", "Inter", Arial, sans-serif;
}

body.fiwork-legal-page .terms-of-service-content p {
    margin: 0 0 15px;
}

body.fiwork-legal-page .terms-of-service-content :is(ul, ol) {
    margin: 0 0 18px;
    padding-left: 22px;
}

body.fiwork-legal-page .terms-of-service-content li {
    margin: 0 0 9px;
}

body.fiwork-legal-page .terms-of-service-content :is(b, strong) {
    color: var(--legal-ink);
    font-weight: 650;
}

body.fiwork-legal-page .terms-of-service-content a {
    color: var(--legal-link);
    text-decoration: underline;
    text-decoration-color: rgba(8, 116, 215, .35);
    text-underline-offset: 3px;
}

@media (max-width: 960px) {
    body.fiwork-legal-page .terms-of-service-block {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    body.fiwork-legal-page .terms-of-service-navigation,
    body.fiwork-legal-page .terms-of-service-content {
        position: static;
        grid-row: auto;
    }

    body.fiwork-legal-page .terms-of-service-nav-content {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    body.fiwork-legal-page .terms-of-service-nav-content a {
        width: auto;
        min-height: 38px;
        padding: 9px 12px;
    }
}

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

    body.fiwork-legal-page > .main-block > .main-container.fiwork-layout-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 16px auto 40px;
    }

    body.fiwork-legal-page .terms-of-service-nav-container,
    body.fiwork-legal-page .terms-of-service-content {
        border-radius: 20px;
    }

    body.fiwork-legal-page .terms-of-service-content {
        padding: 26px 20px 30px;
    }

    body.fiwork-legal-page .terms-of-service-content > h1:first-child {
        margin-bottom: 18px;
        font-size: 22px;
    }

    body.fiwork-legal-page .terms-of-service-content h2:not(:first-child) {
        margin-top: 27px;
        font-size: 17px;
    }
}

html[data-theme="dark"] body.fiwork-legal-page {
    --legal-canvas: #0f1215;
    --legal-surface: #171b20;
    --legal-subtle: #20252b;
    --legal-border: rgba(255, 255, 255, .08);
    --legal-ink: #f0f3f6;
    --legal-copy: #aeb8c3;
    --legal-muted: #9aa5b2;
    --legal-link: #9bd0ff;
}

html[data-theme="dark"] body.fiwork-legal-page > .main-block,
html[data-theme="dark"] body.fiwork-legal-page > .main-block > .main-container.fiwork-layout-container {
    background: var(--legal-canvas) !important;
}

html[data-theme="dark"] body.fiwork-legal-page > .main-block > .main-container.fiwork-layout-container {
    border: 0 !important;
}

html[data-theme="dark"] body.fiwork-legal-page .terms-of-service-nav-container,
html[data-theme="dark"] body.fiwork-legal-page .terms-of-service-content {
    border-color: var(--legal-border) !important;
    background: var(--legal-surface) !important;
}

html[data-theme="dark"] body.fiwork-legal-page .terms-of-service-content :is(h1, h2, h3, b, strong),
html[data-theme="dark"] body.fiwork-legal-page .terms-of-service-nav-title {
    color: var(--legal-ink) !important;
}

html[data-theme="dark"] body.fiwork-legal-page .terms-of-service-content :is(p, li),
html[data-theme="dark"] body.fiwork-legal-page .terms-of-service-nav-content a {
    color: var(--legal-copy) !important;
}

html[data-theme="dark"] body.fiwork-legal-page .terms-of-service-nav-content a:hover,
html[data-theme="dark"] body.fiwork-legal-page .terms-of-service-nav-content a:focus-visible {
    color: var(--legal-ink) !important;
    background: var(--legal-subtle) !important;
}

html[data-theme="dark"] body.fiwork-legal-page .terms-of-service-nav-content a[aria-current="page"] {
    color: var(--legal-link) !important;
    background: #20354a !important;
}

html[data-theme="dark"] body.fiwork-legal-page .terms-of-service-content a {
    color: var(--legal-link) !important;
}

/* Help pages use the same calm document rhythm, with their own compact grids. */
body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page, .fiwork-paymethod-page) .terms-of-service-content {
    --help-border: #e4e9ee;
    --fiwork-info-ink: var(--legal-ink);
    --fiwork-info-copy: var(--legal-copy);
    --fiwork-info-card: var(--legal-subtle);
    --fiwork-info-muted: var(--legal-subtle);
    --fiwork-info-action: var(--legal-link);
}

body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page) .terms-of-service-content :is(h1, h2, h3, strong) {
    color: var(--legal-ink);
}

body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page, .fiwork-paymethod-page) .terms-of-service-content > p:first-of-type {
    max-width: 76ch;
    margin: 0 0 24px;
    line-height: 1.7;
}

body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page, .fiwork-paymethod-page) .terms-of-service-content > h2 {
    margin: 28px 0 14px;
}

/* FAQ: readable rows instead of heavy nested cards. */
body.fiwork-faq-page .fiwork-faq-section {
    margin: 26px 0 0;
}

body.fiwork-faq-page .terms-of-service-content .fiwork-faq-section-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.45;
}

body.fiwork-faq-page .fiwork-faq-list {
    display: grid;
    gap: 8px;
}

body.fiwork-faq-page .terms-of-service-content .fiwork-faq-item {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--help-border);
    border-radius: 13px;
    background: var(--legal-surface);
}

body.fiwork-faq-page .terms-of-service-content .fiwork-faq-item summary {
    min-height: 0;
    padding: 14px 42px 14px 16px;
    color: var(--legal-ink);
    font: 550 14px/1.55 "Geologica", "Inter", Arial, sans-serif;
}

body.fiwork-faq-page .terms-of-service-content .fiwork-faq-item summary::after {
    right: 18px;
    width: 8px;
    height: 8px;
    border-color: var(--legal-muted);
}

body.fiwork-faq-page .terms-of-service-content .fiwork-faq-answer {
    padding: 0 42px 16px 16px;
}

body.fiwork-faq-page .terms-of-service-content .fiwork-faq-answer p {
    max-width: 76ch;
    margin: 0;
    line-height: 1.7;
}

body.fiwork-faq-page .terms-of-service-content .fiwork-faq-contact,
body.fiwork-support-page .terms-of-service-content .fiwork-help-advice,
body.fiwork-choices-page .terms-of-service-content .fiwork-help-advice {
    margin-top: 28px;
    padding: 20px 0 0;
    border: 0;
    border-top: 1px solid var(--help-border);
    border-radius: 0;
    background: transparent;
}

body.fiwork-faq-page .terms-of-service-content .fiwork-faq-contact h2,
body.fiwork-support-page .terms-of-service-content .fiwork-help-advice h2,
body.fiwork-choices-page .terms-of-service-content .fiwork-help-advice h2 {
    margin: 0 0 8px;
}

body.fiwork-faq-page .terms-of-service-content .fiwork-faq-contact p,
body.fiwork-support-page .terms-of-service-content .fiwork-help-advice p,
body.fiwork-choices-page .terms-of-service-content .fiwork-help-advice p {
    margin: 0 0 10px;
}

body.fiwork-faq-page .terms-of-service-content .fiwork-faq-contact p:last-of-type,
body.fiwork-support-page .terms-of-service-content .fiwork-help-advice p:last-of-type,
body.fiwork-choices-page .terms-of-service-content .fiwork-help-advice p:last-of-type {
    margin-bottom: 0;
}

/* Support and privacy cards keep a visible, quiet edge on the white document. */
body.fiwork-support-page .terms-of-service-content .fiwork-support-actions,
body.fiwork-support-page .terms-of-service-content .fiwork-support-list,
body.fiwork-choices-page .terms-of-service-content .fiwork-doc-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    margin: 0;
}

body.fiwork-support-page .terms-of-service-content .fiwork-support-actions {
    margin-bottom: 26px;
}

body.fiwork-support-page .terms-of-service-content .fiwork-support-card,
body.fiwork-support-page .terms-of-service-content .fiwork-support-list-item,
body.fiwork-choices-page .terms-of-service-content .fiwork-doc-card {
    min-width: 0;
    min-height: 0;
    padding: 18px;
    border: 1px solid var(--help-border);
    border-radius: 16px;
    background: var(--legal-surface);
}

body.fiwork-support-page .terms-of-service-content .fiwork-support-card {
    align-items: flex-start;
    gap: 0;
}

body.fiwork-support-page .terms-of-service-content .fiwork-support-card strong,
body.fiwork-choices-page .terms-of-service-content .fiwork-doc-card h3,
body.fiwork-support-page .terms-of-service-content .fiwork-support-list-item h3 {
    margin: 0 0 2px;
    color: var(--legal-ink);
    font: 620 15px/1.45 "Geologica", "Inter", Arial, sans-serif;
}

body.fiwork-support-page .terms-of-service-content .fiwork-support-card span,
body.fiwork-support-page .terms-of-service-content .fiwork-support-list-item p,
body.fiwork-choices-page .terms-of-service-content .fiwork-doc-card p {
    margin: 0;
    color: var(--legal-copy);
    font: 400 13px/1.65 "Geologica", "Inter", Arial, sans-serif;
}

body.fiwork-support-page .terms-of-service-content :is(.fiwork-support-card, .fiwork-support-list-item),
body.fiwork-choices-page .terms-of-service-content .fiwork-doc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
    border-color: #e9edf1;
    border-radius: 14px;
    background: #fbfcfd;
}

body.fiwork-support-page .terms-of-service-content .fiwork-support-card span,
body.fiwork-choices-page .terms-of-service-content .fiwork-doc-card p {
    flex: 1 1 auto;
    line-height: 1.7;
}

body.fiwork-support-page .terms-of-service-content .fiwork-support-button,
body.fiwork-choices-page .terms-of-service-content .fiwork-doc-action {
    min-height: 0;
    margin-top: 18px;
}

body.fiwork-choices-page .terms-of-service-content .fiwork-doc-note {
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.fiwork-faq-page .terms-of-service-content .fiwork-faq-button {
    min-height: 40px;
    margin-top: 8px;
    border-radius: 10px;
}

body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page) .terms-of-service-content :is(.fiwork-faq-button, .fiwork-support-button, .fiwork-doc-action) {
    border: 0;
    color: #2673ae !important;
    background: #edf6fc;
    font-weight: 600;
}

body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page) .terms-of-service-content :is(.fiwork-faq-button, .fiwork-support-button, .fiwork-doc-action):hover {
    color: #175f97 !important;
    background: #e4f1fa;
    filter: none;
}

body.fiwork-legal-page.fiwork-support-page .terms-of-service-content a.fiwork-support-button,
body.fiwork-legal-page.fiwork-choices-page .terms-of-service-content a.fiwork-doc-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid #e9edf1;
    border-radius: 0;
    color: #2873a9 !important;
    background: transparent;
    font: 600 13px/1.45 "Geologica", "Inter", Arial, sans-serif;
    text-align: left;
    text-decoration: none !important;
    transform: none;
}

body.fiwork-legal-page.fiwork-support-page .terms-of-service-content a.fiwork-support-button::after,
body.fiwork-legal-page.fiwork-choices-page .terms-of-service-content a.fiwork-doc-action::after {
    flex: none;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

body.fiwork-legal-page.fiwork-support-page .terms-of-service-content a.fiwork-support-button:hover,
body.fiwork-legal-page.fiwork-support-page .terms-of-service-content a.fiwork-support-button:focus-visible,
body.fiwork-legal-page.fiwork-choices-page .terms-of-service-content a.fiwork-doc-action:hover,
body.fiwork-legal-page.fiwork-choices-page .terms-of-service-content a.fiwork-doc-action:focus-visible {
    color: #185f93 !important;
    background: transparent;
    text-decoration: none !important;
    filter: none;
    transform: none;
}

body.fiwork-legal-page.fiwork-support-page .terms-of-service-content a.fiwork-support-button:focus-visible,
body.fiwork-legal-page.fiwork-choices-page .terms-of-service-content a.fiwork-doc-action:focus-visible {
    outline: 2px solid #81b6dd;
    outline-offset: 4px;
}

/* Payment methods follow the same document layout and card rhythm. */
body.fiwork-paymethod-page .terms-of-service-content .fiwork-pay-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

body.fiwork-paymethod-page .terms-of-service-content .fiwork-pay-card {
    min-width: 0;
    min-height: 0;
    padding: 20px 22px;
    border: 1px solid var(--help-border);
    border-radius: 14px;
    background: #fbfcfd;
}

body.fiwork-paymethod-page .terms-of-service-content .fiwork-pay-card h3 {
    margin: 0 0 8px;
    color: var(--legal-ink);
    font: 620 15px/1.45 "Geologica", "Inter", Arial, sans-serif;
}

body.fiwork-paymethod-page .terms-of-service-content .fiwork-pay-card p {
    margin: 0;
    color: var(--legal-copy);
    font: 400 13px/1.7 "Geologica", "Inter", Arial, sans-serif;
}

body.fiwork-paymethod-page .terms-of-service-content .fiwork-pay-note {
    margin-top: 28px;
    padding: 20px 0 0;
    border: 0;
    border-top: 1px solid var(--help-border);
    border-radius: 0;
    background: transparent;
}

body.fiwork-paymethod-page .terms-of-service-content .fiwork-pay-note h2 {
    margin: 0 0 8px;
}

body.fiwork-paymethod-page .terms-of-service-content .fiwork-pay-note p {
    margin: 0 0 12px;
}

body.fiwork-legal-page.fiwork-paymethod-page .terms-of-service-content a.fiwork-pay-button,
body.fiwork-legal-page.fiwork-faq-page .terms-of-service-content a.fiwork-faq-button {
    min-height: 40px;
    margin-top: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    color: #2673ae !important;
    background: #edf6fc;
    font: 600 13px/1.45 "Geologica", "Inter", Arial, sans-serif;
    text-decoration: none !important;
}

body.fiwork-legal-page.fiwork-paymethod-page .terms-of-service-content a.fiwork-pay-button:hover,
body.fiwork-legal-page.fiwork-paymethod-page .terms-of-service-content a.fiwork-pay-button:focus-visible,
body.fiwork-legal-page.fiwork-faq-page .terms-of-service-content a.fiwork-faq-button:hover,
body.fiwork-legal-page.fiwork-faq-page .terms-of-service-content a.fiwork-faq-button:focus-visible {
    color: #175f97 !important;
    background: #e4f1fa;
    text-decoration: none !important;
    filter: none;
    transform: none;
}

body.fiwork-legal-page.fiwork-paymethod-page .terms-of-service-content a.fiwork-pay-button:focus-visible,
body.fiwork-legal-page.fiwork-faq-page .terms-of-service-content a.fiwork-faq-button:focus-visible {
    outline: 2px solid #81b6dd;
    outline-offset: 3px;
}

body.fiwork-legal-page.fiwork-faq-page .terms-of-service-content a.fiwork-faq-button {
    margin-top: 12px;
}

html[data-theme="dark"] body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page, .fiwork-paymethod-page) .terms-of-service-content {
    --help-border: #343d47;
}

html[data-theme="dark"] body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page) .terms-of-service-content :is(h1, h2, h3, strong) {
    color: var(--legal-ink);
}

html[data-theme="dark"] body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page) .terms-of-service-content :is(.fiwork-faq-item, .fiwork-support-card, .fiwork-support-list-item, .fiwork-doc-card) {
    border-color: var(--help-border);
    background: var(--legal-surface);
}

html[data-theme="dark"] body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page) .terms-of-service-content :is(.fiwork-faq-button, .fiwork-support-button, .fiwork-doc-action) {
    color: #e0e5ea !important;
    background: #2a3036;
}

html[data-theme="dark"] body.fiwork-legal-page.fiwork-support-page .terms-of-service-content :is(.fiwork-support-card, .fiwork-support-list-item),
html[data-theme="dark"] body.fiwork-legal-page.fiwork-choices-page .terms-of-service-content .fiwork-doc-card {
    border-color: var(--help-border);
    background: #1b2026;
}

html[data-theme="dark"] body.fiwork-legal-page.fiwork-support-page .terms-of-service-content a.fiwork-support-button,
html[data-theme="dark"] body.fiwork-legal-page.fiwork-choices-page .terms-of-service-content a.fiwork-doc-action {
    border-top-color: var(--help-border);
    color: #a9cee9 !important;
    background: transparent;
    text-decoration: none !important;
}

html[data-theme="dark"] body.fiwork-legal-page.fiwork-paymethod-page .terms-of-service-content .fiwork-pay-card {
    border-color: var(--help-border);
    background: #1b2026;
}

html[data-theme="dark"] body.fiwork-legal-page.fiwork-paymethod-page .terms-of-service-content .fiwork-pay-note {
    border-top-color: var(--help-border);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-legal-page.fiwork-paymethod-page .terms-of-service-content a.fiwork-pay-button,
html[data-theme="dark"] body.fiwork-legal-page.fiwork-faq-page .terms-of-service-content a.fiwork-faq-button {
    color: #e0e5ea !important;
    background: #2a3036;
}

html[data-theme="dark"] body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page) .terms-of-service-content :is(.fiwork-faq-contact, .fiwork-help-advice, .fiwork-doc-note) {
    border-color: var(--help-border);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-legal-page:is(.fiwork-faq-page, .fiwork-support-page, .fiwork-choices-page, .fiwork-paymethod-page) .terms-of-service-nav-content a[aria-current="page"] {
    color: var(--legal-ink) !important;
    background: #2a3036 !important;
}

@media (max-width: 640px) {
    body.fiwork-legal-page:is(.fiwork-support-page, .fiwork-choices-page, .fiwork-paymethod-page) .terms-of-service-content :is(.fiwork-support-actions, .fiwork-support-list, .fiwork-doc-card-grid, .fiwork-pay-grid) {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    body.fiwork-support-page .terms-of-service-content :is(.fiwork-support-card, .fiwork-support-list-item),
    body.fiwork-choices-page .terms-of-service-content .fiwork-doc-card,
    body.fiwork-paymethod-page .terms-of-service-content .fiwork-pay-card {
        padding: 17px 18px;
    }

    body.fiwork-faq-page .terms-of-service-content .fiwork-faq-contact,
    body.fiwork-support-page .terms-of-service-content .fiwork-help-advice,
    body.fiwork-choices-page .terms-of-service-content .fiwork-help-advice {
        margin-top: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.fiwork-legal-page .terms-of-service-nav-container,
    body.fiwork-legal-page .terms-of-service-content {
        background: var(--legal-surface) !important;
    }

    body.fiwork-legal-page .terms-of-service-nav-content a[aria-current="page"] {
        background: #e8f4ff !important;
    }

    html[data-theme="dark"] body.fiwork-legal-page .terms-of-service-nav-content a[aria-current="page"] {
        background: #20354a !important;
    }
}

body.fiwork-legal-page .fiwork-cookie-preferences { margin: 16px 0 20px; }
body.fiwork-legal-page .fiwork-cookie-preferences p { margin: 0 0 10px; color: var(--legal-muted); font-size: 13px; }
body.fiwork-legal-page .fiwork-cookie-preferences__actions { display: flex; flex-wrap: wrap; gap: 9px; }
body.fiwork-legal-page .fiwork-cookie-preferences__actions button { min-height: 40px; padding: 8px 15px; border: 1px solid var(--legal-border); border-radius: 11px; background: var(--legal-subtle); color: var(--legal-ink); font: 600 13px/1.3 "Geologica", "Inter", Arial, sans-serif; cursor: pointer; }
body.fiwork-legal-page .fiwork-cookie-preferences__actions button:last-child { border-color: #0874d7; background: #0874d7; color: #fff; }
body.fiwork-legal-page .fiwork-cookie-preferences__actions button:hover { filter: brightness(.96); }
body.fiwork-legal-page .fiwork-cookie-preferences__actions button:focus-visible { outline: 2px solid var(--legal-link); outline-offset: 2px; }
html[data-theme="dark"] body.fiwork-legal-page .fiwork-cookie-preferences__actions button:first-child { background: #2a3036; color: #e0e5ea; }
