/* ============================================================
   BBSC REALTY — Legal stylesheet (privacy.html / terms-of-service.html)
   LIGHT limestone theme · loaded alone, never with style.css
   ============================================================ */

.legal-page {
  background-color: #F5F1E8;
  color: #2B241C;
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Legal header must be a div or header element, solid background */
.legal-header {
  background-color: #4A3B28;
  border-bottom: 4px solid #C08552;
}

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

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.legal-brand .legal-arch {
  width: 22px;
  height: 28px;
  border: 3px solid #C08552;
  border-radius: 11px 11px 0 0;
  border-bottom: none;
  position: relative;
}

.legal-brand .legal-arch::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  background-color: #C08552;
  border-radius: 2px;
}

.legal-brand .legal-wordmark {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.16em;
  color: #F5F1E8;
  text-decoration: none;
}

.legal-home-link {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F2E7D8;
  text-decoration: none;
  border: 1px solid #C08552;
  border-radius: 3px;
  padding: 8px 14px;
}

.legal-home-link:hover {
  background-color: #C08552;
  color: #FFFFFF;
}

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

.legal-content h1 {
  color: #4A3B28;
  font-size: 40px;
  line-height: 1.15;
  margin-top: 44px;
  margin-bottom: 10px;
  padding-top: 24px;
  border-top: 1px solid #EBE2D0;
}

.legal-updated {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #837765;
  margin-bottom: 34px;
}

.legal-intro {
  font-size: 17px;
  color: #2B241C;
  margin-bottom: 40px;
}

/* Table of contents — must use class selectors, never bare nav{} */
.legal-toc {
  background-color: #FFFFFF;
  border: 1px solid #EBE2D0;
  border-radius: 6px;
  padding: 26px 28px;
  margin-bottom: 44px;
}

.legal-toc h2 {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C08552;
  margin: 0 0 16px;
}

.legal-toc .toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: 40px;
}

.legal-toc .toc-list li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.legal-toc .toc-list a {
  color: #4A3B28;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid #EBE2D0;
  padding-bottom: 2px;
}

.legal-toc .toc-list a:hover {
  color: #C08552;
  border-bottom-color: #C08552;
}

/* Scope isolation — never bleed other site styles into legal sections */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  margin-bottom: 40px;
  padding-top: 8px;
}

.legal-content h2 {
  color: #4A3B28;
  font-size: 26px;
  line-height: 1.25;
  margin-top: 40px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #C08552;
  scroll-margin-top: 20px;
}

.legal-content h3 {
  color: #4A3B28;
  font-size: 20px;
  margin-top: 26px;
  margin-bottom: 10px;
}

.legal-content p {
  color: #3A3125;
  font-size: 16px;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  color: #3A3125;
  font-size: 16px;
  margin: 0 0 16px 24px;
  padding: 0;
}

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

.legal-content strong {
  color: #2B241C;
}

.legal-content .back-top {
  display: inline-block;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C08552;
  text-decoration: none;
  margin-top: 6px;
}

.legal-content .back-top:hover {
  text-decoration: underline;
}

.legal-footer {
  background-color: #4A3B28;
  color: #D9CCB6;
}

.legal-footer .legal-footer-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}

.legal-footer .legal-footer-inner p {
  color: #D9CCB6;
  font-size: 14px;
  margin-bottom: 8px;
}

.legal-footer a {
  color: #F2E7D8;
  text-decoration: none;
}

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

.legal-footer .legal-footer-nav {
  margin-top: 16px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-footer .legal-footer-nav a {
  margin: 0 10px;
  border-bottom: 1px solid #C08552;
  padding-bottom: 2px;
}

@media (max-width: 700px) {
  .legal-header .legal-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-toc .toc-list {
    column-count: 1;
  }

  .legal-content h1 {
    font-size: 32px;
  }
}
