/* Attachment layout follows the existing policy typography. */
:root {
  color-scheme: light dark;
  --policy-bg: #ffffff;
  --policy-text: #1f2937;
  --policy-title: #111827;
  --policy-link: #2563eb;
  --policy-rule: #9ca3af;
  --policy-header: #f3f4f6;
  --policy-muted: #4b5563;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--policy-text);
  background: var(--policy-bg);
  line-height: 1.75;
}
main { min-height: 100vh; padding: 48px 20px; }
article { width: 100%; max-width: 880px; margin: 0 auto; }
.wide-document { max-width: 1120px; }
h1 { margin: 0 0 32px; font-size: 32px; line-height: 1.3; text-align: center; }
h2 { margin: 36px 0 16px; font-size: 22px; line-height: 1.45; }
h3 { margin: 28px 0 12px; font-size: 18px; line-height: 1.5; }
h1, h2, h3, strong, b { color: var(--policy-title); }
p { margin: 0 0 16px; }
a { color: var(--policy-link); text-decoration: underline; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
a:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--policy-link); outline-offset: 4px; }
ul, ol { margin: 0 0 16px 24px; padding: 0; }
li { margin-bottom: 8px; }
.revision-date { color: var(--policy-muted); }
.table-scroll { width: 100%; overflow-x: auto; margin-bottom: 24px; }
.policy-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.policy-table caption { text-align: left; font-weight: 650; padding-bottom: 12px; }
.policy-table th, .policy-table td { border: 1px solid var(--policy-rule); padding: 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.policy-table thead th { background: var(--policy-header); color: var(--policy-title); }
.policy-table tbody th { font-weight: 500; color: var(--policy-title); }
.policy-table p { margin: 0 0 12px; }
.policy-table p:last-child { margin-bottom: 0; }
.collection-table th:nth-child(1) { width: 16%; }
.collection-table th:nth-child(2) { width: 18%; }
.collection-table th:nth-child(3) { width: 34%; }
.collection-table th:nth-child(4) { width: 32%; }
.permission-table th:nth-child(1) { width: 26%; }
.permission-table th:nth-child(2) { width: 18%; }
.permission-table th:nth-child(3) { width: 56%; }
code { font-size: 0.9em; overflow-wrap: anywhere; }
.table-hint { display: none; color: var(--policy-muted); }
.return-link { margin-top: 32px; }
@media (max-width: 640px) {
  main { padding: 32px 16px; }
  h1 { margin-bottom: 24px; font-size: 28px; }
  h2 { margin-top: 30px; font-size: 20px; }
  h3 { font-size: 17px; }
  p, li, .policy-table { font-size: 15px; }
  .table-hint { display: block; }
}
@media (prefers-color-scheme: dark) {
  :root { --policy-bg: #17191d; --policy-text: #d5d8df; --policy-title: #f0f1f4; --policy-link: #93c5fd; --policy-rule: #6b7280; --policy-header: #242830; --policy-muted: #b9c0cc; }
}
@media print {
  main { padding: 0; }
  .table-scroll { overflow: visible; }
  .policy-table { min-width: 0; font-size: 10pt; }
  .return-link, .table-hint { display: none; }
}
