.legal-body {
  margin: 0;
  min-height: 100vh;
  overflow-y: auto !important;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(137, 111, 255, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 8%,
      rgba(107, 213, 255, 0.18),
      transparent 28%
    ),
    #f5f5f8;
  color: #5f6678;
  font-family: Arial, Helvetica, sans-serif;
}

.legal-main {
  min-height: calc(100vh - 60px);
  padding: 24px 24px 60px;
}

.terms-page {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
}

.terms-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(108, 88, 236, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(83, 72, 133, 0.08);
}

.terms-header {
  padding: 40px 44px 22px;
}

.terms-header h1 {
  margin: 0;
  color: #242448;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

.terms-header p {
  margin: 10px 0 0;
  color: #7b8094;
  font-size: 13px;
  line-height: 1.6;
}

.terms-header p span {
  margin-left: 4px;
}

.terms-content {
  padding: 0 44px 46px;
}

.terms-section {
  padding: 30px 0 32px;
  border-top: 1px solid #eeeef5;
}

.terms-section:first-child {
  border-top: 0;
  padding-top: 24px;
}

.terms-section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.terms-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: #6657f2;
  font-size: 17px;
}

.terms-section-title h2 {
  margin: 0;
  color: #30303d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.terms-section p {
  margin: 0 0 15px;
  color: #62697b;
  font-size: 14px;
  line-height: 1.8;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-list {
  margin: 4px 0 17px;
  padding-left: 25px;
}

.terms-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 2px;
  color: #62697b;
  font-size: 14px;
  line-height: 1.75;
}

.terms-list li::marker {
  color: #6d5cf4;
  font-size: 11px;
}

.terms-alert {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px dashed #cfc7ff;
  border-radius: 15px;
  background: #faf9ff;
}

.terms-alert-icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  padding-top: 1px;
  color: #6d5cf4;
  font-size: 17px;
}

.terms-alert-content {
  min-width: 0;
}

.terms-alert-content strong {
  display: block;
  margin-bottom: 5px;
  color: #37345d;
  font-size: 13px;
  line-height: 1.5;
}

.terms-alert-content p {
  margin: 0;
  color: #666b7d;
  font-size: 13px;
  line-height: 1.7;
}

.terms-support-section {
  padding-bottom: 4px;
}

.terms-support-box {
  margin-top: 22px;
  padding: 23px 24px;
  border: 1px dashed #cfc7ff;
  border-radius: 15px;
  background: linear-gradient(
    135deg,
    rgba(248, 246, 255, 0.96),
    rgba(250, 249, 255, 0.9)
  );
}

.terms-support-box h3 {
  margin: 0 0 13px;
  color: #282650;
  font-size: 15px;
  font-weight: 700;
}

.terms-support-item {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: #62697b;
  font-size: 13px;
  line-height: 1.7;
}

.terms-support-item a {
  color: #6957ef;
  font-weight: 600;
  text-decoration: none;
}

.terms-support-item a:hover {
  text-decoration: underline;
}

.terms-support-item strong {
  color: #2d2d55;
  font-weight: 700;
}

@media (max-width: 900px) {
  .legal-main {
    padding: 16px 14px 40px;
  }

  .terms-card {
    border-radius: 18px;
  }

  .terms-header {
    padding: 28px 24px 18px;
  }

  .terms-content {
    padding: 0 24px 34px;
  }
}

@media (max-width: 600px) {
  .legal-main {
    padding: 10px 8px 30px;
  }

  .terms-card {
    border-radius: 14px;
  }

  .terms-header {
    padding: 24px 18px 16px;
  }

  .terms-header h1 {
    font-size: 21px;
  }

  .terms-header p {
    font-size: 12px;
  }

  .terms-content {
    padding: 0 18px 28px;
  }

  .terms-section {
    padding: 25px 0 27px;
  }

  .terms-section-title {
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 17px;
  }

  .terms-section-title h2 {
    font-size: 16px;
  }

  .terms-section p,
  .terms-list li {
    font-size: 14px;
    line-height: 1.75;
  }

  .terms-alert {
    padding: 15px;
  }

  .terms-support-box {
    padding: 18px;
  }

  .terms-support-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
}
