/* ============================================================
   Shared legal stylesheet — privacy.html / terms-of-service.html
   Binzhou Tiansheng E-commerce Co., Ltd.
   Palette:
     FAIR-PAPER    #F4E0B4
     AWNING-TEAL   #1A564A
     LANTERN-RED   #D8261E
     DARK-BRASS    #C08848
     BASKET-WILLOW #AC8458
   Legal pages load ONLY this file, so the page colours below
   must stand on their own with strong contrast.
   ============================================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  background-color: #F4E0B4;
  color: #1A564A;
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

a {
  color: #D8261E;
  text-decoration: none;
}

a:hover {
  color: #1A564A;
  text-decoration: underline;
  text-decoration-color: #AC8458;
  text-decoration-thickness: 2px;
}

/* ---------- LEGAL HEADER ---------- */

.legal-header {
  background-color: #1A564A;
  color: #F4E0B4;
  border-bottom: 4px solid #C08848;
  padding: 22px 24px;
  text-align: center;
}

.legal-header h1 {
  margin: 0 0 6px 0;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 30px;
  color: #F4E0B4;
  line-height: 1.2;
}

.legal-header p {
  margin: 0;
  font-size: 14px;
  color: #F4E0B4;
}

.legal-header a {
  color: #F4E0B4;
  font-weight: 700;
  border-bottom: 2px solid #C08848;
}

.legal-header a:hover {
  color: #F4E0B4;
  border-bottom-color: #D8261E;
  text-decoration: none;
}

.legal-topbar {
  background-color: #1A564A;
  border-bottom: 4px solid #C08848;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-brand {
  color: #F4E0B4;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-weight: 700;
  font-size: 15px;
}

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

.legal-home {
  color: #F4E0B4;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid #C08848;
}

.legal-home:hover {
  color: #F4E0B4;
  border-bottom-color: #D8261E;
  text-decoration: none;
}

/* ---------- LEGAL CONTENT ---------- */

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

.legal-content {
  padding: 40px 0 20px;
}

.legal-content section {
  background-color: transparent !important;
  color: #1A564A;
  padding: 4px 0 2px 0;
}

.legal-content h2 {
  margin: 34px 0 12px 0;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 23px;
  color: #1A564A;
  line-height: 1.25;
  border-left: 6px solid #D8261E;
  padding-left: 14px;
}

.legal-content h3 {
  margin: 22px 0 8px 0;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 18px;
  color: #1A564A;
}

.legal-content p {
  margin: 0 0 14px 0;
  font-size: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

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

.legal-content strong {
  color: #1A564A;
}

.legal-lede {
  font-size: 17px;
  background-color: #F4E0B4;
  border-top: 3px solid #C08848;
  border-bottom: 3px solid #C08848;
  padding: 16px 0;
  margin-bottom: 18px;
}

.legal-meta {
  font-size: 14px;
  font-style: italic;
  color: #1A564A;
  margin-bottom: 6px;
}

/* ---------- TABLE OF CONTENTS ---------- */

.legal-toc {
  background-color: #F4E0B4;
  border: 3px solid #1A564A;
  padding: 20px 24px;
  margin: 24px 0 30px;
}

.legal-toc h2 {
  margin: 0 0 12px 0;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 19px;
  border-left: none;
  padding-left: 0;
  color: #1A564A;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 32px;
}

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

.legal-toc a {
  color: #1A564A;
  border-bottom: 1px solid #C08848;
}

.legal-toc a:hover {
  color: #D8261E;
  border-bottom-color: #D8261E;
  text-decoration: none;
}

/* ---------- LEGAL FOOTER ---------- */

.legal-footer {
  background-color: #F4E0B4;
  border-top: 4px solid #1A564A;
  padding: 28px 24px 40px;
  text-align: center;
}

.legal-footer-links {
  margin-bottom: 14px;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.legal-footer-links a {
  color: #1A564A;
  border-bottom: 2px solid transparent;
  padding: 0 4px;
}

.legal-footer-links a:hover {
  color: #D8261E;
  border-bottom-color: #AC8458;
  text-decoration: none;
}

.legal-footer-sep {
  color: #C08848;
  padding: 0 6px;
}

.legal-footer-brand {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px 0;
}

.legal-footer-address {
  font-size: 14px;
  margin: 0 0 6px 0;
}

.legal-footer-contact {
  font-size: 14px;
  margin: 0 0 10px 0;
}

.legal-footer-copy {
  font-size: 13px;
  margin: 0;
}

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

  .legal-header h1 {
    font-size: 24px;
  }

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