/* Shared legal stylesheet for privacy and terms pages */

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", Times, serif;
  background-color: #EEE4D0;
  color: #3E3028;
  line-height: 1.72;
  overflow-x: hidden;
}

a {
  color: #7A4A18;
  text-decoration: underline;
}

a:hover {
  color: #985E20;
}

.legal-header {
  background-color: #281E18;
  color: #EEE4D0;
  padding: 44px 24px 36px 24px;
}

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

.legal-header-brand {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #E2D4BE;
  margin-bottom: 20px;
  text-decoration: none;
}

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

.legal-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1.15;
  color: #EEE4D0;
  font-weight: 700;
}

.legal-header-meta {
  margin-top: 14px;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9B08A;
  font-weight: 700;
}

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

.legal-toc {
  background-color: #E2D4BE;
  border-left: 6px solid #985E20;
  padding: 24px 28px;
  margin: 34px auto 30px auto;
  max-width: 820px;
}

.legal-toc-title {
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7A4A18;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
  font-size: 0.94rem;
}

.legal-toc-list a {
  color: #3E3028;
  text-decoration: none;
}

.legal-toc-list a:hover {
  color: #985E20;
  text-decoration: underline;
}

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

.legal-content section {
  background-color: transparent !important;
  padding: 6px 0 20px 0;
}

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  color: #3E3028;
  font-weight: 700;
  margin: 26px 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #C9B08A;
  scroll-margin-top: 18px;
}

.legal-content p {
  font-size: 1rem;
  color: #3E3028;
  margin-bottom: 13px;
}

.legal-content ul {
  margin: 6px 0 16px 22px;
}

.legal-content ul li {
  font-size: 1rem;
  color: #3E3028;
  margin-bottom: 8px;
  padding-left: 4px;
}

.legal-content strong {
  color: #7A4A18;
}

.legal-note {
  background-color: #E2D4BE;
  border-left: 6px solid #C49660;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 0.98rem;
  color: #3E3028;
}

.legal-intro {
  font-size: 1.06rem;
  color: #3E3028;
  margin: 22px 0 6px 0;
}

.legal-footer {
  background-color: #281E18;
  color: #EEE4D0;
  padding: 34px 24px;
  margin-top: 40px;
  text-align: center;
}

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

.legal-footer p {
  font-size: 0.92rem;
  color: #DCC9AC;
  margin-bottom: 10px;
  line-height: 1.8;
}

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

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

.legal-footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #EEE4D0;
  margin-bottom: 12px;
}

.legal-back {
  display: inline-block;
  margin-top: 8px;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #C49660;
  text-decoration: none;
  border-bottom: 2px solid #985E20;
  padding-bottom: 2px;
}

.legal-back:hover {
  color: #EEE4D0;
  text-decoration: none;
}

@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 1.85rem;
  }
  .legal-toc-list {
    grid-template-columns: 1fr;
  }
  .legal-wrap {
    padding: 0 20px;
  }
}
