/* Shared static page foundation */
/* Extracted from static-page */

:root {
    --primary: #786cf8;
    --primary-hover: #675ae9;
    --primary-rgb: 120, 108, 248;
    --accent-blue: #3a7dde;
    --accent-blue-hover: #2d6dcb;
    --accent-blue-rgb: 58, 125, 222;
    --text-main: #1a2235;
    --text-muted: #6f7d91;
    --border: rgba(151, 171, 198, 0.28);
    --bg-body: #f1f4f9;
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-soft: #edf3fb;
    --shadow-sm: 0 16px 34px -28px rgba(99, 126, 166, 0.75);
    --shadow-md: 0 28px 64px -46px rgba(114, 139, 173, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(241, 244, 249, 0) 34%);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; }
header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 0;
    padding: 16px 24px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(168, 183, 208, 0.36);
    border-radius: 10px;
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 36px -30px rgba(137, 157, 191, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.brand-logo { display: block; height: auto; object-fit: contain; flex-shrink: 0; }
.brand-logo--header { width: 130px; }
.brand-logo--footer { width: 91px; }
nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; font-weight: 500; color: #79869a; }
nav a { position: relative; padding: 6px 0; }
nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(84, 166, 255, 0.75));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}
nav a:hover { color: var(--primary); }
nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
}
.site-language-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}
.site-language-switch summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 12px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    list-style: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.site-language-switch summary::-webkit-details-marker { display: none; }
.site-language-switch summary:hover,
.site-language-switch[open] summary {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-sm);
}
.site-language-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.16);
}
.site-language-flag--ru {
    background: linear-gradient(to bottom, #ffffff 0 33.33%, #2563eb 33.33% 66.66%, #ef4444 66.66% 100%);
}
.site-language-flag--en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 36'%3E%3Cpath fill='%23012169' d='M0 0h60v36H0z'/%3E%3Cpath stroke='%23fff' stroke-width='7' d='M0 0l60 36M60 0L0 36'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='M0 0l60 36M60 0L0 36'/%3E%3Cpath stroke='%23fff' stroke-width='12' d='M30 0v36M0 18h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='7' d='M30 0v36M0 18h60'/%3E%3C/svg%3E");
}
.site-language-code { min-width: 19px; letter-spacing: 0.02em; }
.site-language-chevron { color: var(--text-muted); transition: transform 0.2s ease; }
.site-language-switch[open] .site-language-chevron { transform: rotate(180deg); }
.site-language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    display: grid;
    min-width: 138px;
    padding: 6px;
    border: 1px solid rgba(168, 183, 208, 0.42);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px -24px rgba(46, 62, 93, 0.45);
}
.site-language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 9px;
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.site-language-option:hover,
.site-language-option.is-active {
    color: var(--accent-blue);
    background: rgba(var(--accent-blue-rgb), 0.1);
}
.page-nav-fab,
.page-nav-backdrop,
.page-nav-drawer-close {
    display: none;
}
.header-user-pill {
    display: inline-flex;
    align-items: center;
    max-width: 220px;
    min-height: 44px;
    padding: 0 14px;
    overflow: hidden;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(168, 183, 208, 0.32);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #4c91e9 0%, var(--accent-blue) 100%);
    box-shadow: 0 18px 38px -24px rgba(var(--accent-blue-rgb), 0.72);
}
.btn-outline { background: rgba(255,255,255,0.84); color: var(--text-main); }
.header-actions .btn {
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 6px;
    font-weight: 600;
}
.header-actions .btn-outline:hover {
    border-color: rgba(var(--primary-rgb), 0.32);
    box-shadow: var(--shadow-sm);
}
.theme-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
}
.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 28px;
    padding: 68px 0 34px;
    align-items: start;
}
.hero-card, .info-card, .section-card, .cta-card {
    background: var(--bg-card);
    border: 1px solid rgba(168, 183, 208, 0.3);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}
.hero-card { padding: 34px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}
h1 { margin: 16px 0 14px; font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.04em; }
.hero-card p { margin: 0; color: var(--text-muted); font-size: 17px; line-height: 1.72; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.info-card { padding: 26px; }
.info-card h3 { margin: 0 0 10px; font-size: 18px; }
.info-card p { margin: 0; color: var(--text-muted); line-height: 1.7; }
.notice { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: rgba(245, 158, 11, 0.1); color: #8a5a00; font-size: 14px; line-height: 1.6; }
.content-grid { display: grid; gap: 18px; margin-bottom: 22px; }
.section-card { padding: 28px; }
.section-card h2 { margin: 0 0 14px; font-size: 24px; letter-spacing: -0.03em; }
.section-card p { margin: 0 0 14px; color: var(--text-muted); line-height: 1.72; }
.section-card ul { margin: 0; padding-left: 20px; color: var(--text-muted); line-height: 1.72; }
.section-card li + li { margin-top: 8px; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 10px;
}
.mini-card {
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(var(--accent-blue-rgb), 0.08), rgba(255,255,255,0.96));
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}
.mini-card h3 { margin: 0 0 8px; font-size: 18px; }
.mini-card .meta { margin-bottom: 10px; color: var(--primary); font-size: 13px; font-weight: 700; }
.mini-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.mini-card ul { margin-top: 10px; }
.mini-card-link {
    display: inline-flex;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.mini-card-link:hover { color: var(--primary-hover); }
.faq-stack { display: grid; gap: 12px; }
.faq-item {
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
}
.faq-item strong { display: block; margin-bottom: 8px; font-size: 16px; }
.faq-item p { margin: 0; color: var(--text-muted); }
.cta-card {
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin: 20px 0 40px;
}
.cta-card h2 { margin: 0 0 8px; font-size: 28px; }
.cta-card p { margin: 0; color: var(--text-muted); line-height: 1.7; max-width: 720px; }
footer {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 26px;
    padding: 32px 0 24px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}
footer h4 { margin: 0 0 12px; font-size: 14px; }
footer p, footer li, footer a, .footer-bottom { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
footer ul { margin: 0; padding: 0; list-style: none; }
footer li + li { margin-top: 8px; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-top: 16px; border-top: 1px solid rgba(var(--primary-rgb), 0.1); }
.locale-switch select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: transparent; }
body.mobile-menu-open { overflow: hidden; }
body.page-nav-open { overflow: hidden; }
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-muted);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.mobile-menu-close:hover {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
}
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.mobile-menu-nav a {
    font-size: 20px;
    font-weight: 600;
}
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 240px;
}
.mobile-menu-actions .btn {
    justify-content: center;
    text-align: center;
}
.mobile-menu-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}
body.dark-mode {
    --bg-body: #0d0f1e;
    --bg-card: rgba(22, 24, 48, 0.95);
    --bg-soft: #13152b;
    --text-main: #e8e6ff;
    --text-muted: #9896b8;
    --border: rgba(120, 110, 200, 0.18);
    background-image:
        radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.18), transparent 34%),
        linear-gradient(180deg, rgba(13, 15, 30, 0.94), rgba(13, 15, 30, 1) 100%);
}
body.dark-mode header {
    background: rgba(18, 20, 42, 0.88);
}
body.dark-mode .btn-outline {
    background: rgba(255, 255, 255, 0.07);
    color: #e0ddff;
}
body.dark-mode .hamburger-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e0ddff;
}
body.dark-mode .header-user-pill {
    color: #e0ddff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e0ddff;
}
body.dark-mode .site-language-switch summary,
body.dark-mode .site-language-menu {
    background: rgba(20, 26, 45, 0.98);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e7e9ff;
}
body.dark-mode .site-language-option {
    color: #c4d4f6;
}
body.dark-mode .site-language-option:hover,
body.dark-mode .site-language-option.is-active {
    color: #93c5fd;
    background: rgba(147, 197, 253, 0.12);
}
body.dark-mode .mobile-menu {
    background: rgba(14, 16, 32, 0.97);
}
body.dark-mode .mobile-menu-nav a,
body.dark-mode .mobile-menu-logout-link {
    color: #c4d4f6;
}
body.dark-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}
body.dark-mode .mini-card,
body.dark-mode .faq-item {
    background: rgba(22, 24, 48, 0.9);
}
body.dark-mode .notice {
    background: rgba(245, 158, 11, 0.14);
    color: #ffd28a;
}

/* Shared static page animations */
@keyframes security-status-pulse {
    0% {
        opacity: 0.7;
        transform: scale(0.92);
    }
    70% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(0.92);
    }
}

@keyframes status-frame-pulse {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 0 22px rgba(59, 130, 246, 0.1);
        opacity: 0.56;
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 0 42px rgba(59, 130, 246, 0.2);
        opacity: 0.9;
    }
}

@keyframes status-orbit-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes status-log-enter {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shared mobile page shell and legacy page navigation */
@media (max-width: 920px) {
    .container {
        padding: 0 10px 32px;
    }

    .terms-shell {
        margin-top: 22px;
        padding: 24px;
        border-radius: 30px;
    }
    .terms-shell::after {
        border-radius: 30px;
    }
    .terms-timeline-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .terms-timeline-track .terms-timeline-card:nth-child(2)::after,
    .terms-timeline-track .terms-timeline-card:last-child::after {
        display: none;
    }
    .terms-card-grid,
    .terms-acceptance-band {
        grid-template-columns: 1fr;
    }
    .terms-summary-pane {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.18);
    }
    .terms-contract-card--critical .terms-summary-pane {
        border-top-color: rgba(212, 139, 18, 0.22);
    }
    .terms-glossary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .privacy-shell {
        margin-top: 22px;
        padding: 24px;
        border-radius: 30px;
    }
    .privacy-shell::after {
        border-radius: 30px;
    }
    .privacy-hero,
    .privacy-contact-band,
    .privacy-split-section {
        grid-template-columns: 1fr;
    }
    .privacy-lifecycle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .privacy-data-grid,
    .privacy-analytics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .privacy-rights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-shell {
        margin-top: 22px;
        padding: 24px;
        border-radius: 30px;
    }
    .status-shell::after {
        border-radius: 30px;
    }
    .status-hero {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .status-health-panel {
        grid-template-columns: minmax(156px, 188px) minmax(0, 1fr);
        padding: 22px;
    }
    .status-health-orbit {
        width: 176px;
        height: 176px;
    }
    .status-health-core {
        width: 126px;
        height: 126px;
    }
    .status-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .status-bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .status-node-card,
    .status-node-card--large {
        grid-column: span 1;
    }
    .status-node-card--wide {
        grid-column: span 1;
    }
    .status-bottom-grid {
        grid-template-columns: 1fr;
    }

    .security-hero-surface {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 22px;
        padding: 38px 28px;
    }
    .security-hero-visual {
        min-height: 320px;
    }
    .security-shield-stack {
        width: 280px;
        height: 280px;
    }
    .security-shield-core {
        width: 150px;
        height: 150px;
    }
    .security-layer-stack {
        right: 12px;
        bottom: 14px;
    }
    .security-pillar-grid,
    .security-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .security-deep-dive-shell,
    .security-bottom-strip {
        grid-template-columns: 1fr;
        display: grid;
    }
    .security-tab-list {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .security-tab-button {
        white-space: nowrap;
    }
    .security-bottom-actions {
        justify-content: flex-start;
    }

    .page-nav-fab {
        position: fixed;
        left: 12px;
        bottom: 14px;
        z-index: 116;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 0 16px;
        color: var(--accent-blue);
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(148, 163, 184, 0.24);
        border-radius: 999px;
        box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.3);
        font: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .page-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: block;
        background: rgba(15, 23, 42, 0.32);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .page-nav-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .page-nav-drawer {
        position: fixed !important;
        top: 76px;
        left: 10px;
        bottom: 14px;
        z-index: 115;
        width: min(320px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 90px);
        overflow: auto;
        transform: translateX(calc(-100% - 18px));
        transition: transform 0.22s ease;
        pointer-events: none;
    }

    .page-nav-drawer.is-mobile-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .page-nav-drawer-close {
        position: sticky;
        top: 0;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 12px 12px 0 auto;
        color: var(--text-muted);
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 999px;
        cursor: pointer;
    }

    .hero, .cta-card, footer, .footer-bottom { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
    .hero { display: grid; }
    .footer-bottom { display: flex; }
    header {
        top: 0;
        gap: 10px;
        margin-top: 0;
        padding: 12px 10px;
        flex-direction: row;
        align-items: center;
    }
    nav {
        display: none;
    }
    .hamburger-btn {
        display: inline-flex;
    }
    .header-actions {
        width: auto;
        margin-left: auto;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .header-actions .btn {
        width: auto;
    }
    .header-actions .btn-outline,
    .header-user-pill {
        display: none;
    }

    .header-actions .btn-primary[href="/auth/logout.php"] {
        display: none;
    }

    .docs-shell {
        display: block;
        min-height: 0;
        margin: 24px 0 36px;
        border-radius: 24px;
        overflow: hidden;
    }
    .docs-nav-panel {
        max-height: calc(100vh - 90px);
        overflow: auto;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 24px;
    }
    .docs-main-panel {
        min-width: 0;
        max-width: 100%;
        border-radius: 24px;
        overflow-x: clip;
    }
    .docs-nav-inner {
        position: static;
        padding-top: 8px;
    }
    .docs-layout {
        min-width: 0;
        max-width: 100%;
        padding: 22px 18px 40px;
        overflow-x: clip;
    }
    .docs-topbar {
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        max-width: 100%;
        padding: 18px;
    }
    .docs-search-shell {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .docs-breadcrumbs,
    .docs-article,
    .faq-page-grid,
    .faq-main-column,
    .faq-hero-card,
    .faq-search-shell,
    .faq-accordion,
    .faq-accordion-item {
        min-width: 0;
        max-width: 100%;
    }
    .faq-page-grid {
        display: block;
    }
    .faq-sidebar {
        gap: 14px;
        padding: 12px;
        background: #ffffff;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 24px;
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
    }
    .faq-search-shell {
        width: 100%;
        max-width: 100%;
        min-height: 64px;
        padding: 0 16px;
    }
    .faq-toolbar {
        position: sticky;
        top: 76px;
        z-index: 8;
        align-items: stretch;
        padding: 10px 0 12px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 72%, rgba(255, 255, 255, 0) 100%);
        backdrop-filter: blur(10px);
    }
    .faq-category-list {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .faq-category-pill {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .faq-results-meta {
        width: 100%;
    }
    .faq-accordion-summary {
        align-items: flex-start;
    }
    .faq-accordion-icon {
        margin-top: 2px;
    }
    .faq-accordion-title {
        font-size: 19px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 6px 24px;
    }

    .terms-shell {
        margin-top: 18px;
        padding: 18px;
        border-radius: 24px;
    }
    .terms-shell::after {
        border-radius: 24px;
    }
    .terms-hero-copy h1 {
        font-size: clamp(36px, 12vw, 52px);
    }
    .terms-hero-intro,
    .terms-section-head p,
    .terms-timeline-card p,
    .terms-summary-pane p,
    .terms-summary-note,
    .terms-glossary-tip p,
    .terms-legal-pane p,
    .terms-legal-list li,
    .terms-signature-check {
        font-size: 15px;
    }
    .terms-timeline-track,
    .terms-glossary-grid {
        grid-template-columns: 1fr;
    }
    .terms-timeline-card,
    .terms-legal-pane,
    .terms-summary-pane,
    .terms-glossary-item,
    .terms-acceptance-band {
        padding: 22px 18px;
        border-radius: 24px;
    }
    .terms-summary-pane {
        order: -1;
    }
    .terms-summary-top {
        align-items: flex-start;
    }
    .terms-glossary-tip {
        position: static;
        margin-top: 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }
    .terms-acceptance-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .terms-acceptance-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .privacy-shell {
        margin-top: 18px;
        padding: 18px;
        border-radius: 24px;
    }
    .privacy-shell::after {
        border-radius: 24px;
    }
    .privacy-hero-copy h1 {
        font-size: clamp(36px, 12vw, 52px);
    }
    .privacy-hero-intro,
    .privacy-section-head p,
    .privacy-lifecycle-card p,
    .privacy-data-card p,
    .privacy-summary-card p,
    .privacy-right-card p,
    .privacy-contact-band p,
    .privacy-contact-note,
    .privacy-legal-card p,
    .privacy-legal-list li {
        font-size: 15px;
    }
    .privacy-hero-panel,
    .privacy-lifecycle-card,
    .privacy-data-card,
    .privacy-summary-card,
    .privacy-legal-card,
    .privacy-right-card,
    .privacy-contact-band {
        padding: 22px 18px;
        border-radius: 24px;
    }
    .privacy-lifecycle-grid,
    .privacy-data-grid,
    .privacy-analytics-grid,
    .privacy-rights-grid,
    .privacy-contact-meta-grid {
        grid-template-columns: 1fr;
    }
    .privacy-contact-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .privacy-contact-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .status-shell {
        margin-top: 18px;
        padding: 18px;
        border-radius: 24px;
    }
    .status-shell::after {
        border-radius: 24px;
    }
    .status-hero-copy h1 {
        font-size: clamp(36px, 12vw, 52px);
    }
    .status-hero-intro,
    .status-section-head p,
    .status-node-text,
    .status-timeline-item p,
    .status-support-card p,
    .status-health-copy p {
        font-size: 15px;
    }
    .status-hero-chips,
    .status-support-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .status-chip,
    .status-support-card .btn,
    .status-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .status-health-panel,
    .status-timeline-card,
    .status-log-card,
    .status-support-card {
        padding: 22px 18px;
        border-radius: 24px;
    }
    .status-health-panel {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .status-health-orbit {
        width: 188px;
        height: 188px;
    }
    .status-health-core {
        width: 136px;
        height: 136px;
    }
    .status-health-value {
        font-size: 29px;
    }
    .status-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .status-stat-grid .status-stat-card:last-child {
        grid-column: 1 / -1;
    }
    .status-node-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .status-bento-grid {
        grid-template-columns: 1fr;
    }
    .status-node-card,
    .status-node-card--large,
    .status-node-card--wide {
        grid-column: auto;
        padding: 22px 18px;
        border-radius: 24px;
    }
    .status-log-list {
        min-height: 0;
    }
    .status-timeline {
        padding-left: 26px;
    }
    .status-timeline-node {
        left: -26px;
    }

    .security-hero-surface {
        margin-top: 18px;
        padding: 28px 18px;
        border-radius: 26px;
    }
    .security-hero-surface h1 {
        font-size: clamp(38px, 12vw, 54px);
    }
    .security-hero-intro,
    .security-section-head p,
    .security-pillar-card p,
    .security-tab-card p,
    .security-contact-card p,
    .security-bottom-strip p {
        font-size: 15px;
    }
    .security-hero-points,
    .security-contact-actions,
    .security-status-services,
    .security-bottom-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .security-hero-point,
    .security-layer-chip,
    .security-status-service,
    .security-tab-button,
    .security-link-button,
    .security-contact-button {
        width: 100%;
        justify-content: center;
    }
    .security-hero-visual {
        min-height: 260px;
    }
    .security-shield-stack {
        width: 232px;
        height: 232px;
    }
    .security-shield-ring--mid {
        inset: 30px;
    }
    .security-shield-core {
        width: 128px;
        height: 128px;
        border-radius: 28px;
    }
    .security-layer-stack {
        position: static;
        width: 100%;
        margin-top: 18px;
        justify-items: stretch;
    }
    .security-pillar-grid,
    .security-trust-grid {
        grid-template-columns: 1fr;
    }
    .security-pillar-card,
    .security-tab-card,
    .security-status-card,
    .security-contact-card,
    .security-bottom-strip {
        padding: 22px 18px;
        border-radius: 24px;
    }
    .security-status-line {
        font-size: 24px;
    }

    .page-nav-fab {
        left: 8px;
        bottom: 10px;
        min-height: 44px;
        padding: 0 14px;
    }

    .page-nav-drawer {
        top: 68px;
        left: 6px;
        bottom: 10px;
        width: min(320px, calc(100vw - 12px));
        max-width: calc(100vw - 12px);
        max-height: calc(100vh - 78px);
    }

    .docs-shell {
        margin-top: 16px;
        border-radius: 18px;
    }
    .docs-nav-inner,
    .docs-topbar,
    .docs-layout {
        padding-left: 14px;
        padding-right: 14px;
    }
    .docs-nav-panel {
        border-radius: 18px 18px 0 0;
    }
    .docs-main-panel {
        border-radius: 0 0 18px 18px;
    }
    .docs-topbar,
    .docs-layout,
    .docs-nav-inner {
        padding-left: 12px;
        padding-right: 12px;
    }
    .hero-card,
    .info-card,
    .section-card,
    .cta-card {
        padding-left: 16px;
        padding-right: 16px;
    }
    .faq-hero {
        padding-top: 24px;
    }
    .faq-hero-card {
        padding: 30px 16px 24px;
        border-radius: 24px;
    }
    .faq-search-shell {
        min-height: 60px;
        padding: 0 14px;
    }
    .docs-nav-intro p {
        display: none;
    }
    .docs-tree {
        gap: 14px;
        margin-top: 18px;
    }
    .docs-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .docs-nav-link {
        padding: 10px 12px;
        background: #f8fafc;
    }
    .docs-h2 {
        font-size: 28px;
    }
    .docs-h3 {
        font-size: 21px;
    }
    .docs-article-header h1 {
        font-size: clamp(34px, 11vw, 46px);
    }
    .docs-article-header p,
    .docs-section p,
    .docs-subsection p {
        font-size: 15px;
    }
    .docs-callout,
    .docs-code-block,
    .docs-empty-state {
        padding-left: 14px;
        padding-right: 14px;
    }
    .faq-hero-card {
        padding: 28px 14px 24px;
        border-radius: 24px;
    }
    .faq-hero-card p,
    .faq-accordion-answer p {
        font-size: 15px;
    }
    .faq-category-list {
        gap: 8px;
    }
    .faq-toolbar {
        top: 68px;
        gap: 12px;
        padding: 8px 0 10px;
    }
    .faq-results-meta {
        width: 100%;
        font-size: 13px;
    }
    .faq-accordion-summary,
    .faq-accordion-answer,
    .faq-sidebar-card,
    .faq-support-card,
    .faq-empty-state {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@keyframes contact-copy-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.04); }
    100% { transform: scale(1); }
}
