html body .lg-docs {
    --lgd-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --lgd-ease: cubic-bezier(0.19, 1, 0.22, 1);
    --lgd-panel: #ffffff;
    --lgd-line: rgba(0, 0, 0, 0.075);
    --lgd-ink: #0d0d0d;
    --lgd-text: #282828;
    --lgd-muted: #737373;
    --lgd-faint: #a3a3a3;
    --lgd-hover: rgba(0, 0, 0, 0.05);
    --lgd-info-soft: rgba(0, 0, 0, 0.045);
    --lgd-focus: #282828;
    --lgd-scrim: rgba(243, 243, 243, 0.16);
    --lgd-sheet-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 28px 64px -16px rgba(0, 0, 0, 0.26), 0 10px 24px -12px rgba(0, 0, 0, 0.12);
    --lgd-scroll: rgba(0, 0, 0, 0.16);
    position: fixed;
    inset: 0;
    z-index: 1100;
    font-family: var(--lgd-font);
    text-align: left;
}

html.theme-dark body .lg-docs,
html body.dark-mode .lg-docs {
    --lgd-panel: #1a1a1a;
    --lgd-line: rgba(255, 255, 255, 0.08);
    --lgd-ink: #f3f3f3;
    --lgd-text: #dcdcdc;
    --lgd-muted: #9a9a9a;
    --lgd-faint: #6b6b6b;
    --lgd-hover: rgba(255, 255, 255, 0.07);
    --lgd-info-soft: rgba(255, 255, 255, 0.06);
    --lgd-focus: #dcdcdc;
    --lgd-scrim: rgba(8, 8, 8, 0.3);
    --lgd-sheet-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 28px 64px -16px rgba(0, 0, 0, 0.7);
    --lgd-scroll: rgba(255, 255, 255, 0.16);
}

html body:has(#portalSidebar) .lg-docs,
html body.ap-body .lg-docs {
    --lgd-panel: #fffdfa;
    --lgd-line: rgba(31, 29, 26, 0.08);
    --lgd-ink: #1f1d1a;
    --lgd-text: #2b2824;
    --lgd-muted: #6d6861;
    --lgd-faint: #a19b91;
    --lgd-hover: rgba(31, 29, 26, 0.034);
    --lgd-info-soft: rgba(31, 29, 26, 0.055);
    --lgd-focus: #2b2824;
    --lgd-scroll: rgba(31, 29, 26, 0.16);
}

html.theme-dark body:has(#portalSidebar) .lg-docs,
html body.dark-mode:has(#portalSidebar) .lg-docs,
html.theme-dark body.ap-body .lg-docs {
    --lgd-panel: #1a1917;
    --lgd-line: rgba(235, 231, 223, 0.08);
    --lgd-ink: #ebe7df;
    --lgd-text: #d9d5cd;
    --lgd-muted: #a39e95;
    --lgd-faint: #6f6a63;
    --lgd-hover: rgba(235, 231, 223, 0.036);
    --lgd-info-soft: rgba(235, 231, 223, 0.07);
    --lgd-focus: #d9d5cd;
    --lgd-scrim: rgba(8, 8, 8, 0.3);
    --lgd-sheet-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 28px 64px -16px rgba(0, 0, 0, 0.7);
    --lgd-scroll: rgba(235, 231, 223, 0.16);
}

html body .lg-docs[hidden] {
    display: none;
}

html body .lg-docs :focus:not(:focus-visible):not(.lg-doc) {
    outline: none;
    box-shadow: none;
}

html body .lg-docs :focus-visible {
    outline: 2px solid var(--lgd-focus);
    outline-offset: 2px;
}

html body .lg-docs .lg-doc:focus-visible {
    outline: none;
}

html body .lg-doc-scrim {
    position: absolute;
    inset: 0;
    background: var(--lgd-scrim);
    opacity: 0;
    transition: opacity 0.22s ease;
}

html body .lg-docs.is-open .lg-doc-scrim {
    opacity: 1;
}

html body .lg-docs.is-closing {
    pointer-events: none;
}

html body .lg-docs.is-closing .lg-doc-scrim {
    opacity: 0;
    transition-duration: 0.18s;
}

html body .lg-doc {
    position: absolute;
    top: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    width: min(560px, calc(100vw - 48px));
    background: var(--lgd-panel);
    border-radius: 18px;
    box-shadow: var(--lgd-sheet-shadow);
    color: var(--lgd-text);
    overflow: hidden;
    outline: none;
    opacity: 0;
    transform: translateX(28px);
    transition: transform 0.45s var(--lgd-ease), opacity 0.3s var(--lgd-ease);
}

html body .lg-docs.is-open .lg-doc.is-current {
    opacity: 1;
    transform: none;
}

html body .lg-docs.is-closing .lg-doc.is-current,
html body .lg-doc.is-swapping-out {
    opacity: 0;
    transform: translateX(16px);
    transition: transform 0.2s ease-in, opacity 0.18s ease-in;
}

html body .lg-doc-grab {
    display: none;
}

html body .lg-doc-bar {
    flex: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 14px 14px 24px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

html body .lg-doc.is-scrolled .lg-doc-bar {
    border-bottom-color: var(--lgd-line);
}

html body .lg-doc-title {
    margin: 2px 0 0;
    font-family: inherit;
    color: var(--lgd-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.2px;
}

html body .lg-doc-sub {
    margin: 0;
    color: var(--lgd-muted);
    font-size: 12.5px;
    line-height: 17px;
}

html body .lg-doc-close {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--lgd-muted);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

html body .lg-doc-close::before,
html body .lg-doc-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s var(--lgd-ease);
}

html body .lg-doc-close::after {
    transform: rotate(-45deg);
}

html body .lg-doc-close:hover {
    background: var(--lgd-hover);
    color: var(--lgd-ink);
}

html body .lg-doc-close:hover::before {
    transform: rotate(135deg);
}

html body .lg-doc-close:hover::after {
    transform: rotate(45deg);
}

html body .lg-doc-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 0 24px 32px;
    font-size: 13.5px;
    line-height: 21px;
    scrollbar-width: thin;
    scrollbar-color: var(--lgd-scroll) transparent;
}

html body .lg-doc-body > :first-child > p:first-child[style] {
    display: none;
}

html body .lg-doc-body [style] {
    color: inherit !important;
    font-family: inherit !important;
}

html body .lg-doc-body :is(.terms-modal-section, .privacy-modal-section, .cookies-modal-section) {
    margin: 0;
    padding: 18px 0 0;
}

html body .lg-doc-body :is(.terms-modal-section, .privacy-modal-section, .cookies-modal-section) + :is(.terms-modal-section, .privacy-modal-section, .cookies-modal-section) {
    margin-top: 18px;
    border-top: 1px solid var(--lgd-line);
}

html body .lg-doc-body h3 {
    margin: 0 0 8px;
    font-family: inherit;
    color: var(--lgd-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.2px;
}

html body .lg-doc-body h4 {
    margin: 14px 0 4px;
    font-family: inherit;
    color: var(--lgd-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 20px;
}

html body .lg-doc-body p {
    margin: 0 0 10px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

html body .lg-doc-body ul,
html body .lg-doc-body ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

html body .lg-doc-body li {
    margin: 0 0 6px;
    padding-left: 2px;
}

html body .lg-doc-body li::marker {
    color: var(--lgd-faint);
}

html body .lg-doc-body strong {
    color: var(--lgd-ink);
    font-weight: 600;
}

html body .lg-doc-body a {
    color: var(--lgd-ink) !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-color: var(--lgd-faint);
}

html body .lg-doc-body a:hover {
    text-decoration-color: currentColor;
}

html body .lg-doc-body :is(.terms-acceptance-notice, .privacy-acceptance-notice, .cookies-acceptance-notice, .key-point-modal, .contact-info-modal, .note-modal) {
    display: block;
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: var(--lgd-info-soft);
    color: var(--lgd-text);
}

html body .lg-doc-body .note-modal {
    margin-top: 10px;
}

html body .lg-doc-body :is(.terms-acceptance-notice, .privacy-acceptance-notice, .cookies-acceptance-notice, .key-point-modal, .contact-info-modal) p:last-child {
    margin-bottom: 0;
}

html body .lg-doc-body i[class*="fa-"] {
    display: none;
}

html body .lg-doc-body table {
    width: 100%;
    margin: 6px 0 12px;
    border-collapse: collapse;
    font-size: 13px;
}

html body .lg-doc-body th,
html body .lg-doc-body td {
    padding: 7px 10px 7px 0;
    border-bottom: 1px solid var(--lgd-line);
    text-align: left;
    vertical-align: top;
}

html body .lg-doc-body th {
    color: var(--lgd-muted);
    font-weight: 500;
}

html body .lg-doc.is-current .lg-doc-body > * {
    animation: lgdRise 0.5s var(--lgd-ease) backwards;
}

html body .lg-doc.is-current .lg-doc-body > :nth-child(2) { animation-delay: 25ms; }
html body .lg-doc.is-current .lg-doc-body > :nth-child(3) { animation-delay: 50ms; }
html body .lg-doc.is-current .lg-doc-body > :nth-child(4) { animation-delay: 75ms; }
html body .lg-doc.is-current .lg-doc-body > :nth-child(5) { animation-delay: 100ms; }
html body .lg-doc.is-current .lg-doc-body > :nth-child(n+6) { animation-delay: 125ms; }

@keyframes lgdRise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (max-width: 640px) {
    html body .lg-doc {
        top: 10px;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        border-radius: 18px 18px 0 0;
        transform: translateY(28px);
        touch-action: none;
        touch-action: pinch-zoom;
    }

    html body .lg-doc-grab {
        display: block;
        flex: none;
        width: 36px;
        height: 4px;
        margin: 8px auto 0;
        border-radius: 2px;
        background: var(--lgd-scroll);
    }

    html body .lg-docs.is-closing .lg-doc.is-current,
    html body .lg-doc.is-swapping-out {
        transform: translateY(20px);
    }

    html body .lg-doc-bar {
        padding: 8px 10px 12px 20px;
    }

    html body .lg-doc-body {
        padding: 0 20px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .lg-doc.is-current .lg-doc-body > * {
        animation: none;
    }

    html body .lg-doc-close::before,
    html body .lg-doc-close::after {
        transition: none;
    }

    html body .lg-doc,
    html body .lg-docs.is-closing .lg-doc.is-current,
    html body .lg-doc.is-swapping-out {
        transform: none;
        transition: opacity 0.15s linear;
    }
}
