/* CRHD Fund - shared legal stylesheet for privacy and terms pages
   Palette:
   --well-depth   #17201E  page background
   --current-mist #E7EBE4  body text on dark
   --flow-teal    #3E9E96  accent
   --drum-brass   #B99A55  frame and rules
   --chart-paper  #F2EFE2  content panel
   --chart-ink    #22302B  ink on chart paper
   --bankstone    #101715  header / footer
   --silt-cloud   #2A3733  panel bands
*/

:root {
  --well-depth: #17201E;
  --current-mist: #E7EBE4;
  --flow-teal: #3E9E96;
  --drum-brass: #B99A55;
  --chart-paper: #F2EFE2;
  --chart-ink: #22302B;
  --bankstone: #101715;
  --silt-cloud: #2A3733;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.legal-body {
  margin: 0;
  background-color: #17201E;
  color: #E7EBE4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

.legal-body a {
  color: #3E9E96;
  text-decoration: underline;
}

.legal-body a:hover {
  color: #E7EBE4;
}

/* ---------- Legal header ---------- */

.legal-header {
  background-color: #101715;
  border-bottom: 3px solid #B99A55;
}

.legal-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  color: #F2EFE2;
  text-decoration: none;
}

.legal-brand:hover {
  color: #3E9E96;
}

.legal-brand-sub {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3E9E96;
}

/* ---------- Legal main ---------- */

.legal-content {
  background-color: #17201E;
}

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

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

.legal-kicker {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3E9E96;
  margin: 44px 0 10px;
}

.legal-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.15;
  color: #F2EFE2;
  margin: 0 0 10px;
}

.legal-updated {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  color: #E7EBE4;
  margin: 0 0 26px;
}

.legal-intro {
  background-color: #F2EFE2;
  color: #22302B;
  border-left: 6px solid #3E9E96;
  padding: 22px 26px;
  font-size: 16px;
  margin: 0 0 34px;
}

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

.legal-toc {
  background-color: #2A3733;
  border-top: 4px solid #B99A55;
  padding: 24px 28px;
  margin: 0 0 40px;
}

.legal-toc-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: #F2EFE2;
  margin: 0 0 14px;
}

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

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

.legal-toc-list a {
  color: #E7EBE4;
  text-decoration: none;
  font-size: 15px;
}

.legal-toc-list a:hover {
  color: #3E9E96;
  text-decoration: underline;
}

/* ---------- Sections ---------- */

.legal-section {
  margin: 0 0 34px;
}

.legal-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.25;
  color: #F2EFE2;
  border-bottom: 2px solid #B99A55;
  padding-bottom: 8px;
  margin: 0 0 14px;
}

.legal-section p {
  font-size: 16px;
  color: #E7EBE4;
  margin: 0 0 14px;
}

.legal-back {
  margin: 40px 0 8px;
  padding: 18px 22px;
  background-color: #2A3733;
  border-left: 6px solid #3E9E96;
  font-size: 16px;
}

.legal-back a {
  color: #3E9E96;
  font-weight: 700;
}

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

.legal-footer {
  background-color: #101715;
  border-top: 3px solid #B99A55;
  margin-top: 40px;
}

.legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 24px 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: #F2EFE2;
}

.legal-footer-line {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  color: #E7EBE4;
}

.legal-footer-line a {
  color: #3E9E96;
  text-decoration: underline;
}

.legal-footer-line a:hover {
  color: #F2EFE2;
}

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

@media (max-width: 640px) {
  .legal-title {
    font-size: 32px;
  }

  .legal-toc-list {
    columns: 1;
  }
}
