/* Scoped long-form policy pages. Shared navigation and consultation assets stay unchanged. */
.fs-legal-page .fs-page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 4.2vw, 3.65rem);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.fs-legal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 2fr);
    align-items: start;
    gap: 56px;
}

.fs-legal-toc {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--fs-border);
    border-radius: 3px;
    background: #071225;
}

.fs-legal-toc__title {
    margin: 0 0 16px;
    color: #fff;
    font-weight: 750;
}

.fs-legal-toc ol {
    margin: 0;
    padding-left: 1.4em;
}

.fs-legal-toc li + li { margin-top: 10px; }
.fs-legal-toc a { display: inline-block; padding: 4px 0; }

.fs-legal-content {
    min-width: 0;
    color: #c7d5e4;
    font-size: 1rem;
    line-height: 1.95;
}

.fs-legal-page p,
.fs-legal-page li,
.fs-legal-page dd {
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: pretty;
}

.fs-legal-content p { margin: 0 0 20px; }
.fs-legal-content .fs-legal-intro { margin-bottom: 36px; }
.fs-legal-section { scroll-margin-top: 150px; }
.fs-legal-section + .fs-legal-section { margin-top: 44px; }

.fs-legal-content h2 {
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fs-border);
    color: #fff;
    font-size: clamp(1.25rem, 2.3vw, 1.6rem);
    line-height: 1.6;
    word-break: normal;
    text-wrap: pretty;
}

.fs-legal-content h3 {
    margin: 26px 0 12px;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.7;
}

.fs-legal-page a {
    color: #8aefff;
    text-underline-offset: 4px;
}

.fs-legal-page a:focus-visible {
    outline: 3px solid #67e8f9;
    outline-offset: 4px;
}

.fs-legal-page a:hover { color: #fff; }
.fs-legal-content ul { margin: 0 0 22px; padding-left: 1.5em; }
.fs-legal-content li + li { margin-top: 8px; }
.fs-legal-definition { margin: 0 0 20px; }

.fs-legal-definition > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #1b2c3f;
}

.fs-legal-definition dt { color: #b5c8db; font-weight: 700; }
.fs-legal-definition dd { min-width: 0; margin: 0; }

.fs-legal-service {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid var(--fs-border);
    border-radius: 3px;
    background: #071225;
}

.fs-legal-service h3 { margin-top: 0; }
.fs-legal-service p:last-child { margin-bottom: 0; }
.fs-legal-content .fs-legal-date { margin-top: 28px; color: #afc2d7; font-size: 0.9rem; }
.fs-legal-related { padding-top: 24px; border-top: 1px solid var(--fs-border); }

@media (max-width: 900px) {
    .fs-legal-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 767px) {
    .fs-legal-toc,
    .fs-legal-service { padding: 20px; }
    .fs-legal-definition > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    .fs-legal-section { scroll-margin-top: 110px; }
}

@media print {
    html:has(.fs-legal-page),
    body:has(.fs-legal-page) { background: #fff !important; }
    body:has(.fs-legal-page) :is(.site-header, .site-body-bottom, .fs-site-footer, .site-footer, .vk-mobile-nav-menu-btn, #vk-mobile-nav, .page_top_btn, .fs-legal-toc) { display: none !important; }
    .fs-legal-page,
    .fs-legal-page * { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
    .fs-legal-page .fs-container { width: 100%; max-width: none; }
    .fs-legal-page .fs-page-hero { display: block; min-height: 0; padding: 0 0 6mm; }
    .fs-legal-page .fs-section { padding: 5mm 0; }
    .fs-legal-layout { display: block; }
    .fs-legal-content { font-size: 10pt; line-height: 1.6; }
    .fs-legal-content h2 { break-after: avoid; font-size: 14pt; }
    .fs-legal-content h3 { break-after: avoid; font-size: 12pt; }
    .fs-legal-definition > div { break-inside: avoid; }
    .fs-legal-page .fs-page-hero h1 { font-size: 22pt; }
}
