.legal-page {
  background-color: #FDFAF2;
  color: #7A7057;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  line-height: 1.75;
  color: #7A7057;
  background-color: #FDFAF2;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  color: #2B2416;
  line-height: 1.25;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ============ LEGAL HEADER ============ */
.legal-header {
  background-color: #E8B53D;
  border-bottom: 4px solid #2B2416;
}

.legal-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
}

.legal-brand {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #2B2416;
}

.legal-home {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2B2416;
  border: 2px solid #2B2416;
  padding: 8px 16px;
  border-radius: 4px;
}

.legal-home:hover {
  background-color: #2B2416;
  color: #E8B53D;
  text-decoration: none;
}

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

.legal-header-title h1 {
  font-size: 44px;
  color: #2B2416;
  margin-bottom: 10px;
}

.legal-header-title p {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #2B2416;
}

/* ============ LEGAL CONTENT ============ */
.legal-content {
  padding: 64px 0 40px;
  background-color: #FDFAF2;
}

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

.toc {
  background-color: #F6EEDC;
  border: 1px solid #EADFC2;
  padding: 28px 32px;
  margin-bottom: 56px;
}

.toc h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin-bottom: 8px;
}

.toc li::before {
  content: "01";
  color: #E8B53D;
  font-weight: 700;
  margin-right: 10px;
}

.toc a {
  font-size: 14px;
  color: #2B2416;
}

.toc a:hover {
  color: #E8B53D;
  text-decoration: none;
}

.legal-content section {
  margin-bottom: 52px;
}

.legal-content h2 {
  font-size: 28px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #EADFC2;
}

.sec-num {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #2B2416;
  background-color: #E8B53D;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  margin-right: 14px;
  vertical-align: middle;
}

.legal-content h3 {
  font-size: 20px;
  margin: 20px 0 10px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 14px 24px;
}

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

/* ============ LEGAL FOOTER ============ */
.legal-footer {
  background-color: #FDFAF2;
  border-top: 1px solid #EADFC2;
  padding: 40px 0 44px;
  text-align: center;
}

.legal-footer .return-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #2B2416;
  border-bottom: 2px solid #E8B53D;
  margin-bottom: 18px;
}

.legal-footer p {
  font-size: 13px;
  color: #7A7057;
  margin-top: 8px;
}

.legal-footer a {
  color: #7A7057;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .legal-header-title h1 {
    font-size: 32px;
  }

  .legal-header-inner {
    flex-direction: column;
    gap: 16px;
  }

  .legal-content {
    padding: 44px 0 24px;
  }

  .toc {
    padding: 22px 22px;
  }

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