.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1C1A2E;
  background-color: #FBF9FE;
}

.legal-header {
  background: linear-gradient(160deg, #0C0E17 0%, #151929 60%, #111420 100%);
  padding: 64px 0 48px;
  text-align: center;
}

.legal-header .container {
  max-width: 860px;
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.legal-header .legal-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FF5C7A;
  background: rgba(255, 56, 96, 0.1);
  border: 1px solid rgba(255, 56, 96, 0.2);
  border-radius: 50px;
  margin-bottom: 14px;
}

.legal-header .legal-updated {
  font-size: 13px;
  color: #797A7F;
  margin-top: 8px;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0C0E17;
  margin-top: 40px;
  margin-bottom: 14px;
  padding-top: 16px;
  border-top: 1px solid #E8E6F5;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.legal-content h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-content p {
  font-size: 15.5px;
  color: #3D3A50;
  line-height: 1.72;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 10px 0 18px 22px;
  color: #3D3A50;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 7px;
  padding-left: 4px;
}

.legal-content a {
  color: #FF3860;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.legal-content a:hover {
  color: #D62D52;
  text-decoration: none;
}

.legal-content strong {
  color: #1C1A2E;
  font-weight: 700;
}

.toc {
  background: #FFFFFF;
  border: 1px solid #E8E6F5;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 36px;
}

.toc-title {
  font-size: 16px;
  font-weight: 700;
  color: #0C0E17;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  list-style: decimal;
}

.toc li {
  font-size: 14.5px;
  margin-bottom: 7px;
  line-height: 1.55;
}

.toc a {
  color: #FF3860;
  text-decoration: none;
  font-weight: 500;
}

.toc a:hover {
  text-decoration: underline;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF3860, #D62D52);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 56, 96, 0.32);
}

.legal-footer {
  background: #07060D;
  color: #838286;
  text-align: center;
  padding: 32px 24px;
}

.legal-footer p {
  font-size: 13px;
  margin-bottom: 4px;
}

.legal-footer a {
  color: #FF5C7A;
  text-decoration: none;
  font-weight: 600;
}

.legal-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-content {
    padding: 32px 16px 48px;
  }

  .toc {
    padding: 20px 20px;
  }

  .legal-content h2 {
    font-size: 19px;
  }
}
