.reading-progress {
  position: fixed;
  right: 0;
  height: 3px;
  background: rgba(148, 163, 184, 0.15);
  z-index: 10000;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff4500, #ff8c00);
  box-shadow: 0 0 12px rgba(255, 69, 0, 0.6);
  transition: width 0.1s linear;
}
.legal-page {
  max-width: 1440px;
  padding: 140px 20px 20px;
}
.legal-hero {
  position: relative;
  text-align: center;
  padding: 12px 0 44px;
  margin-bottom: 44px;
}
.legal-hero::after {
  content: "";
  position: relative;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 240px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 69, 0, 0.7),
    rgba(255, 140, 0, 0.7),
    transparent
  );
}
.legal-hero .btn-back {
  position: relative;
  margin: 0 auto 24px;
}
.legal-hero h1 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 18px 0 16px;
  line-height: 1.08;
}
.legal-hero h1 {
  background: linear-gradient(135deg, #ffffff 0%, #ffa07a 50%, #ffd9c2 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}
.legal-hero h1 span {
  background: linear-gradient(135deg, #ff4500, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-hero-lead {
  font-size: 17px;
  color: var(--aurora-text-muted);
  max-width: 640px;
  margin: 0 auto 26px;
  line-height: 1.7;
}
.legal-hero-lead strong {
  color: #fff;
  font-weight: 700;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--aurora-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--aurora-text-muted);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
  transition: var(--aurora-transition);
}
.meta-chip i {
  color: var(--aurora-secondary);
  font-size: 14px;
}
.meta-chip:hover {
  border-color: var(--aurora-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 69, 0, 0.25);
}
.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.legal-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.legal-toc {
  position: sticky;
  top: 24px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--aurora-border);
  border-radius: var(--aurora-radius-sm);
  padding: 20px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.45);
  transition: border-color 0.3s ease;
}
.legal-toc h6 {
  font-size: 12px;
  font-weight: 800;
  color: var(--aurora-text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-toc h6 i {
  color: var(--aurora-secondary);
}
.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 14px;
}
.legal-toc ul li {
  padding: 0;
}
.legal-toc ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--aurora-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: var(--aurora-transition);
  position: relative;
}
.legal-toc ul li a i {
  font-size: 13px;
  width: 18px;
  text-align: center;
  color: rgba(165, 180, 252, 0.7);
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.legal-toc ul li a:hover {
  color: var(--aurora-primary-light);
  background: rgba(255, 69, 0, 0.12);
  border-left-color: rgba(255, 69, 0, 0.5);
  transform: translateX(3px);
}
.legal-toc ul li a.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(255, 69, 0, 0.22),
    rgba(255, 140, 0, 0.14)
  );
  border-left-color: var(--aurora-primary);
  box-shadow: 0 4px 16px rgba(255, 69, 0, 0.15);
}
.legal-toc ul li a.active i {
  color: var(--aurora-secondary);
}
.legal-toc-support {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 69, 0, 0.14),
    rgba(255, 140, 0, 0.1)
  );
  border: 1px solid rgba(255, 69, 0, 0.24);
}
.legal-toc-support > i {
  font-size: 20px;
  color: var(--aurora-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}
.legal-toc-support strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}
.legal-toc-support span {
  display: block;
  font-size: 12px;
  color: var(--aurora-text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.legal-toc-support a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--aurora-primary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}
.legal-toc-support a i {
  transition: transform 0.3s ease;
}
.legal-toc-support a:hover {
  color: #fff;
}
.legal-toc-support a:hover i {
  transform: translateX(3px);
}
.legal-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--aurora-border);
  border-radius: var(--aurora-radius);
  padding: 30px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.4);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  scroll-margin-top: 20px;
}
.legal-card::before {
  content: "";
  position: relative;
  inset: 0;
  border-radius: var(--aurora-radius);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 69, 0, 0),
    rgba(255, 140, 0, 0)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: var(--aurora-transition);
  pointer-events: none;
}
.legal-card:hover {
  border-color: var(--aurora-border-hover);
  box-shadow: 0 24px 64px rgba(255, 69, 0, 0.18),
    0 0 40px rgba(255, 140, 0, 0.1);
  transform: translateY(-3px);
}
.legal-card:hover::before {
  background: linear-gradient(
    135deg,
    rgba(255, 69, 0, 0.5),
    rgba(255, 140, 0, 0.4)
  );
}
.legal-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.legal-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 69, 0, 0.85),
    rgba(255, 140, 0, 0.75)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(255, 69, 0, 0.35);
}
.legal-card-icon i {
  font-size: 22px;
  color: #fff;
}
.legal-card-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurora-secondary);
  margin-bottom: 4px;
}
.legal-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--aurora-text);
  margin: 0;
  letter-spacing: -0.3px;
}
.legal-card-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--aurora-text-muted);
  margin-bottom: 20px;
}
.legal-card-lead strong {
  color: #fff;
}
.legal-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-dl-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: var(--aurora-transition);
}
.legal-dl-row:hover {
  background: rgba(255, 69, 0, 0.1);
  border-color: rgba(255, 69, 0, 0.3);
  transform: translateX(4px);
}
.legal-dl-row dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--aurora-text-muted);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.legal-dl-row dt i {
  color: var(--aurora-primary-light);
  font-size: 15px;
}
.legal-dl-row dd {
  margin: 0;
  text-align: right;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  word-break: break-word;
}
.legal-dl-row dd a {
  color: var(--aurora-primary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}
.legal-dl-row dd a:hover {
  color: #fff;
  text-decoration: underline;
}
.tag-soft {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 50px;
  background: rgba(255, 140, 0, 0.16);
  border: 1px solid rgba(255, 140, 0, 0.35);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.legal-steps {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  counter-reset: step;
}
.legal-steps li {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: var(--aurora-transition);
  align-items: flex-start;
}
.legal-steps li:hover {
  background: rgba(255, 69, 0, 0.08);
  border-color: rgba(255, 69, 0, 0.28);
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(255, 69, 0, 0.9),
    rgba(255, 140, 0, 0.8)
  );
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
}
.legal-steps li strong {
  display: block;
  font-size: 14.5px;
  color: var(--aurora-text);
  margin-bottom: 2px;
}
.legal-steps li span:last-child {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--aurora-text-muted);
}
.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.payment-brand,
.payment-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
}
.payment-brand {
  background: linear-gradient(
    135deg,
    rgba(255, 69, 0, 0.2),
    rgba(255, 140, 0, 0.14)
  );
  border: 1px solid rgba(255, 69, 0, 0.35);
  color: #fff;
}
.payment-brand i {
  color: #67e8f9;
}
.payment-secure {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.legal-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 14px;
  margin-bottom: 16px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.12),
    rgba(255, 140, 0, 0.08)
  );
  border: 1px solid rgba(16, 185, 129, 0.32);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12);
}
.guarantee-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #ff8c00);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}
.guarantee-icon i {
  font-size: 20px;
  color: #fff;
}
.legal-guarantee strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}
.legal-guarantee span:last-child {
  display: block;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--aurora-text-muted);
}
.legal-card ul,
.legal-card ol {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-card ul li,
.legal-card ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
  line-height: 1.6;
  color: var(--aurora-text-muted);
  transition: var(--aurora-transition);
}
.legal-card ul li:hover,
.legal-card ol li:hover {
  background: rgba(255, 69, 0, 0.08);
  border-color: rgba(255, 69, 0, 0.28);
  transform: translateX(4px);
}
.legal-card ul li strong {
  color: var(--aurora-text);
  font-weight: 700;
}
.legal-rights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.legal-rights-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
  color: var(--aurora-text-muted);
  font-weight: 500;
  transition: var(--aurora-transition);
}
.legal-rights-list li:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}
.legal-rights-list li i {
  color: #10b981;
  font-size: 15px;
  flex-shrink: 0;
}
.legal-restrict-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-restrict-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
  line-height: 1.6;
  color: var(--aurora-text-muted);
  transition: var(--aurora-transition);
}
.legal-restrict-list li:hover {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.28);
  transform: translateX(4px);
}
.legal-restrict-list li i {
  color: #ef4444;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 3px;
}
.legal-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.65;
}
.legal-note i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.legal-note-info {
  background: rgba(255, 69, 0, 0.1);
  border: 1px solid rgba(255, 69, 0, 0.24);
  color: var(--aurora-text-muted);
}
.legal-note-info i {
  color: #ffa07a;
}
.legal-note-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.24);
  color: var(--aurora-text-muted);
}
.legal-note-warning i {
  color: #f59e0b;
}
.legal-note a {
  color: var(--aurora-primary-light);
  text-decoration: none;
  font-weight: 600;
}
.legal-note a:hover {
  text-decoration: underline;
}
.legal-docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.legal-doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
  text-decoration: none;
  transition: var(--aurora-transition);
  position: relative;
}
.legal-doc-card:hover {
  background: rgba(255, 69, 0, 0.12);
  border-color: rgba(255, 69, 0, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255, 69, 0, 0.2);
}
.doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 69, 0, 0.85),
    rgba(255, 140, 0, 0.75)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(255, 69, 0, 0.3);
}
.doc-icon i {
  font-size: 18px;
  color: #fff;
}
.legal-doc-card strong {
  display: block;
  font-size: 14.5px;
  color: var(--aurora-text);
  margin-bottom: 2px;
}
.legal-doc-card small {
  display: block;
  font-size: 12.5px;
  color: var(--aurora-text-muted);
  line-height: 1.5;
}
.doc-arrow {
  margin-left: auto;
  color: rgba(165, 180, 252, 0.6);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}
.legal-doc-card:hover .doc-arrow {
  color: var(--aurora-secondary);
  transform: translateX(4px);
}
.js .legal-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.4s ease,
    box-shadow 0.4s ease;
}
.js .legal-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.js .legal-toc ul li a,
.js .legal-toc-support {
  transition: var(--aurora-transition);
}
@media (max-width: 991.98px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .legal-toc {
    position: static;
  }
  .legal-toc ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 12px;
  }
  .legal-docs {
    grid-template-columns: 1fr;
  }
  .legal-hero .btn-back {
    position: static;
    margin-bottom: 18px;
  }
}
@media (max-width: 767.98px) {
  .legal-page {
    padding: 140px 20px 20px;
  }
  .legal-hero {
    padding: 4px 0 36px;
  }
  .legal-hero h1 {
    font-size: 38px;
  }
  .legal-hero-lead {
    font-size: 15.5px;
  }
  .legal-card {
    padding: 24px 20px;
  }
  .legal-card-head {
    align-items: flex-start;
    gap: 14px;
  }
  .legal-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .legal-card-icon i {
    font-size: 18px;
  }
  .legal-dl-row {
    flex-direction: column;
    gap: 6px;
  }
  .legal-dl-row dd {
    text-align: left;
  }
  .legal-toc ul {
    grid-template-columns: 1fr;
  }
  .meta-chip {
    font-size: 12px;
    padding: 7px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .legal-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reading-progress span {
    transition: none;
  }
}