/* ============================================================
   Legal & Policies hub — 條款與政策
   Built on top of styles.css
   ============================================================ */

/* ============================================================
   PAGE HEADER — compact title strip (no hero)
   ============================================================ */
.lg-pagehead {
  position: relative;
  padding: 120px 0 64px;
  background:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(255,159,28,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 10% 100%, rgba(196,166,255,0.16) 0%, transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, #FBF7FE 100%);
  border-bottom: 1px solid #F0E6F8;
  overflow: hidden;
}
.lg-pagehead-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #8A2BE2;
  text-transform: uppercase;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #ECE0F5;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px -10px rgba(138,43,226,0.18);
}
.lg-pagehead-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #EC0677;
  box-shadow: 0 0 12px #EC0677;
}
.lg-pagehead-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #14111C;
  margin: 0 0 16px;
  max-width: 820px;
}
.lg-pagehead-sub {
  font-size: 16px;
  line-height: 1.7;
  color: #5A5360;
  max-width: 720px;
  margin: 0;
}
.lg-pagehead-title .accent {
  background: linear-gradient(110deg, #FF9F1C 0%, #EC0677 50%, #8A2BE2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lg-pagehead-meta {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 14px 22px;
  background: #fff;
  border: 1px solid #ECE0F5;
  border-radius: 14px;
  box-shadow: 0 12px 32px -16px rgba(138,43,226,0.18);
}
.lg-pagehead-meta > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lg-meta-label {
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8A8198;
}
.lg-meta-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #14111C;
}
.lg-meta-sep {
  width: 1px;
  height: 28px;
  background: #ECE0F5;
}

/* ============================================================
   BODY GRID — TOC + content
   ============================================================ */
.lg-body {
  background: #FBF7FE;
  padding: 130px 0 100px;
  position: relative;
}
.lg-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

/* ============================================================
   TOC
   ============================================================ */
.lg-toc {
  position: sticky;
  top: 100px;
}
.lg-toc-inner {
  background: #fff;
  border: 1px solid #ECE0F5;
  border-radius: 20px;
  padding: 24px 20px 22px;
  box-shadow: 0 16px 36px -20px rgba(138,43,226,0.16);
}
.lg-toc-eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #8A2BE2;
  text-transform: uppercase;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid #F4ECF8;
}
.lg-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.lg-toc-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #5A5360;
  letter-spacing: -0.005em;
  transition: all .2s var(--ease);
  position: relative;
}
.lg-toc-list a .num {
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #B5ADC2;
  width: 22px;
  flex-shrink: 0;
}
.lg-toc-list a .zh {
  flex: 1;
  min-width: 0;
}
.lg-toc-list a:hover {
  background: #FBF7FE;
  color: #14111C;
}
.lg-toc-list a:hover .num { color: #8A2BE2; }
.lg-toc-list a.active {
  background: linear-gradient(110deg, rgba(138,43,226,0.08), rgba(224,23,143,0.06));
  color: #14111C;
  font-weight: 800;
}
.lg-toc-list a.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--brand-gradient);
}
.lg-toc-list a.active .num {
  background: linear-gradient(110deg, #8A2BE2, #EC0677);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lg-toc-foot {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #F4ECF8;
}
.lg-toc-foot h5 {
  font-size: 13px;
  font-weight: 800;
  color: #14111C;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.lg-toc-foot p {
  font-size: 12.5px;
  line-height: 1.6;
  color: #6B6377;
  margin-bottom: 4px;
}
.lg-toc-foot p a {
  font-family: var(--font-en);
  font-weight: 800;
  color: #EC0677;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.lg-toc-foot-time {
  font-size: 11.5px !important;
  color: #8A8198 !important;
  margin-top: 4px;
}

/* ============================================================
   CONTENT — docs
   ============================================================ */
.lg-content {
  min-width: 0;
}
.lg-doc {
  background: #fff;
  border: 1px solid #ECE0F5;
  border-radius: 24px;
  padding: 48px 52px 52px;
  margin-bottom: 28px;
  scroll-margin-top: 100px;
}
.lg-doc-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid #F4ECF8;
}
.lg-doc-num {
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(140deg, #8A2BE2 0%, #EC0677 50%, #FF9F1C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  padding-top: 4px;
}
.lg-doc-tag {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #8A2BE2;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.lg-doc-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #14111C;
  line-height: 1.15;
}
.lg-doc-intro {
  font-size: 15px;
  line-height: 1.85;
  color: #4A4255;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: linear-gradient(110deg, rgba(138,43,226,0.04), rgba(224,23,143,0.03));
  border-left: 3px solid #8A2BE2;
  border-radius: 8px;
}
.lg-doc h3 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #14111C;
  margin: 36px 0 14px;
  line-height: 1.3;
}
.lg-doc h4 {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #2A1A3D;
  margin: 26px 0 10px;
}
.lg-doc p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #4A4255;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.lg-doc strong {
  color: #14111C;
  font-weight: 800;
}
.lg-doc ul,
.lg-doc ol {
  padding-left: 0;
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lg-doc ul li,
.lg-doc ol li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #4A4255;
}
.lg-doc ul li::before {
  content: '';
  position: absolute;
  left: 6px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8A2BE2, #EC0677);
}
.lg-doc ol {
  counter-reset: lg-ol;
}
.lg-doc ol li {
  counter-increment: lg-ol;
}
.lg-doc ol li::before {
  content: counter(lg-ol, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #8A2BE2;
  background: rgba(138,43,226,0.08);
  padding: 3px 6px;
  border-radius: 5px;
  line-height: 1;
}
.lg-doc-note {
  margin-top: 24px;
  padding: 14px 18px;
  background: #FBF7FE;
  border: 1px dashed #DCD0E8;
  border-radius: 10px;
  font-size: 13px !important;
  color: #6B6377 !important;
  line-height: 1.7 !important;
}

/* ============================================================
   FLOWCHART (collect-pay)
   ============================================================ */
.lg-flowchart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 24px;
}
.lg-flow {
  background: #FBF7FE;
  border: 1px solid #ECE0F5;
  border-radius: 14px;
  padding: 18px 20px 16px;
}
.lg-flow-h {
  font-size: 14px;
  font-weight: 900;
  color: #14111C;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ECE0F5;
}
.lg-flow ol {
  margin: 0;
  gap: 6px !important;
}
.lg-flow ol li {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  padding-left: 24px !important;
  color: #4A4255;
}
.lg-flow ol li::before {
  font-size: 9.5px !important;
  padding: 2px 4px !important;
}

/* ============================================================
   CONTACT card (within doc)
   ============================================================ */
.lg-contact-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: linear-gradient(135deg, #14111C 0%, #2A1A3D 100%);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 18px 0 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lg-contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(255,159,28,0.15), transparent 60%);
  pointer-events: none;
}
.lg-contact-card > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.lg-contact-label {
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,159,28,0.85);
  text-transform: uppercase;
}
.lg-contact-val {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ============================================================
   BANK section
   ============================================================ */
.lg-bank-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #FBF7FE 0%, #fff 100%);
  border: 1px solid #ECE0F5;
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 24px;
}
.lg-bank-card-icon {
  width: 88px; height: 88px;
  border-radius: 22px;
  background: linear-gradient(135deg, #8A2BE2, #EC0677);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 14px 30px -10px rgba(138,43,226,0.45);
}
/* Image variant: no colored backing, scale logo to fit. */
.lg-bank-card-icon-img {
  width: auto; height: auto;
  max-width: 200px;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.lg-bank-card-icon-img img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}
.lg-bank-card-tag {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #8A2BE2;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.lg-bank-card-body h3 {
  font-size: 24px;
  font-weight: 900;
  color: #14111C;
  letter-spacing: -0.02em;
  margin: 0 0 8px !important;
}
.lg-bank-card-body p {
  font-size: 14px;
  line-height: 1.75;
  color: #5A5360;
  margin: 0;
}
.lg-bank-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lg-pillar {
  background: #FBF7FE;
  border: 1px solid #ECE0F5;
  border-radius: 14px;
  padding: 22px 22px 20px;
}
.lg-pillar-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #FF9F1C;
  display: block;
  margin-bottom: 10px;
}
.lg-pillar h4 {
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #14111C !important;
  margin: 0 0 8px !important;
}
.lg-pillar p {
  font-size: 12.5px;
  line-height: 1.7;
  color: #6B6377;
  margin: 0;
}

/* ============================================================
   CALLOUT
   ============================================================ */
.lg-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(110deg, rgba(138,43,226,0.05), rgba(224,23,143,0.04));
  border: 1px solid #E6D5F0;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 18px 0;
}
.lg-callout.warn {
  background: linear-gradient(110deg, rgba(255,159,28,0.08), rgba(224,23,143,0.05));
  border-color: rgba(255,159,28,0.3);
}
.lg-callout-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(138,43,226,0.12);
  color: #8A2BE2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lg-callout.warn .lg-callout-ico {
  background: rgba(255,159,28,0.15);
  color: #FF9F1C;
}
.lg-callout h4 {
  margin: 0 0 4px !important;
  font-size: 15px !important;
}
.lg-callout p {
  margin: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
}

/* ============================================================
   PENALTY LIST (restricted)
   ============================================================ */
.lg-penalty-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}
.lg-penalty-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px !important;
  background: #FBF7FE;
  border: 1px solid #ECE0F5;
  border-radius: 14px;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  padding-left: 20px !important;
}
.lg-penalty-list li::before {
  display: none !important;
}
.lg-penalty-num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
  background: linear-gradient(135deg, #FF9F1C, #EC0677);
  padding: 5px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
}
.lg-penalty-list li strong {
  display: block;
  color: #14111C;
  font-weight: 800;
  font-size: 14.5px;
  margin-bottom: 3px;
}
.lg-penalty-list li em {
  display: block;
  font-style: normal;
  color: #6B6377;
  font-size: 12.5px;
  line-height: 1.55;
}

/* ============================================================
   PRINCIPLE GRID (dispute)
   ============================================================ */
.lg-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 24px;
}
.lg-principle {
  background: #FBF7FE;
  border: 1px solid #ECE0F5;
  border-radius: 14px;
  padding: 20px 20px 18px;
  position: relative;
}
.lg-principle span {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #8A2BE2, #EC0677);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 6px;
}
.lg-principle h5 {
  font-size: 14.5px;
  font-weight: 900;
  color: #14111C;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.lg-principle p {
  font-size: 12.5px !important;
  line-height: 1.65 !important;
  color: #6B6377 !important;
  margin: 0 !important;
}

/* ============================================================
   RETURN highlight
   ============================================================ */
.lg-return-hi {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #14111C 0%, #2A1A3D 100%);
  border-radius: 22px;
  padding: 36px 40px;
  margin-bottom: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lg-return-hi::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 0% 50%, rgba(255,159,28,0.18), transparent 60%),
    radial-gradient(ellipse 60% 70% at 100% 50%, rgba(138,43,226,0.25), transparent 60%);
  pointer-events: none;
}
.lg-return-hi-num {
  font-family: var(--font-en);
  font-size: 110px;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #FF9F1C 0%, #EC0677 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.lg-return-hi-num span {
  font-family: var(--font-zh);
  font-size: 26px;
  font-weight: 700;
  margin-left: 4px;
  -webkit-text-fill-color: #fff;
  color: #fff;
  letter-spacing: 0;
}
.lg-return-hi h3 {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #fff !important;
  margin: 0 0 10px !important;
  position: relative;
}
.lg-return-hi p {
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: rgba(255,255,255,0.75) !important;
  margin-bottom: 8px !important;
  position: relative;
}
.lg-return-hi p strong {
  color: #FF9F1C !important;
}
.lg-warn-line {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 10px !important;
  font-size: 13px !important;
}

/* ============================================================
   PRIVACY data grid
   ============================================================ */
.lg-data-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #FBF7FE;
  border: 1px solid #ECE0F5;
  border-radius: 14px;
  overflow: hidden;
  margin: 14px 0 24px;
}
.lg-data-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 16px 22px;
  border-bottom: 1px solid #ECE0F5;
  align-items: start;
}
.lg-data-row:last-child {
  border-bottom: none;
}
.lg-data-label {
  font-size: 13px;
  font-weight: 800;
  color: #8A2BE2;
  letter-spacing: -0.005em;
  padding-top: 1px;
}
.lg-data-val {
  font-size: 13.5px;
  line-height: 1.7;
  color: #4A4255;
}
.lg-rights-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}
.lg-rights-list li {
  background: #FBF7FE;
  border: 1px solid #ECE0F5;
  border-radius: 10px;
  padding: 12px 16px 12px 36px !important;
  font-size: 13.5px !important;
}
.lg-rights-list li::before {
  left: 14px !important;
  top: 16px !important;
  width: 6px !important;
  height: 6px !important;
}

/* ============================================================
   CONTACT block
   ============================================================ */
.lg-contact {
  background: linear-gradient(135deg, #14111C 0%, #2A1A3D 100%);
  border-radius: 24px;
  padding: 56px 52px 60px;
  margin-bottom: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 100px;
}
.lg-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 15% 30%, rgba(138,43,226,0.4), transparent 55%),
    radial-gradient(ellipse 60% 70% at 85% 70%, rgba(255,159,28,0.30), transparent 55%);
  pointer-events: none;
}
.lg-contact > * {
  position: relative;
}
.lg-contact-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,159,28,0.9);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lg-contact h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
}
.lg-contact > p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 560px;
}
.lg-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lg-contact-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  transition: all .25s var(--ease);
}
.lg-contact-tile:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,159,28,0.4);
  transform: translateY(-4px);
}
.lg-contact-tile-tag {
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #FF9F1C;
  text-transform: uppercase;
}
.lg-contact-tile-val {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.lg-contact-tile-note {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.lg-back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8A2BE2, #EC0677);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(138,43,226,0.5);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all .3s var(--ease);
  z-index: 50;
}
.lg-back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lg-back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(138,43,226,0.6);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .lg-grid { grid-template-columns: 240px 1fr; gap: 40px; }
  .lg-doc { padding: 38px 36px 42px; }
  .lg-flowchart { grid-template-columns: 1fr; }
  .lg-bank-pillars { grid-template-columns: 1fr; }
  .lg-principle-grid { grid-template-columns: 1fr; }
  .lg-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .lg-pagehead { padding: 100px 0 48px; }
  .lg-pagehead-sub { font-size: 15px; }
  .lg-grid { grid-template-columns: 1fr; gap: 24px; }
  .lg-toc { position: static; }
  .lg-toc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .lg-toc-foot { display: none; }
  .lg-doc { padding: 28px 22px 32px; border-radius: 18px; }
  .lg-doc-head { flex-direction: column; gap: 10px; padding-bottom: 20px; margin-bottom: 22px; }
  .lg-doc-num { font-size: 28px; padding-top: 0; }
  .lg-bank-card { grid-template-columns: 1fr; padding: 24px 22px; gap: 18px; text-align: left; }
  .lg-contact-card { grid-template-columns: 1fr; gap: 14px; padding: 22px 24px; }
  .lg-penalty-list { grid-template-columns: 1fr !important; }
  .lg-rights-list { grid-template-columns: 1fr !important; }
  .lg-data-row { grid-template-columns: 1fr; gap: 4px; }
  .lg-return-hi { grid-template-columns: 1fr; padding: 28px 24px; gap: 14px; }
  .lg-return-hi-num { font-size: 80px; }
  .lg-contact { padding: 36px 26px 40px; }
  .lg-pagehead-meta { gap: 14px; padding: 14px 18px; flex-wrap: wrap; }
  .lg-meta-sep { display: none; }
}

/* Free-floating h5 inside legal docs (e.g. 未履行交易 / 未完全履行交易 sub-headings).
   `.lg-principle h5` is more specific and keeps its own styling. */
.lg-doc h5 {
  font-size: 16px;
  font-weight: 700;
  color: #14111C;
  margin: 22px 0 10px;
  letter-spacing: -0.01em;
}

/* Nested list markers used inside lg-doc clauses:
   .lg-sub-num  → (1)(2)(3) parenthesised numbers
   .lg-circled  → ①②③④ unicode circled digits */
.lg-doc ol.lg-sub-num {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 4px;
  counter-reset: lgsub;
  gap: 4px;
}
.lg-doc ol.lg-sub-num > li {
  counter-increment: lgsub;
  position: relative;
  padding-left: 38px;
  margin: 0;
  line-height: 1.65;
}
.lg-doc ol.lg-sub-num > li::before {
  content: "(" counter(lgsub) ")";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: #14111C;
  min-width: 32px;
}
.lg-doc ol.lg-circled {
  list-style: none;
  padding-left: 0;
  margin: 6px 0 2px;
  gap: 2px;
}
.lg-doc ol.lg-circled > li {
  position: relative;
  padding-left: 28px;
  margin: 0;
  line-height: 1.6;
}
.lg-doc ol.lg-circled > li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: #14111C;
}
.lg-doc ol.lg-circled > li:nth-child(1)::before { content: "①"; }
.lg-doc ol.lg-circled > li:nth-child(2)::before { content: "②"; }
.lg-doc ol.lg-circled > li:nth-child(3)::before { content: "③"; }
.lg-doc ol.lg-circled > li:nth-child(4)::before { content: "④"; }
.lg-doc ol.lg-circled > li:nth-child(5)::before { content: "⑤"; }
.lg-doc ol.lg-circled > li:nth-child(6)::before { content: "⑥"; }

/* ============================================================
   LEGAL — Mobile: fill the full width, kill ragged right gap
   ============================================================ */
@media (max-width: 640px) {
  .lg-body { padding: 80px 0 48px; }
  .lg-pagehead { padding: 80px 0 32px !important; }
  .lg-doc {
    padding: 24px 18px 28px !important;
    border-radius: 14px !important;
    margin-bottom: 18px !important;
  }
  .lg-doc-head { padding-bottom: 16px !important; margin-bottom: 16px !important; }
  .lg-doc-title { font-size: 22px !important; line-height: 1.3 !important; }
  /* Disable balanced-text wrap so lines fill the full card width */
  .lg-doc p, .lg-doc-intro, .lg-doc li {
    text-wrap: auto !important;
  }
  .lg-doc p { font-size: 14px; margin-bottom: 12px; line-height: 1.75; }
  .lg-doc h3 { font-size: 16.5px; margin: 22px 0 8px; }
  .lg-doc ul li, .lg-doc ol li { padding-left: 18px; font-size: 14px; line-height: 1.7; }
  .lg-doc ul li::before { left: 4px; top: 11px; width: 5px; height: 5px; }
}
