/* Legal pages shared by both products (moved out of mymoney.css so SnapTidy's privacy
   policy and terms can use the same layout). Colours fall back to the SnapTidy theme where
   the My Money theme defines its own. */
/* Privacy, terms, support: the calculator's plain hero, then the product page's two-column
   lists in a white card. No scroll reveals: legal text is all there from the first paint.
   Chinese titles use the body face because the self-hosted display subset lacks some of
   these characters (it only matters where PingFang isn't installed). */
.legal-hero { padding: clamp(28px, 4vw, 52px) 0 clamp(28px, 3.6vw, 44px); }
.legal-h1 { font-family: var(--f-disp); font-size: clamp(38px, 5vw, 68px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.legal-lead { margin-top: 18px; max-width: 36em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; color: var(--ink-2); }
.legal-updated { margin-top: 14px; max-width: 46em; line-height: 1.6; }
.legal-doc, .legal-sec-last { padding-bottom: clamp(64px, 8vw, 110px); }
.legal-card { padding-inline: clamp(22px, 3.4vw, 44px); background: #fff; border-radius: 26px; box-shadow: var(--card-shadow, 0 12px 32px rgb(21 40 90 / .06)), 0 0 0 1px var(--line); }
.legal-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); padding-block: clamp(28px, 3.2vw, 40px); }
.legal-row + .legal-row { border-top: 1px solid var(--line); }
.legal-row h2 { position: sticky; top: 110px; align-self: start; font-family: var(--f-disp); font-size: clamp(19px, 1.7vw, 22px); font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
.legal-text { max-width: 42em; font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
:lang(zh-CN) .legal-h1, :lang(zh-CN) .legal .px-h2, :lang(zh-CN) .legal-row h2 { font-family: var(--f-body); font-weight: 700; letter-spacing: -.01em; }
:lang(zh-CN) .legal-text { max-width: 46em; line-height: 1.85; }
.legal-text > * + * { margin-top: .9em; }
.legal-text strong { font-weight: 700; }
:lang(zh-CN) .legal-text em { font-style: normal; font-weight: 700; }
.legal-text a { color: var(--blue-deep, var(--main-2)); border-bottom: 1px solid currentColor; }
.legal-text code { padding: .1em .35em; border-radius: 6px; background: var(--surface-gray, #f2f4f7); }
.legal-text ul { list-style: none; display: grid; gap: .55em; }
.legal-text li { position: relative; padding-left: 1.2em; }
.legal-text li::before { content: ""; position: absolute; left: .1em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--main); }
.legal-sec { padding-top: clamp(20px, 3vw, 36px); }
.legal-sec + .legal-sec { padding-top: clamp(56px, 6vw, 88px); }
.legal-contact { padding: clamp(24px, 3vw, 36px); font-family: var(--f-disp); font-size: clamp(20px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.015em; overflow-wrap: anywhere; }
.legal-contact a { color: var(--blue-deep, var(--main-2)); }
.legal-contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 899px) {
  .legal-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .legal-row h2 { position: static; }
}
