.site-compliance-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  padding: 18px clamp(16px, 4vw, 64px);
  border-top: 1px solid rgba(137, 172, 199, 0.14);
  background: rgba(2, 7, 13, 0.94);
  color: rgba(191, 207, 219, 0.68);
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.site-compliance-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  width: min(1440px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.site-compliance-footer__company {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-compliance-footer a {
  color: rgba(207, 221, 231, 0.78);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 140ms ease;
}

.site-compliance-footer a:hover,
.site-compliance-footer a:focus-visible {
  color: #f0cf82;
  text-decoration: underline;
}

.site-compliance-footer a:focus-visible {
  outline: 2px solid rgba(240, 207, 130, 0.52);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-compliance-footer__filing,
.site-compliance-footer__links a {
  white-space: nowrap;
}

.site-compliance-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  min-width: 0;
}

.legal-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.72), rgba(2, 7, 13, 0.98)),
    #02070d url("./assets/brand/ruyi-home-long-20260704-v6.png") center top / cover fixed no-repeat;
  color: #eaf3fa;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

.legal-page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.legal-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(137, 172, 199, 0.16);
  background: rgba(2, 8, 15, 0.82);
  box-sizing: border-box;
}

.legal-page-header a {
  color: #f0cf82;
  text-decoration: none;
}

.legal-page-header strong {
  color: #f8fbfd;
  font-size: 16px;
}

.legal-page-main {
  flex: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0;
  box-sizing: border-box;
}

.legal-page-intro {
  margin-bottom: 34px;
}

.legal-page-intro h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
}

.legal-page-intro p,
.legal-card p,
.legal-card li {
  color: #aebfcb;
  font-size: 14px;
  line-height: 1.9;
}

.legal-grid {
  display: grid;
  gap: 18px;
}

.legal-card {
  scroll-margin-top: 20px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(116, 166, 203, 0.2);
  border-radius: 12px;
  background: rgba(4, 14, 24, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.legal-card:target {
  border-color: rgba(240, 207, 130, 0.48);
  box-shadow: 0 0 0 3px rgba(240, 207, 130, 0.08);
}

.legal-card h2 {
  margin: 0 0 12px;
  color: #f5f9fc;
  font-size: 21px;
}

.legal-card p,
.legal-card ul {
  margin: 0;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card a {
  color: #f0cf82;
}

@media (max-width: 560px) {
  .site-compliance-footer {
    padding: 16px 14px 18px;
  }

  .site-compliance-footer__inner {
    gap: 7px 12px;
  }

  .site-compliance-footer__company {
    flex: 0 0 100%;
    text-align: center;
  }

  .site-compliance-footer__links {
    flex: 0 0 100%;
    gap: 7px 14px;
  }

  .legal-page-header {
    min-height: 60px;
    padding: 0 16px;
  }

  .legal-page-header strong {
    font-size: 14px;
  }
}
