/* Apple-style layer for product sub-sites (拾行 legal pages).
   Load after the product stylesheet; it only restyles shared class names. */
:root {
  --a-bg: #ffffff;
  --a-bg-2: #f5f5f7;
  --a-ink: #1d1d1f;
  --a-ink-2: #424245;
  --a-muted: #6e6e73;
  --a-line: #d2d2d7;
  --a-blue: #0071e3;
  --a-link: #0066cc;
  --a-ease: cubic-bezier(.28,.11,.32,1);
}
html { font-size: 17px; }
body { margin: 0; background: var(--a-bg-2); color: var(--a-ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif; line-height: 1.47; letter-spacing: -.022em; -webkit-font-smoothing: antialiased; }
.wrap { width: min(1024px, calc(100% - 44px)); margin-inline: auto; }
h1, h2, h3 { font-family: inherit; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--a-blue); outline-offset: 3px; border-radius: 4px; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(251,251,253,.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.site-nav .nav-inner { min-height: 52px; gap: 20px; }
.site-nav .brand { gap: 8px; color: var(--a-ink); font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.site-nav .brand img { width: 26px; height: 26px; border-radius: 6px; }
.site-nav .brand span { display: none; }
.site-nav .nav-links { gap: 22px; font-size: .72rem; font-weight: 400; }
.site-nav .nav-links a { color: var(--a-ink); opacity: .8; }
.site-nav .nav-links a:hover { color: var(--a-ink); opacity: 1; }
.nav-cta, .site-nav .nav-cta { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px !important; border-radius: 999px; background: var(--a-blue) !important; color: #fff !important; opacity: 1 !important; font-size: .7rem; }

/* Legal / FAQ hero */
.legal-hero { padding: clamp(64px,8vw,110px) 0 clamp(36px,5vw,56px); background: transparent; border: 0; color: var(--a-ink); text-align: center; }
.legal-hero .eyebrow, .section-kicker { margin-bottom: 10px; color: var(--a-muted); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.legal-hero h1 { margin: 0 auto 12px; max-width: 820px; font-size: clamp(2.4rem,5.4vw,4rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; color: var(--a-ink); }
.legal-hero p, .legal-meta { margin: 0 auto; max-width: 680px; color: var(--a-muted); font-size: 1.05rem; }

/* Legal layout */
.legal-layout { display: grid; grid-template-columns: 200px minmax(0,780px); justify-content: center; gap: 56px; padding-bottom: clamp(90px,10vw,140px); }
.legal-toc { position: sticky; top: 84px; align-self: start; padding: 0; background: none; border: 0; }
.legal-toc strong { display: block; margin-bottom: 10px; color: var(--a-ink); font-size: .82rem; }
.legal-toc ul { margin: 0; padding: 0; list-style: none; }
.legal-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--a-line); color: var(--a-muted); font-size: .82rem; }
.legal-toc a:hover { color: var(--a-ink); border-color: var(--a-ink); }
.legal-content { padding: clamp(30px,5vw,60px); background: #fff; border: 0; border-radius: 28px; box-shadow: none; }
.legal-content h2 { margin: 44px 0 14px; padding: 0; border: 0; font-size: clamp(1.45rem,2.2vw,1.85rem); line-height: 1.2; scroll-margin-top: 80px; }
.legal-content section:first-child h2 { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--a-ink-2); line-height: 1.75; }
.legal-content a { color: var(--a-link); }
.legal-content a:hover { text-decoration: underline; }
.policy-badge { display: inline-flex; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: #e9f7ee; color: #1a7f45; font-size: .82rem; font-weight: 600; }
.callout, .notice { margin: 20px 0; padding: 18px 22px; background: var(--a-bg-2); border: 0; border-radius: 16px; color: var(--a-ink-2); line-height: 1.7; }

/* Plain sections (FAQ, English StepTrace legal) */
.section { padding: clamp(56px,7vw,96px) 0; background: transparent; }
main > .section:first-child .wrap > h1 { font-size: clamp(2.4rem,5.4vw,4rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; }
main > .section:first-child .wrap { max-width: 860px; }
main > .section:first-child .wrap > h2 { margin-top: 36px; font-size: 1.5rem; }
main > .section:first-child .wrap > p, main > .section:first-child .wrap li { color: var(--a-ink-2); line-height: 1.75; }

/* FAQ */
.faq-list { max-width: 860px; margin-inline: auto; padding: 8px clamp(20px,4vw,40px); background: #fff; border: 0; border-radius: 28px; }
.faq-list details { border: 0; border-bottom: 1px solid #e8e8ed; border-radius: 0; background: none; padding: 0; margin: 0; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { position: relative; min-height: 64px; padding: 20px 44px 20px 0; display: flex; align-items: center; list-style: none; cursor: pointer; color: var(--a-ink); font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .4s var(--a-ease); background: none; }
.faq-list details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq-list summary::before { content: none; }
.faq-answer { padding: 0 0 22px; color: var(--a-ink-2); line-height: 1.7; }
.faq-list details[open] .faq-answer { animation: a-fade .45s var(--a-ease); }
@keyframes a-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.cta-panel { max-width: 860px; margin-inline: auto; padding: clamp(28px,4vw,44px); background: #fff; border: 0; border-radius: 28px; color: var(--a-ink); text-align: center; }
.cta-panel h2 { margin: 0 0 8px; font-size: 1.6rem; color: var(--a-ink); }
.cta-panel p { color: var(--a-muted); }
.hero-actions { justify-content: center; }
.button, .button-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border: 0; border-radius: 999px; font-size: .94rem; font-weight: 400; }
.button-primary { background: var(--a-blue) !important; color: #fff !important; }
.button-primary:hover { background: #0077ed !important; }

/* Footer */
.site-footer { padding: 36px 0 22px; background: var(--a-bg-2); border-top: 1px solid var(--a-line); color: var(--a-muted); font-size: .72rem; }
.footer-grid { gap: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--a-line); }
.footer-brand .brand { color: var(--a-ink); font-size: .9rem; }
.footer-brand .brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand p { color: var(--a-muted); font-size: .72rem; }
.footer-col h3 { margin: 0 0 10px; color: var(--a-ink); font-size: .72rem; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--a-muted); font-size: .72rem; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--a-ink); text-decoration: underline; }
.footer-bottom { padding-top: 16px; border: 0; color: var(--a-muted); font-size: .7rem; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0,1fr); }
  .legal-toc { display: none; }
}
@media (max-width: 734px) {
  html { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .site-nav .nav-links li:not(:last-child) { display: none; }
  .legal-content, .faq-list, .cta-panel { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Neutralise legacy pill eyebrow and +/− FAQ glyphs from product stylesheets. */
.legal-hero .eyebrow { display: block; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.legal-hero .eyebrow::before { content: none; }
.faq-list summary::after, .faq-list details[open] summary::after { content: ""; top: 50%; right: 10px; font-size: 0; color: var(--a-ink); }
