:root {
  --purple: #312e51;
  --gold: #be9e44;
  --cream: #f7f5f0;
  --paper: #fffdfa;
  --line: #e6e0d4;
  --muted: #686676;
  font-family: "Noto Sans SC", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--cream); color: #1d1c30; line-height: 1.7; }
a { color: var(--purple); }
.site-header { height: 78px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; background: rgba(255,253,250,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--purple); text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand b { display: block; font: 600 20px/1.2 Georgia, "Noto Serif SC", serif; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
nav { display: flex; gap: 25px; align-items: center; }
nav a { text-decoration: none; font-size: 14px; }
.nav-cta { background: var(--gold); color: white; padding: 9px 17px; border-radius: 4px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--purple); }
html body:not(.index) .ed-element.preset-banner-v3-default { min-height: 0 !important; height: auto !important; }
html body:not(.index) .ed-element.preset-banner-v3-default > .inner { min-height: 0 !important; }
html body .banner.preset-banner-v3-default .logo,
html body .banner.preset-banner-v3-default .logo img {
  width: 87px !important;
  height: 87px !important;
  object-fit: contain !important;
}
.page-hero { background: var(--paper); padding: 72px 28px 64px; border-bottom: 1px solid var(--line); text-align: left !important; }
.page-hero-inner, .page-content { width: 100%; max-width: 980px !important; margin-left: auto !important; margin-right: auto !important; }
.eyebrow { color: var(--gold); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.page-title { color: var(--purple); font: 500 clamp(32px, 4vw, 48px)/1.25 Georgia, "Noto Serif SC", serif; margin: 10px 0; }
.page-hero p { max-width: 680px; color: var(--muted); margin: 0; }
.page-content { padding: 44px 28px 90px; text-align: left !important; }
.placeholder { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; padding: 28px; color: var(--muted); }
.placeholder h2 { color: var(--purple); font: 500 24px/1.3 Georgia, "Noto Serif SC", serif; margin: 0 0 10px; }
.placeholder p { margin: 0; }
.legal-copy { width: 100%; max-width: 980px; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 32px 36px; overflow-wrap: anywhere; font-family: "Open Sans", Arial, sans-serif; font-size: 17px; font-weight: 400; line-height: 1.7; text-align: left !important; }
.legal-copy h2 { color: var(--purple); font: 500 25px/1.3 Georgia, "Noto Serif SC", serif; margin: 28px 0 10px; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy h3 { color: var(--purple); font-size: 17px; margin: 24px 0 6px; }
.legal-copy p { margin: 0 0 14px; font-weight: 400; white-space: normal !important; text-align: left !important; }
.legal-copy ul { margin: 8px 0 18px 22px; padding: 0; }
.legal-copy li { margin: 4px 0; text-align: left !important; }
.legal-copy h2, .legal-copy h3 { text-align: left !important; }
.last-updated { color: var(--muted); font-size: 14px; }
.legal-page-nav { width: 100%; max-width: 980px !important; margin-left: auto !important; margin-right: auto !important; padding: 22px 28px 0; display: flex !important; flex-wrap: wrap !important; justify-content: center; gap: 10px 22px; text-align: left !important; overflow: visible; }
.legal-page-nav a { color: var(--purple); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; text-align: center !important; }
.footer { background: #24223b; color: #e8e4f1; padding: 42px 6vw; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 34px; }
.footer h2 { color: #f0dfae; font: 500 20px/1.3 Georgia, "Noto Serif SC", serif; margin: 0 0 14px; }
.footer p { margin: 5px 0; color: #c9c5d4; font-size: 13px; }
.footer a { color: #eee8d6; text-decoration: none; }
.footer-brand img { width: 52px; }
.footer-brand small { display: block; color: #c9c5d4; margin-top: 6px; }
.footer-links { display: grid; gap: 6px; align-content: start; }
.footer-links a { font-size: 13px; }
.wechat-qr { width: 112px; height: 112px; object-fit: contain; background: white; padding: 5px; display: block; margin-top: 9px; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.16); padding-top: 16px; margin-top: 4px !important; }
@media (max-width: 850px) {
  .site-header { height: 68px; padding: 0 20px; }
  nav { display: none; }
  .menu-toggle { display: block; }
  .page-hero { padding: 48px 20px 40px; }
  html body .page-content { display: block !important; width: auto !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; padding: 36px 20px 64px !important; }
  html body .page-content .legal-copy { display: block !important; width: auto !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; padding: 22px !important; overflow: visible; font-size: 16px; line-height: 1.7; }
  html body .page-content .legal-copy * { max-width: 100% !important; }
  html body .page-content .legal-copy p,
  html body .page-content .legal-copy li { width: auto !important; white-space: normal !important; overflow-wrap: anywhere !important; word-break: normal !important; }
  html body nav.legal-page-nav { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; width: auto !important; max-width: none !important; min-width: 0 !important; margin: 0 20px !important; padding: 18px 0 0 !important; gap: 8px 12px !important; overflow: visible !important; }
  html body nav.legal-page-nav a { display: block !important; min-width: 0 !important; white-space: normal !important; overflow-wrap: anywhere !important; }
  .footer { grid-template-columns: 1fr; padding: 34px 20px; gap: 25px; }
  .copyright { grid-column: auto; }
}

/* Legal-page mobile header polish: match the main site's simple brand layout. */
@media (max-width: 850px) {
  html body .banner.preset-banner-v3-default,
  html body .banner.preset-banner-v3-default > .inner,
  html body .banner.preset-banner-v3-default .menu-wrapper,
  html body .banner.preset-banner-v3-default .menu-wrapper > .inner {
    min-height: 92px !important;
    height: 92px !important;
  }

  html body .banner.preset-banner-v3-default .menu-wrapper > .inner {
    position: relative !important;
    display: block !important;
  }

  html body .banner.preset-banner-v3-default .logo {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
  }

  html body .banner.preset-banner-v3-default .logo img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain !important;
  }

  html body .banner.preset-banner-v3-default .mobile-cont {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 1000 !important;
  }

  html body .banner.preset-banner-v3-default .mobile-cont > .inner,
  html body .banner.preset-banner-v3-default .menu-trigger {
    position: relative !important;
    z-index: 1001 !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }

  /* Keep the telephone available in page content, but remove it from this compact header. */
  html body .banner.preset-banner-v3-default .mobile-cont .ed-icon {
    display: none !important;
  }
}
