.legend-page .seo-content {
    margin: 44px auto 0;
    padding: 28px 32px;
    color: var(--text, #262626);
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 2px;
    overflow-wrap: anywhere;
}

.legend-page .seo-content-image {
    margin: 0 0 26px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--surface-alt, #f5f5f5);
}

.legend-page .seo-content-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
}

.legend-page .seo-content-body { font-size: 1rem; line-height: 1.8; }
.legend-page .seo-content-body > :first-child { margin-top: 0; }
.legend-page .seo-content-body > :last-child { margin-bottom: 0; }
.legend-page .seo-content-body p,
.legend-page .seo-content-body ul,
.legend-page .seo-content-body ol,
.legend-page .seo-content-body blockquote { margin: 0 0 18px; }

.legend-page .seo-content-body h2,
.legend-page .seo-content-body h3,
.legend-page .seo-content-body h4 {
    line-height: 1.3;
    color: var(--heading, var(--text, #222));
    font-weight: 700;
}
.legend-page .seo-content-body h2 { margin: 32px 0 14px; font-size: clamp(1.3rem, 2.5vw, 1.65rem); }
.legend-page .seo-content-body h3 { margin: 26px 0 12px; font-size: 1.2rem; }
.legend-page .seo-content-body h4 { margin: 22px 0 10px; font-size: 1.05rem; }
.legend-page .seo-content-body ul,
.legend-page .seo-content-body ol { padding-left: 24px; }
.legend-page .seo-content-body li + li { margin-top: 7px; }
.legend-page .seo-content-body a,
.legend-page .legend-reference a { color: var(--accent, #c52222); text-decoration: underline; text-underline-offset: 3px; }
.legend-page .seo-content-body a:hover,
.legend-page .legend-reference a:hover { text-decoration-thickness: 2px; }
.legend-page .seo-content-body strong { font-weight: 700; }
.legend-page .seo-content-body blockquote {
    padding: 12px 18px;
    border-left: 3px solid var(--accent, #c52222);
    background: var(--surface-alt, #f5f5f5);
}
.legend-page .seo-content-body img { display: block; max-width: 100%; height: auto; margin: 20px auto; }
.legend-page .seo-content-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 20px 0; }
.legend-page .seo-content-body th,
.legend-page .seo-content-body td { border: 1px solid var(--border, #ddd); padding: 9px 12px; text-align: left; }
.legend-page .seo-content-body th { background: var(--surface-alt, #f5f5f5); }
.legend-page .legend-reference {margin: 20px auto 0; font-size: .92rem; }

@media (max-width: 640px) {
    .legend-page .seo-content { margin-top: 30px; padding: 18px 16px; }
    .legend-page .seo-content-image { margin-bottom: 20px; }
    .legend-page .seo-content-body { font-size: .96rem; line-height: 1.7; }
}
