/* 西瓜合规页（对齐 xiguaai.net /compliance-2257/、/brand/） */
.hg-list-page.hg-legal{
  --lg-card:#140000;--lg-line:#3a353c;--lg-hero-line:#3a3945;
  --lg-fg:#f5f5f7;--lg-mute:#969da8;--lg-active:#a9252d;--lg-pill:#21161a;
  --hg-page-gutter:16px;
  box-sizing:border-box;width:100%;
  padding:16px var(--hg-page-gutter) 32px;
}
@media (min-width:769px){
  .hg-list-page.hg-legal{--hg-page-gutter:clamp(24px,5vw,96px);padding:24px var(--hg-page-gutter) 48px}
}
@media (min-width:1280px){
  .hg-list-page.hg-legal{--hg-page-gutter:96px}
}
@media (min-width:1600px){
  .hg-list-page.hg-legal{--hg-page-gutter:200px}
}

.hg-legal>.hg-breadcrumb{display:flex;align-items:center;gap:16px;font-size:16px;margin-bottom:30px}
.hg-legal>.hg-breadcrumb a{display:inline-flex;align-items:center;color:#a79292}
.hg-legal>.hg-breadcrumb a:hover{color:#fff}
.hg-legal>.hg-breadcrumb a:first-child::before{
  content:'';width:32px;height:32px;margin-right:16px;flex:0 0 auto;
  background:url("/static/images/xigua/icons/tag-index/breadcrumb-home.svg") no-repeat center/contain
}
.hg-legal>.hg-breadcrumb .hg-breadcrumb__sep{
  width:8px;height:17px;font-size:0;flex:0 0 auto;
  background:url("/static/images/xigua/icons/tag-index/breadcrumb-chevron.svg") no-repeat center/contain
}
.hg-legal>.hg-breadcrumb .hg-breadcrumb__sep:has(+ .hg-breadcrumb__current){
  background-image:url("/static/images/xigua/icons/tag-index/breadcrumb-chevron-current.svg")
}
.hg-legal>.hg-breadcrumb .hg-breadcrumb__current{color:#f4f4f7;font-weight:400}

.hg-legal__hero{
  box-sizing:border-box;min-height:189px;padding:47px;margin:0 0 30px;
  border:1px solid var(--lg-hero-line);border-radius:20px;
  background:linear-gradient(90deg,#191c24 0%,#25181d 100%)
}
.hg-legal__hero h1{margin:0;color:var(--lg-fg);font-size:24px;font-weight:400;line-height:1.25}
.hg-legal__hero p{margin:20px 0 0;color:var(--lg-mute);font-size:18px;line-height:1.4}

.hg-legal__layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:40px;align-items:start}
.hg-legal__toc{
  box-sizing:border-box;padding:19px;border:1px solid var(--lg-line);border-radius:12px;
  background:var(--lg-card)
}
.hg-legal__toc a{
  display:flex;align-items:center;box-sizing:border-box;min-height:62px;padding:0 26px;
  border-radius:14px;color:var(--lg-mute);font-size:16px;line-height:1.3;text-decoration:none
}
.hg-legal__toc a:hover{color:var(--lg-fg)}
.hg-legal__toc a.is-active{background:var(--lg-pill);color:var(--lg-active);font-weight:600}

.hg-legal__article{
  box-sizing:border-box;min-height:320px;padding:42px 35px 48px;
  border:1px solid var(--lg-line);border-radius:12px;background:var(--lg-card)
}
.hg-legal__prose{display:flex;flex-direction:column;gap:45px;max-width:1064px}
.hg-legal__prose .hg-legal__lead{display:flex;flex-direction:column;gap:24px}
.hg-legal__prose h2,.hg-legal__prose .hg-legal__lead>p:first-child{
  margin:0;color:var(--lg-fg);font-size:20px;font-weight:700;line-height:1.4
}
.hg-legal__prose .hg-legal__meta{margin:0;color:var(--lg-mute);font-size:12px;line-height:1.5}
.hg-legal__prose h3{margin:0 0 20px;color:var(--lg-fg);font-size:20px;font-weight:700;line-height:1.4}
.hg-legal__prose p{margin:0;color:var(--lg-mute);font-size:16px;line-height:1.7}
.hg-legal__prose section{display:flex;flex-direction:column;gap:20px}
.hg-legal__prose ul,.hg-legal__prose ol{margin:0;padding-left:1.2em;color:var(--lg-mute);font-size:16px;line-height:1.7}
.hg-legal__prose a{color:var(--lg-active)}
.hg-legal__prose img{max-width:100%;height:auto}

.hg-legal__prose--custom{display:block;color:var(--lg-mute);font-size:16px;line-height:1.7;overflow-wrap:anywhere}
.hg-legal__prose.hg-legal__prose--custom>*+*,.hg-legal__prose--custom p+p{margin-top:20px}
.hg-legal__prose--custom .hg-legal__text{white-space:pre-wrap}
.hg-legal__prose--custom ul{list-style-type:disc}
.hg-legal__prose--custom ol{list-style-type:decimal}
.hg-legal__prose--custom li+li{margin-top:8px}

.hg-legal__prose--faq>p+p{margin-top:0}
.hg-legal__prose--faq>p.faq-q{margin-top:22px;color:var(--lg-fg);font-weight:700}
.hg-legal__prose--faq>p.faq-q:first-child{margin-top:0}
.hg-legal__prose--faq a[href^="mailto:"]{color:var(--lg-active);font-weight:600;text-decoration:none}

.hg-legal__channels{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;
  gap:40px 48px
}
.hg-legal__channel{
  display:inline-flex;flex-direction:column;align-items:center;gap:16px;
  text-decoration:none;color:inherit
}
.hg-legal__channel-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:80px;height:80px;padding:20px;border-radius:9999px;background:#21161a;box-sizing:border-box
}
.hg-legal__channel-icon img{display:block;width:40px;height:40px;object-fit:contain}
.hg-legal__channel-label{color:var(--lg-fg);font-size:18px;font-weight:600;line-height:24px;text-align:center}
.hg-legal__channel:hover .hg-legal__channel-label{color:var(--lg-active)}
.hg-legal__channel.is-disabled{pointer-events:none;cursor:default;opacity:.55}

.hg-legal__form{display:flex;flex-direction:column;gap:25px;width:100%;max-width:1108px}
.hg-legal__field{position:relative}
.hg-legal__field select,.hg-legal__field input,.hg-legal__field textarea{
  box-sizing:border-box;width:100%;margin:0;padding:0 24px;
  border:1px solid #3d1f26;border-radius:10px;background:#1f0b0e;color:var(--lg-fg);
  font-size:18px;line-height:1.3;font-family:inherit;outline:none
}
.hg-legal__field select,.hg-legal__field input{height:60px}
.hg-legal__field textarea{min-height:128px;padding:24px;resize:vertical}
.hg-legal__field select{appearance:none;-webkit-appearance:none;padding-right:52px;cursor:pointer}
.hg-legal__field select:invalid,.hg-legal__field input::placeholder,.hg-legal__field textarea::placeholder{color:var(--lg-mute)}
.hg-legal__field--select::after{
  content:"";position:absolute;right:24px;top:50%;width:10px;height:10px;
  border-right:2px solid var(--lg-fg);border-bottom:2px solid var(--lg-fg);
  transform:translateY(-70%) rotate(45deg);pointer-events:none
}
.detail-7317-shell button.hg-legal__submit{
  appearance:none;display:inline-flex;align-items:center;justify-content:center;
  box-sizing:border-box;width:150px;height:61px;margin:0;padding:0;border:0;border-radius:16px;
  background:#fb3643;color:#fff;font-family:inherit;font-size:18px;font-weight:700;line-height:1;cursor:pointer
}
.detail-7317-shell button.hg-legal__submit:hover{filter:brightness(1.05)}
.detail-7317-shell button.hg-legal__submit:disabled{opacity:.7;cursor:default;filter:none}
.hg-legal__ok{margin:0;color:var(--lg-mute);font-size:14px}
.hg-legal__ok.is-error{color:#ff707b}

@media (max-width:1023px){
  .hg-legal>.hg-breadcrumb{gap:8px;margin-top:20px;margin-bottom:20px;font-size:15px}
  .hg-legal>.hg-breadcrumb a:first-child::before{width:16px;height:16px;margin-right:8px}
  .hg-legal>.hg-breadcrumb .hg-breadcrumb__sep{width:4px;height:9px}

  .hg-legal__hero{min-height:100px;padding:20px 18px;margin-bottom:15px;border-radius:10px}
  .hg-legal__hero h1{font-size:22px;font-weight:700}
  .hg-legal__hero p{margin-top:10px;font-size:13px}

  .hg-legal,.hg-legal__layout{min-width:0;max-width:100%}
  .hg-legal__layout{display:flex;flex-direction:column;align-items:stretch;gap:15px}

  .hg-legal__toc{
    display:block;width:100%;max-width:100%;min-width:0;
    height:42px;padding:0;overflow-x:auto;overflow-y:hidden;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
    touch-action:pan-x;scrollbar-width:none
  }
  .hg-legal__toc::-webkit-scrollbar{display:none}
  .hg-legal__toc-track{
    display:flex;align-items:center;gap:24px;
    box-sizing:border-box;width:max-content;height:42px;padding:0 16px
  }
  .hg-legal__toc a{
    flex:0 0 auto;min-height:0;padding:0;border-radius:0;
    font-size:13px;line-height:19px;white-space:nowrap;background:transparent
  }
  .hg-legal__toc a.is-active{background:transparent;font-weight:600}

  .hg-legal__article{min-height:0;padding:20px 19px 24px;border-radius:12px}
  .hg-legal__prose{gap:30px}
  .hg-legal__prose .hg-legal__lead{gap:15px}
  .hg-legal__prose h2,.hg-legal__prose .hg-legal__lead>p:first-child{font-size:17px;line-height:1.5}
  .hg-legal__prose .hg-legal__meta{font-size:13px;line-height:1.5}
  .hg-legal__prose h3{margin:0;font-size:16px}
  .hg-legal__prose p,.hg-legal__prose ul,.hg-legal__prose ol{font-size:13px;line-height:1.7}
  .hg-legal__prose--custom{font-size:13px}
  .hg-legal__prose.hg-legal__prose--custom>*+*,.hg-legal__prose--custom p+p{margin-top:15px}
  .hg-legal__prose section{gap:10px}

  .hg-legal__prose--faq>p.faq-q{margin-top:15px}
  .hg-legal__channels{gap:24px 28px}
  .hg-legal__channel{gap:10px}
  .hg-legal__channel-icon{width:56px;height:56px;padding:14px}
  .hg-legal__channel-icon img{width:28px;height:28px}
  .hg-legal__channel-label{font-size:14px;line-height:20px}

  .hg-legal__form{gap:12px}
  .hg-legal__field select,.hg-legal__field input{height:44px;padding:0 16px;font-size:13px}
  .hg-legal__field textarea{min-height:88px;padding:14px 16px;font-size:13px}
  .hg-legal__field--select::after{right:16px}
  .detail-7317-shell button.hg-legal__submit{width:97px;height:42px;border-radius:9px;font-size:13px}
}
