/* ============================================================
   Legal pages stylesheet (privacy.html / terms-of-service.html)
   Canuck Containers LLC - light warm-paper legal theme
   ============================================================ */

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.legal-page {
  background-color: #FAF6EF;
  color: #2B2720;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ---------- Shared content containers ----------
   Any container that uses a max-width also centers itself
   and keeps horizontal padding so content never touches
   the viewport edges. */

.legal-container,
.legal-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 80px;
}

/* ============================================================
   LEGAL HEADER (solid deep-charcoal band)
   ============================================================ */

.legal-header {
  background-color: #201C15;
  color: #FFFFFF;
  border-bottom: 6px solid #C2571B;
}

.legal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #3A332A;
}

.legal-brand {
  color: #E8DCC8;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.legal-brand:hover {
  color: #FFFFFF;
}

.legal-home {
  color: #E8DCC8;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.legal-home:hover {
  color: #FFFFFF;
  border-bottom-color: #C2571B;
}

.legal-header-main {
  padding-top: 56px;
  padding-bottom: 56px;
}

.legal-kicker {
  color: #C2571B;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin: 12px 0 10px;
}

.legal-date {
  color: #B5A68C;
  font-size: 15px;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

.legal-toc {
  position: sticky;
  top: 24px;
  background-color: #FFFFFF;
  border: 1px solid #E3D8C6;
  border-top: 4px solid #C2571B;
  border-radius: 8px;
  padding: 24px 26px;
}

.legal-toc h2 {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6E6252;
  font-weight: 800;
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: decimal;
  margin-left: 20px;
  counter-reset: toc;
}

.legal-toc li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.legal-toc a {
  color: #C2571B;
  font-weight: 600;
  text-decoration: none;
}

.legal-toc a:hover {
  color: #A84A16;
  text-decoration: underline;
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */

/* Scope isolation: content sections never carry their own
   background so the paper body always shows through. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  padding: 34px 0;
  border-top: 1px solid #E3D8C6;
  scroll-margin-top: 24px;
}

.legal-content section:first-child {
  border-top: 0;
}

.legal-content h2 {
  color: #201C15;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}

.legal-content h3 {
  color: #201C15;
  font-size: 19px;
  font-weight: 800;
  margin: 22px 0 10px;
}

.legal-content p {
  color: #2B2720;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 14px 22px;
  color: #2B2720;
}

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

/* ============================================================
   LEGAL FOOTER
   ============================================================ */

.legal-footer {
  background-color: #201C15;
  border-top: 1px solid #3A332A;
  padding: 26px 0;
  text-align: center;
}

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

.legal-footer p:last-child {
  margin-bottom: 0;
}

.legal-footer a {
  color: #E8DCC8;
  font-weight: 600;
  text-decoration: none;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .legal-toc {
    position: static;
  }
  .legal-header-main {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .legal-header h1 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .legal-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .legal-content h2 {
    font-size: 22px;
  }
}
