/* 隐私政策、服务条款和 404：读文字的页面。正文窄、行高大，只有"记下什么"那张表比正文宽。 */
.legal { padding-top: 48px; padding-bottom: 96px; font-family: var(--read); font-size: 15px; line-height: 1.8; }
.doc { max-width: 760px; }
.doc h1, .doc p, .doc ul, .toc { max-width: 38em; }
.doc h1 { font: 600 40px/1.15 var(--title); margin-bottom: 6px; }
.doc .date { color: var(--muted); font-size: 14px; }
.doc .sum { margin-top: 20px; }
.doc code { font: inherit; font-weight: 600; }
.doc a { color: var(--accent-text); text-underline-offset: 3px; }

.toc { margin-top: 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc h2 { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.toc ol { list-style: none; columns: 2; column-gap: 32px; font-size: 14px; line-height: 1.9; }
.doc .toc a { color: var(--text); text-decoration: none; }
.doc .toc a:hover { color: var(--accent-text); text-decoration: underline; }

.doc section { margin-top: 44px; scroll-margin-top: 80px; }
.doc section h2 { font: 600 18px/1.3 var(--display); margin-bottom: 10px; }
.doc .anchor { color: var(--muted); text-decoration: none; margin-left: 6px; opacity: 0; font-size: 15px; }
.doc section h2:hover .anchor, .doc .anchor:focus-visible { opacity: 1; }
.doc section p { margin-bottom: 10px; }
.doc ul.plain { padding-left: 1.2em; }
.doc ul.plain li { margin: 4px 0; }
.doc ul.plain li::marker { color: var(--muted); }

/* 记下什么：三列，比正文宽一些 */
.data { width: min(760px, 100%); border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.data th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line); }
.data td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.data td:first-child { font-weight: 600; width: 32%; }
.data td:first-child small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.data td:last-child { color: var(--muted); width: 28%; }
.data .removed { display: none; }

/* 404：贴纸在左，文字在右 */
.nf { display: grid; grid-template-columns: 180px minmax(0, 32em); gap: 32px; align-items: center; padding: 40px 0 24px; }
.nf img { width: 180px; height: 180px; object-fit: contain; }
.nf h1 { font: 600 40px/1.15 var(--title); margin-bottom: 8px; }
.nf p { color: var(--muted); margin-bottom: 6px; }
.nf .path { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.nf .sugg { margin-top: 14px; color: var(--text); }
.nf .sugg a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }
.nf .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.nf .btn { font-size: 15px; padding: 10px 18px; }

@media (max-width: 640px) {
    .legal { padding-top: 28px; padding-bottom: 80px; }
    .doc h1, .nf h1 { font-size: 32px; }
    .toc ol { columns: 1; }
    .data thead { display: none; }
    .data, .data tbody, .data tr, .data td { display: block; }
    .data tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .data td, .data td:first-child, .data td:last-child { border: 0; padding: 2px 0; width: auto; }
    .data .removed { display: inline; }
    .nf { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 8px; }
    .nf img { width: 120px; height: 120px; }
}
