/* Content pages — privacy, support. Same ink, bone and gold as the landing
   page and the app, so a legal page reads as part of iMoney rather than as
   a document someone parked on a static host.
   Palette values are kept identical to assets/card.css on purpose. */
:root {
  --ink: #0b0b0c; --ink-raised: #161617; --bone: #f4f1ea;
  --bone-dim: #a8a49c; --bone-faint: #6f6c66;
  --accent: #d9b36a; --hairline: rgba(244,241,234,.12);
}

/* Ink only, deliberately. The rest of the site has one look; a legal page
   that flips to white in light mode reads as somebody else's page. */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  background: var(--ink); color: var(--bone);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
               "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { max-width: 640px; margin: 0 auto; padding: 28px 24px 40px; }

/* Header matches the landing page's: mark, wordmark, nothing else. */
header.site { display: flex; align-items: center; gap: 9px; margin-bottom: clamp(52px, 12vh, 104px); }
header.site a { color: var(--bone); text-decoration: none; font-weight: 600;
                font-size: 17px; letter-spacing: -.2px; border-bottom: 0; }
/* Direct child only. `header.site a::before` also matched the language link
   and stamped a second logo next to 繁體中文. */
header.site > a::before {
  content: ""; display: inline-block; vertical-align: -5px; margin-right: 9px;
  width: 22px; height: 26px;
  background: url("/assets/logo-mark.png") center/contain no-repeat;
}
header.site span { color: var(--bone-faint); font-size: 14px; }
header.site span a { font-size: 14px; font-weight: 500; color: var(--bone-faint); }

h1 { font-size: clamp(34px, 6vw, 46px); font-weight: 700; letter-spacing: -1.4px;
     line-height: 1.1; margin-bottom: 10px; }
.updated { color: var(--bone-faint); font-size: 14px; margin-bottom: clamp(36px, 6vh, 56px); }

/* The opening line carries the whole document's tone — set it like a lede,
   not like body copy. */
p.lede { color: var(--bone); font-size: clamp(18px, 2.4vw, 21px); line-height: 1.55;
         letter-spacing: -.2px; margin-bottom: 8px; }

h2 { font-size: 21px; font-weight: 650; letter-spacing: -.4px; line-height: 1.3;
     margin: clamp(44px, 7vh, 68px) 0 14px; }
/* A hairline above each section does the work a heavier heading would, and
   keeps a long policy scannable without shouting. */
h2::before {
  content: ""; display: block; width: 28px; height: 1px;
  background: var(--accent); opacity: .55; margin-bottom: 18px;
}

p, li { color: var(--bone-dim); font-size: 16.5px; }
p + p { margin-top: 14px; }
p strong, li strong, td strong { color: var(--bone); font-weight: 600; }

ul { padding-left: 4px; margin: 14px 0; list-style: none; }
li { margin: 10px 0; padding-left: 20px; position: relative; }
li::before { content: ""; position: absolute; left: 2px; top: 12px;
             width: 5px; height: 5px; border-radius: 50%;
             background: var(--bone-faint); }

a { color: var(--accent); text-decoration: none;
    border-bottom: 1px solid rgba(217,179,106,.35); }
a:hover { border-bottom-color: var(--accent); }

/* The summary table reads as a spec sheet: no grid, just rows. */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--hairline);
         color: var(--bone-dim); vertical-align: top; font-size: 15.5px; }
th { color: var(--bone); font-weight: 600; width: 34%; padding-right: 22px; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.card { background: var(--ink-raised); border: 1px solid var(--hairline);
        border-radius: 18px; padding: 22px; margin: 22px 0; }

.pill { display: inline-block; background: var(--bone); color: var(--ink);
        font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 999px;
        text-decoration: none; margin-top: 14px; border: 0; }
.pill:hover { border: 0; }

footer { margin-top: clamp(64px, 12vh, 110px); padding-top: 22px;
         border-top: 1px solid var(--hairline);
         color: var(--bone-faint); font-size: 13px; }
footer a { color: var(--bone-faint); border-bottom: 0; }
footer a:hover { color: var(--bone-dim); }

@media (max-width: 560px) {
  th { width: 42%; padding-right: 14px; }
  th, td { font-size: 14.5px; }
}
