/* ============================================================
   Believe in Bttr. LLC — Legal stylesheet
   Used by privacy.html and terms-of-service.html ONLY.
   Legal pages load ONLY this file, so every color is defined here.
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  background: #F6F1E3;
  color: #2E2A22;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ---------- legal header ---------- */

.legal-header {
  background: #33261A;
  color: #F6F1E3;
  padding: 26px 24px 22px;
  border-bottom: 6px solid #9A7B3C;
}

.legal-back {
  display: inline-block;
  color: #E7DCC4;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-bottom: 2px solid #9A7B3C;
  padding-bottom: 2px;
  margin-bottom: 12px;
}

.legal-back:hover,
.legal-back:focus {
  color: #F6F1E3;
  border-bottom-color: #D9BFAE;
}

.legal-kicker {
  margin: 0;
  color: #F6F1E3;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ---------- content container ---------- */

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

.legal-title {
  font-size: 40px;
  color: #2E2A22;
  margin: 40px 0 8px;
  border-bottom: 4px solid #3F6B4F;
  padding-bottom: 14px;
}

.legal-updated {
  font-size: 14.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #33261A;
  margin: 0 0 20px;
}

.legal-updated::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D9BFAE;
  border: 2px solid #8F4A33;
  margin-right: 9px;
  vertical-align: baseline;
}

.legal-intro {
  font-size: 18px;
  background: #E7DCC4;
  border-left: 6px solid #3F6B4F;
  border-right: 3px solid #33261A;
  padding: 20px 22px;
  color: #2E2A22;
}

/* ---------- table of contents ---------- */

.legal-toc {
  background: #E7DCC4;
  border: 2px solid #33261A;
  border-top: 6px solid #9A7B3C;
  border-radius: 3px;
  padding: 22px 26px 26px;
  margin: 30px 0 40px;
}

.legal-toc-title {
  font-size: 20px;
  margin: 0 0 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

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

.legal-toc-list a {
  color: #3F6B4F;
  text-decoration: none;
  border-bottom: 1px solid #9A7B3C;
}

.legal-toc-list a:hover,
.legal-toc-list a:focus {
  color: #2E2A22;
  border-bottom-color: #3F6B4F;
}

/* ---------- sections (scope isolation) ---------- */

.legal-content section {
  background: transparent !important;
  margin: 0 0 32px;
}

.legal-content h2 {
  font-size: 25px;
  color: #2E2A22;
  margin: 38px 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #9A7B3C;
}

.legal-content p {
  font-size: 17px;
  margin: 0 0 1em;
  color: #2E2A22;
}

.legal-content a {
  color: #3F6B4F;
  text-decoration: underline;
}

.legal-content a:hover,
.legal-content a:focus {
  color: #33261A;
}

.legal-foot {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 3px solid #33261A;
  font-size: 17px;
}

.legal-foot a {
  display: inline-block;
  background: #3F6B4F;
  color: #F6F1E3;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 3px;
  font-weight: 700;
}

.legal-foot a:hover,
.legal-foot a:focus {
  background: #33261A;
  color: #F6F1E3;
}

/* ---------- legal footer ---------- */

.legal-footer {
  background: #33261A;
  color: #F6F1E3;
  padding: 30px 24px 34px;
  text-align: center;
}

.legal-footer p {
  margin: 0 0 8px;
  font-size: 15px;
  color: #F6F1E3;
}

.legal-footer-brand {
  font-size: 19px !important;
  font-weight: 700;
  color: #F6F1E3;
}

.legal-footer a {
  color: #E7DCC4;
  text-decoration: none;
  border-bottom: 1px solid #9A7B3C;
}

.legal-footer a:hover,
.legal-footer a:focus {
  color: #F6F1E3;
  border-bottom-color: #D9BFAE;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .legal-title {
    font-size: 30px;
  }
  .legal-toc-list {
    columns: 1;
  }
  .legal-intro,
  .legal-content p {
    font-size: 16px;
  }
}
