/* ==========================================================
   StockFlow · 通用页面
   404 页面、隐私 / 法律条款页
   ========================================================== */

/* ---------------- 404 page ---------------- */
.not-found {
    padding: 96px 0 112px;
    background: radial-gradient(circle at 50% 0%, rgba(102, 126, 234, .12), transparent 60%);
}

.not-found-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.not-found-code {
    margin-bottom: 8px;
    font-size: clamp(96px, 18vw, 168px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    background: linear-gradient(135deg, var(--stock-primary), var(--stock-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.not-found h1 {
    margin: 10px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.25;
}

.not-found-description {
    max-width: 620px;
    margin: 16px auto 32px;
    color: var(--stock-text-muted);
    line-height: 1.8;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.not-found-hint {
    margin: 32px auto 0;
    color: var(--stock-text-muted);
    font-size: .9rem;
    line-height: 1.8;
}

    .not-found-hint a {
        color: var(--stock-primary-dark);
        font-weight: 600;
        margin-left: 4px;
    }

/* ---------------- Privacy / legal content ---------------- */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-updated {
    display: inline-block;
    margin: 0 0 8px;
    padding-left: 12px;
    border-left: 3px solid var(--stock-primary);
    color: var(--stock-text-muted);
    font-size: .85rem;
}

.legal-content section {
    margin-top: 40px;
}

.legal-content h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 700;
}

.legal-content h3 {
    margin: 24px 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

.legal-content p {
    color: var(--stock-text-muted);
    line-height: 1.9;
}

.legal-content a {
    color: var(--stock-primary-dark);
    font-weight: 600;
}

.legal-content .btn {
    margin-top: 8px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 575.98px) {
    .not-found {
        padding: 72px 0 88px;
    }

    .not-found-actions .btn {
        width: 100%;
    }
}
