/* 独立法律文档沿用站点字体，仅加载阅读所需样式。 */
@font-face {
    font-family: "PingFangSC";
    src: url('../font/PingFangSC-Regular.woff2') format('woff2');
    font-display: swap;
}
body[data-page="legal"] {
    margin: 0;
    background: #f5f8fd;
    color: #333;
    font-family: "PingFangSC", "Microsoft YaHei", sans-serif;
}
.legal-page *, .legal-page *::before, .legal-page *::after { box-sizing: border-box; }
/* 1920px 基准：容器 1440px（含内边距），上下 60px、左右 120px。 */
.legal-document {
    width: 75%;
    margin: 0 auto;
    padding: 3.125vw 6.25vw;
    background: #fff;
    font-size: max(16px, 1.458333vw);
    line-height: 2;
    overflow-wrap: anywhere;
}
.legal-logo {
    display: block;
    width: 11.40625vw;
    height: auto;
    margin-left: auto;
}
.legal-document h1 {
    margin: 7.1875vw 0 8.333333vw;
    color: #333;
    font-size: 4.166667vw;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}
/* 章节保留设计稿留白；不固定高度，正文增行时后续内容自然下移。 */
.legal-section + .legal-section { margin-top: 12.5vw; }
.legal-section:nth-of-type(2) { margin-top: 9.583333vw; }
.legal-section:nth-of-type(3) { margin-top: 9.739583vw; }
.legal-section:nth-of-type(4) { margin-top: 9.427083vw; }
.legal-section:nth-of-type(6) { margin-top: 10.9375vw; }
.legal-section:nth-of-type(7) { margin-top: 11.145833vw; }
.legal-section h2 {
    margin: 0 0 4.166667vw;
    color: #0056e7;
    font-size: 2.395833vw;
    font-weight: 600;
    line-height: 1.304348;
}
.legal-section h3 {
    margin: 4.166667vw 0 2.083333vw;
    font-size: 1.666667vw;
    font-weight: 500;
    line-height: 1;
}
/* 仅加粗知识产权分类标题，保留其他小标题字重。 */
.legal-section h3.legal-heading-bold { font-weight: 700; }
.legal-section p { margin: 0; text-align: justify; text-indent: 2em; }
.legal-section p + p { margin-top: 2.916667vw; }
/* 指定说明段取消顶部间距，覆盖桌面及小屏的段落间距。 */
.legal-section p + p.legal-no-top-gap { margin-top: 0; }
.legal-section:nth-of-type(5) > p:first-of-type { font-weight: 500; }
/* 保留隐私政策、电话及邮箱入口，键盘操作时显示焦点。 */
.legal-document a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.legal-document a:hover { color: #0056e7; }
.legal-document a:focus-visible { outline: 2px solid #0056e7; outline-offset: 3px; }
.legal-updated { margin: 8.333333vw 0 0; color: #999; font-size: 1.25vw; text-align: right; }
/* 平板扩大可读区域并设置字号下限，避免随 vw 缩小而难以阅读。 */
@media screen and (max-width: 1024px) {
    .legal-document { width: calc(100% - 48px); padding: 32px 40px; }
    .legal-logo { width: 150px; }
    .legal-document h1 { margin: 64px 0 72px; font-size: 36px; line-height: 1.4; }
    .legal-section + .legal-section { margin-top: 72px; }
    .legal-section h2 { margin-bottom: 32px; font-size: 26px; line-height: 1.5; }
    .legal-section h3 { margin: 32px 0 20px; font-size: 21px; line-height: 1.5; }
    .legal-section p + p { margin-top: 24px; }
    .legal-updated { margin-top: 64px; font-size: 14px; }
}
/* 手机减少边距，长标题与联系方式自动换行，保留双倍正文行高。 */
@media screen and (max-width: 600px) {
    .legal-document { width: calc(100% - 24px); padding: 24px 20px; }
    .legal-logo { width: 120px; }
    .legal-document h1 { margin: 48px 0; font-size: 28px; }
    .legal-section + .legal-section { margin-top: 48px; }
    .legal-section h2 { margin-bottom: 24px; font-size: 22px; }
    .legal-section h3 { margin: 28px 0 16px; font-size: 18px; }
    .legal-section p + p { margin-top: 20px; }
    .legal-updated { margin-top: 48px; }
}
