/* XuYue Ecom — legal pages shared stylesheet */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", "Liberation Serif", serif;
  background: #EEEFEA;
  color: #303C38;
  line-height: 1.72;
  overflow-x: hidden;
}

.legal-page {
  background: #EEEFEA;
  color: #303C38;
}

.legal-header {
  background: #24282C;
  color: #EEEFEA;
  border-bottom: 8px solid #1A8894;
  padding: 26px 24px 30px;
}

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

.legal-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.legal-brand {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #EEEFEA;
  letter-spacing: 0.4px;
  text-decoration: none;
  border-left: 6px solid #1A8894;
  padding-left: 12px;
}

.legal-brand:hover {
  color: #C6AE49;
  text-decoration: none;
}

.legal-home-link {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #EEEFEA;
  background: #1A8894;
  padding: 10px 18px;
  border-radius: 2px;
}

.legal-home-link:hover {
  background: #C6AE49;
  color: #24282C;
  text-decoration: none;
}

.legal-header h1 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 40px;
  color: #EEEFEA;
  margin: 0 0 10px;
  line-height: 1.14;
}

.legal-meta {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13.5px;
  color: #DADEDC;
  margin: 0;
  letter-spacing: 0.3px;
}

.legal-meta strong {
  color: #C6AE49;
}

.legal-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 24px 70px;
}

.legal-intro {
  background: #DADEDC;
  border-left: 6px solid #1A8894;
  padding: 24px 26px;
  margin: 0 0 38px;
  color: #303C38;
  border-radius: 2px;
}

.legal-intro p {
  margin: 0 0 12px;
  color: #303C38;
  font-size: 16.5px;
}

.legal-intro p:last-child {
  margin-bottom: 0;
}

.legal-toc {
  background: #EEEFEA;
  border: 1px solid #A4A9B1;
  border-top: 6px solid #1A8894;
  padding: 24px 26px 26px;
  margin: 0 0 46px;
  border-radius: 2px;
}

.legal-toc h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #24282C;
  margin: 0 0 16px;
}

.legal-toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toccount;
}

.legal-toc-grid li {
  counter-increment: toccount;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  padding: 4px 0;
  border-bottom: 1px solid #DADEDC;
}

.legal-toc-grid li::before {
  content: counter(toccount) ". ";
  color: #1A8894;
  font-weight: 700;
}

.legal-toc-grid a {
  color: #303C38;
  text-decoration: none;
}

.legal-toc-grid a:hover {
  color: #1A8894;
  text-decoration: underline;
}

.legal-content {
  display: block;
}

.legal-content section {
  background: #EEEFEA !important;
  margin: 0 0 34px;
  padding: 0;
}

.legal-content h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  color: #24282C;
  margin: 40px 0 12px;
  padding-top: 18px;
  border-top: 3px solid #1A8894;
  line-height: 1.24;
}

.legal-content section:first-of-type h2 {
  margin-top: 0;
}

.legal-content h3 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  color: #1A8894;
  margin: 24px 0 8px;
  line-height: 1.3;
}

.legal-content p {
  margin: 0 0 16px;
  color: #303C38;
  font-size: 16.5px;
  line-height: 1.74;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px;
  padding-left: 26px;
  color: #303C38;
}

.legal-content li {
  margin: 0 0 9px;
  font-size: 16.5px;
  line-height: 1.68;
}

.legal-content strong {
  color: #24282C;
}

.legal-content a {
  color: #1A8894;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #24282C;
}

.legal-note {
  background: #DADEDC;
  border-left: 5px solid #C6AE49;
  padding: 16px 20px;
  margin: 0 0 20px;
  border-radius: 2px;
}

.legal-note p {
  margin: 0;
  font-size: 15.5px;
}

.legal-footer {
  background: #24282C;
  color: #EEEFEA;
  padding: 34px 24px 40px;
  border-top: 8px solid #1A8894;
}

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

.legal-footer p {
  margin: 0 0 10px;
  color: #DADEDC;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.legal-footer a {
  color: #C6AE49;
  text-decoration: none;
}

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

.legal-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #303C38;
}

.legal-footer-links a {
  font-size: 13.5px;
  letter-spacing: 0.4px;
  color: #EEEFEA;
  text-decoration: none;
}

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

@media (max-width: 720px) {
  .legal-toc-grid {
    grid-template-columns: 1fr;
  }
  .legal-header h1 {
    font-size: 30px;
  }
  .legal-shell {
    padding: 34px 20px 54px;
  }
}
