*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #2D2E3A;
  background: #FEFDFB;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.legal-page .legal-header {
  background: linear-gradient(160deg, #1B1C26 0%, #242538 100%);
  color: #FEFDFB;
  padding: 80px 0 48px;
  text-align: center;
}

.legal-page .legal-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #FEFDFB;
  margin-bottom: 8px;
}

.legal-page .legal-header p {
  font-size: 0.9rem;
  color: #B0B0C0;
  margin-bottom: 0;
}

.legal-page .legal-content {
  padding: 48px 0 64px;
}

.legal-page .legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-page .legal-content .last-updated {
  font-size: 0.85rem;
  color: #767886;
  margin-bottom: 32px;
  font-style: italic;
}

.legal-page .legal-content .intro-text {
  font-size: 1.05rem;
  color: #4A4B58;
  line-height: 1.75;
  margin-bottom: 36px;
}

.legal-page .toc {
  background: #F5F3EE;
  border: 1px solid #E6E3DD;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.legal-page .toc h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1B1C26;
  margin-bottom: 16px;
}

.legal-page .toc ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-page .toc ol li {
  font-size: 0.9rem;
}

.legal-page .toc ol li a {
  color: #E5593D;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

.legal-page .toc ol li a:hover {
  color: #CC4C33;
  border-bottom-color: #E5593D;
}

.legal-page .legal-content section {
  background-color: transparent !important;
  margin-bottom: 40px;
  padding: 0;
}

.legal-page .legal-content section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1B1C26;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E5593D;
}

.legal-page .legal-content section p {
  font-size: 0.98rem;
  color: #4A4B58;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page .legal-content section ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-page .legal-content section ul li {
  font-size: 0.95rem;
  color: #4A4B58;
  line-height: 1.7;
  margin-bottom: 6px;
  list-style: disc;
}

.legal-page .legal-content .back-home {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #E5593D;
  color: #FEFDFB;
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.25s;
}

.legal-page .legal-content .back-home:hover {
  background: #CC4C33;
}

.legal-footer {
  background: #16151A;
  color: #9088A0;
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
}

.legal-footer a {
  color: #E5593D;
  transition: color 0.2s;
}

.legal-footer a:hover {
  color: #F0A090;
}
