/* ==============================================
   STANDALONE PAGE SHELLS
   Shared contracts for non-SPA pages. Keep page-specific
   selectors as compatibility aliases until inline styles move here.
   ============================================== */

.standalone-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--line-height-normal);
}

.standalone-doc-page {
    overflow-x: hidden;
    overflow-y: auto;
    user-select: text;
    -webkit-user-select: text;
}

.standalone-shell {
    width: 100%;
    min-height: 100vh;
}

.standalone-centered-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.standalone-centered-panel {
    width: 100%;
    max-width: 400px;
}

:is(.standalone-doc-container, .policy-container, .support-container) {
    width: 100%;
    max-width: 800px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--bg-primary);
    box-sizing: border-box;
    user-select: text;
    -webkit-user-select: text;
}

:is(.standalone-doc-header, .policy-header, .support-header) {
    margin-bottom: 40px;
    text-align: center;
}

:is(.standalone-doc-header, .policy-header, .support-header) h1 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: var(--text-xl);
    line-height: var(--line-height-tight);
}

:is(.standalone-doc-section, .policy-section, .support-section) {
    border-radius: var(--radius-standard);
    padding: 24px;
    margin-bottom: 24px;
    background-color: transparent;
    border: none;
}

:is(.standalone-doc-updated, .last-updated) {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

:is(.standalone-doc-section, .policy-section, .support-section) h2 {
    display: block;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-tight);
}

:is(.standalone-doc-section, .policy-section, .support-section) h3 {
    margin-top: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: var(--font-weight-regular);
}

:is(.standalone-doc-section, .policy-section, .support-section) p,
:is(.standalone-doc-section, .policy-section, .support-section) li {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: var(--text-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
}

:is(.standalone-doc-section, .policy-section, .support-section) a {
    color: var(--status-info-fg);
}

:is(.standalone-doc-section, .policy-section, .support-section) a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    :is(.standalone-doc-container, .policy-container) {
        padding: 24px 16px;
    }

    .support-container {
        padding: 20px 15px;
    }

    .policy-header h1 {
        font-size: var(--text-xl);
    }

    .policy-header .last-updated {
        font-size: var(--text-xs);
    }

    .policy-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .policy-section h2 {
        font-size: var(--text-base);
        margin-bottom: 16px;
    }

    .policy-section h3 {
        font-size: var(--text-sm);
        margin-top: 18px;
        margin-bottom: 12px;
    }

    .support-section {
        padding: 20px 0;
    }
}
