/* ==========================================================================
   Oh Canada Buy Here Inc — Legal Stylesheet (privacy.html / terms-of-service.html)
   Loaded by legal pages only. Defines its own body background so legal pages
   never depend on the homepage stylesheet.
   ========================================================================== */

.legal-page {
  background-color: #FAF7F2;
  color: #241E18;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

.legal-page * {
  box-sizing: border-box;
}

.legal-page a {
  color: #D2451E;
  text-decoration: none;
}

.legal-page a:hover {
  color: #A83217;
}

/* --------------------------------------------------------------------------
   Scope isolation: never let homepage section styling bleed into legal text
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   Legal header (a <header> element, never a <section>)
   -------------------------------------------------------------------------- */

.legal-header {
  background-color: #D2451E;
  color: #FFFFFF;
  padding: 60px 0 48px;
  border-bottom: 4px solid #A83217;
}

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

.legal-header .legal-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #FBE9E2;
  margin-bottom: 12px;
}

.legal-header h1 {
  color: #FFFFFF;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 14px;
}

.legal-header .legal-updated {
  font-size: 0.9rem;
  color: #FBE9E2;
}

/* --------------------------------------------------------------------------
   Legal content
   -------------------------------------------------------------------------- */

.legal-content {
  padding: 56px 0 80px;
}

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

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #A83217;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 48px 0 16px;
  scroll-margin-top: 40px;
}

.legal-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #241E18;
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

.legal-content p {
  color: #3A322A;
  margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
  color: #3A322A;
  margin: 0 0 18px 22px;
  padding-left: 4px;
}

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

.legal-content strong {
  color: #241E18;
}

.legal-content section {
  scroll-margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Table of contents
   -------------------------------------------------------------------------- */

.legal-toc {
  background-color: #FFFFFF;
  border: 1px solid #E6DCCD;
  border-left: 4px solid #D2451E;
  border-radius: 8px;
  padding: 24px 26px;
  margin: 0 0 40px;
}

.legal-toc h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #241E18;
  letter-spacing: 0.02em;
}

.legal-toc ol {
  margin-bottom: 0;
}

.legal-toc a {
  color: #D2451E;
}

.legal-toc a:hover {
  color: #A83217;
}

/* --------------------------------------------------------------------------
   Legal footer
   -------------------------------------------------------------------------- */

.legal-footer {
  background-color: #241E18;
  color: #EAE3D8;
  padding: 40px 0;
  text-align: center;
}

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

.legal-footer .legal-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.legal-footer p {
  color: #B8AFA2;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.legal-footer nav a {
  color: #EAE3D8;
  font-size: 0.9rem;
  margin: 0 10px;
}

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

/* --------------------------------------------------------------------------
   Back to top link
   -------------------------------------------------------------------------- */

.back-to-top {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #D2451E;
}

.back-to-top:hover {
  color: #A83217;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .legal-header {
    padding: 44px 0 36px;
  }

  .legal-content {
    padding: 40px 0 56px;
  }

  .legal-content h2 {
    font-size: 1.3rem;
  }
}
