/* ============================================================
   Legal stylesheet - Privacy Policy and Terms of Service
   Baoji Haixuanda Industrial Co., Ltd.
   ============================================================ */

:root {
  --legal-stone: #E6ECE8;
  --legal-stone-soft: #DCE4DF;
  --legal-steel: #223A36;
  --legal-spark: #FE8E22;
  --legal-hone: #7E6632;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #223A36;
  background-color: #E6ECE8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.legal-header {
  background-color: #223A36;
  border-bottom: 6px solid #7E6632;
  padding: 24px 0;
}

.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legal-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #E6ECE8;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.legal-brand:hover {
  color: #FE8E22;
}

.legal-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  color: #E6ECE8;
  line-height: 1.3;
}

.legal-back {
  color: #FE8E22;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-back:hover {
  color: #E6ECE8;
  text-decoration: underline;
}

.legal-titlebar {
  background-color: #DCE4DF;
  border-bottom: 2px solid #AEBDB6;
  padding: 44px 0 36px;
}

.legal-titlebar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-titlebar h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #223A36;
  margin-bottom: 10px;
  line-height: 1.2;
}

.legal-titlebar p {
  color: #223A36;
  font-size: 0.94rem;
  margin-bottom: 0;
}

.legal-titlebar strong {
  color: #7E6632;
}

.legal-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-toc {
  background-color: #DCE4DF;
  border: 2px solid #223A36;
  border-left: 8px solid #FE8E22;
  margin: 40px 0 44px;
  padding: 26px 28px;
}

.legal-toc h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  color: #223A36;
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  margin-bottom: 7px;
  break-inside: avoid;
}

.legal-toc a {
  color: #223A36;
  text-decoration: none;
  font-size: 0.94rem;
}

.legal-toc a:hover {
  color: #D9700A;
  text-decoration: underline;
}

.legal-content {
  padding-bottom: 56px;
}

.legal-content section {
  background-color: transparent !important;
  margin-bottom: 34px;
  padding-top: 6px;
}

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  color: #223A36;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FE8E22;
  line-height: 1.3;
}

.legal-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  color: #7E6632;
  margin: 20px 0 8px;
}

.legal-content p {
  color: #223A36;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 22px;
  color: #223A36;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #D9700A;
  font-weight: 600;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #223A36;
  background-color: #FE8E22;
  text-decoration: none;
}

.legal-note {
  background-color: #DCE4DF;
  border-left: 6px solid #7E6632;
  padding: 18px 22px;
  margin: 20px 0;
  color: #223A36;
}

.legal-note p {
  margin-bottom: 0;
}

.legal-footer {
  background-color: #223A36;
  border-top: 6px solid #7E6632;
  padding: 34px 0;
}

.legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer-links {
  margin-bottom: 14px;
}

.legal-footer-links a {
  color: #FE8E22;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
}

.legal-footer-links a:hover {
  color: #E6ECE8;
  text-decoration: underline;
}

.legal-footer-links span {
  color: #7E6632;
  margin: 0 10px;
}

.legal-footer p {
  color: #E6ECE8;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.legal-footer a {
  color: #FE8E22;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }

  .legal-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
