.document { padding-block: 56px 76px; }
.page-title { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.page-title h1 { max-width: 25ch; font-size: clamp(2.15rem, 5vw, 3.55rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 710; text-wrap: balance; }
.page-intro, .effective-date { color: var(--muted); margin-top: 12px; }
.effective-date { font-size: .9rem; }
.document-grid { display: grid; grid-template-columns: minmax(154px, 224px) minmax(0, 744px); gap: clamp(24px, 5vw, 72px); align-items: start; }
.document-single { max-width: 744px; }
.page-toc { position: sticky; top: 24px; border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
.toc-title { font-size: .92rem; font-weight: 650; }
.page-toc ul { padding: 0; margin: 8px 0 0; list-style: none; }
.page-toc li + li { margin-top: 5px; }
.page-toc a { display: inline-block; padding-block: 2px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.page-toc a:hover { color: var(--accent); text-decoration: underline; }
.prose { line-height: 1.72; min-width: 0; overflow-wrap: break-word; }
.prose :where(p, ul, ol) { margin-block: 0 12px; }
.prose :where(ul, ol) { padding-inline-start: 1.35em; }
.prose li + li { margin-top: 4px; }
.prose h2 { margin: 28px 0 10px; font-size: clamp(1.24rem, 2.6vw, 1.6rem); line-height: 1.3; }
.prose h3 { margin: 16px 0 7px; font-size: 1.06rem; line-height: 1.42; }
.prose > :first-child, .prose > div:first-child > :first-child, .prose .section > :first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration-color: currentColor; overflow-wrap: anywhere; }
.prose [id] { scroll-margin-top: 20px; }
.prose .section { padding-bottom: 16px; }
.prose .section + .section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }
.faq-item, .faq { margin-block: 12px 16px; }
.faq-item strong { display: block; margin-bottom: 4px; }
.prose :where(.payment-highlight, .urgent-notice, .warning-box, .error-type, .tip, .important, .success) {
  background: #eeeae4;
  border-inline-start: 3px solid #a99f93;
  border-radius: 0 7px 7px 0;
  padding: 12px 16px;
  margin-block: 12px 16px;
}
.prose :where(.payment-highlight, .urgent-notice) { border-color: var(--accent); }
.prose :where(.payment-highlight, .urgent-notice) h2 { margin-top: 0; }
.prose :where(.warning-box, .tip, .important, .success, .urgent-notice, .payment-highlight) > :last-child { margin-bottom: 0; }
.payment-page .step + .step { border-top: 1px solid var(--line); margin-top: 16px; }
.document-note, .copyright { color: var(--muted); font-size: .875rem; }
.copyright { padding-bottom: 16px; }
.nav [aria-current="page"], .footer-links [aria-current="page"] { color: var(--ink); text-decoration: underline; }
@media (max-width: 700px) {
  .document { padding-block: 36px 48px; }
  .page-title { padding-bottom: 20px; margin-bottom: 24px; }
  .document-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-toc { position: static; }
}

.support-page .page-title { margin-bottom: 36px; }
.support-page .page-intro { max-width: 38rem; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.support-layout h2 { font-size: 1.35rem; line-height: 1.3; }
.support-faq { margin-top: 16px; border-top: 1px solid var(--line); }
.support-faq details { border-bottom: 1px solid var(--line); }
.support-faq summary { position: relative; display: block; cursor: pointer; font-weight: 650; padding: 16px 28px 16px 0; list-style: none; }
.support-faq summary::-webkit-details-marker { display: none; }
.support-faq summary::after { content: '+'; position: absolute; inset-inline-end: 4px; color: var(--accent); }
.support-faq details[open] summary::after { content: '−'; }
.support-faq p, .support-aside p { color: var(--muted); }
.support-faq p { padding: 0 28px 16px 0; }
.support-page main a, .support-layout a { color: var(--accent); text-decoration-color: currentColor; }
.support-aside { background: #eeebe6; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.support-aside h2 { font-size: 1.08rem; }
.support-aside p { margin: 6px 0 8px; }
.support-aside a { font-weight: 620; }
.support-aside section + section, .support-aside .support-about { display: block; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
@media (max-width: 700px) {
  .support-layout { grid-template-columns: 1fr; gap: 28px; }
}

.permission-guide { margin-bottom: 36px; }
.permission-guide > p { color: var(--muted); margin-top: 6px; }
.permission-guide dl { margin: 16px 0 0; border-top: 1px solid var(--line); }
.permission-guide dt { padding-top: 12px; font-weight: 650; }
.permission-guide dd { margin: 3px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.permission-guide dd p + p { margin-top: 4px; }
.permission-path { color: var(--muted); font-size: .9rem; }
.permission-example { margin-top: 8px; }
.permission-example summary { cursor: pointer; color: var(--accent); font-size: .95rem; font-weight: 620; }
.permission-example figure { margin-top: 8px; }
.permission-example img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.permission-example figcaption { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.permission-guide .permission-note { margin-top: 12px; }

.page-title h1 { font-family: ui-rounded, "Avenir Next", "PingFang SC", sans-serif; }
.support-page .page-title { border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 40px); background: #f5ecdf; }
.support-page .page-title h1 { color: var(--accent); }
.support-page .support-aside { background: #f5ecdf; border-radius: 16px; }
.support-faq details[open] summary, .permission-guide .permission-example summary { color: var(--accent); }
