/* ============================================================
   legal.css — shared legal pages stylesheet for BACAFAB LLC
   These legal pages load ONLY this file. It defines its own
   page background and text colours with strong contrast.
   Single-column centered legal shape. Opaque surfaces.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body.legal-body,
body {
  margin: 0;
  background-color: #F1EFE8;
  color: #26282A;
  overflow-x: hidden;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.62;
}

* {
  box-sizing: border-box;
}

/* Scope isolation: sections on legal pages always stay transparent
   so only the legal.css layout rules apply. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

a {
  color: #7A5F12;
  text-underline-offset: 3px;
}
a:hover {
  color: #26282A;
}

.go-top-legal {
  display: none;
}

/* ---------- header ---------- */
.legal-header {
  background-color: #26282A;
  border-bottom: 6px solid #A8801F;
}
.legal-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 24px 30px;
}
.legal-kicker {
  margin: 0 0 6px;
  color: #E9C46A;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.legal-header h1 {
  margin: 0;
  color: #FAF8F1;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1.08;
}
.legal-lede {
  margin: 12px 0 0;
  color: #EDEAE2;
  font-size: 17px;
  max-width: 58ch;
}
.legal-home-link {
  color: #E9C46A;
}
.legal-home-link:hover {
  color: #FAF8F1;
}

/* ---------- row layout ---------- */
.legal-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
}
.legal-toc-rail {
  flex: 0 0 240px;
  padding: 34px 0 0;
}
.legal-toc {
  position: sticky;
  top: 20px;
  padding: 18px 18px 20px;
  background-color: #FAF8F1;
  border: 1px solid #D0BB6D;
}
.legal-toc h2 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #26282A;
}
.legal-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-toc li {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.4;
}
.legal-toc a {
  color: #5B5205;
  text-decoration-thickness: 1px;
}
.legal-toc a:hover {
  color: #26282A;
}

.legal-content {
  flex: 1 1 480px;
  min-width: 0;
  padding: 34px 0 0;
}
.legal-content section {
  padding: 0 0 12px;
}
.legal-content h2 {
  margin: 34px 0 12px;
  color: #34363A;
  font-size: 26px;
  line-height: 1.2;
  border-top: 1px solid #CEBE94;
  padding-top: 22px;
}
.legal-content h2 span.anchor-num {
  color: #A8801F;
  font-weight: normal;
  margin-right: 8px;
}
.legal-content h3 {
  margin: 22px 0 8px;
  color: #34363A;
  font-size: 20px;
}
.legal-content p {
  margin: 0 0 14px;
  color: #2b2d30;
  max-width: 60ch;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: #2b2d30;
}
.legal-content li {
  margin: 0 0 9px;
}
/* The introduction word about the developer appears once on the
   privacy page; styled here so it is clearly visible text. */
.legal-dev-note {
  border-left: 3px solid #A8801F;
  padding: 8px 0 8px 16px;
  margin: 0 0 20px;
  background-color: #FAF8F1;
}
.legal-dev-note p {
  color: #26282A;
}
.contact-legal-address {
  display: block;
  max-width: 56ch;
  padding: 12px 16px;
  border: 1px solid #CEBE94;
  background-color: #F1EFE8;
  color: #26282A;
  line-height: 1.7;
  margin: 4px 0 16px;
}
.phone-link {
  color: #26282A;
}

/* ---------- footer ---------- */
.legal-footer {
  margin-top: 46px;
  border-top: 4px solid #A8801F;
  background-color: #F1EFE8;
}
.legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 24px 34px;
}
.legal-footer-nav {
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.legal-footer-nav a {
  color: #7A5F12;
}
.legal-footer-note {
  margin: 8px 0 0;
  color: #48494B;
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .legal-main {
    display: block;
  }
  .legal-toc-rail {
    display: none;
  }
  .legal-content {
    padding-top: 10px;
  }
}
