/* ==========================================================================
   JohnTreyJackson Investments LLC — legal stylesheet (privacy + terms)
   Loaded ONLY by privacy.html and terms-of-service.html
   Theme: LIGHT blueprint paper with PRUSSIAN BLUE #1D4E89 + BURNT ORANGE #C2410C
   ========================================================================== */

.legal-page {
  background-color: #F3F5F7;
  color: #16202E;
}

:root {
  --paper: #F3F5F7;
  --paper-deep: #EAEEF3;
  --white: #FFFFFF;
  --ink: #16202E;
  --ink-soft: #2A3747;
  --muted: #55606F;
  --prussian: #1D4E89;
  --prussian-dark: #173F6B;
  --prussian-light: #2C6CA9;
  --orange: #C2410C;
  --tan: #E8A87C;
  --line: #C9D5E0;
  --line-soft: #DDE5EE;
  --blue-tint: #E8EEF5;
  --mono: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
}

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

html {
  font-size: 16px;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #F3F5F7;
  color: #16202E;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ---------- Scope isolation (protects against stray homepage rules) ---------- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Layout container (must carry margin + padding) ---------- */
.legal-content .container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   LEGAL HEADER (a <header> element with solid background)
   ========================================================================== */
.legal-header {
  background-color: #1D4E89;
  background-image: linear-gradient(135deg, #1D4E89 0%, #173F6B 100%);
  border-bottom: 4px solid #C2410C;
}

.legal-header-inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

.legal-header-kicker {
  font-family: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E8A87C;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-header h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.legal-header-meta {
  margin-top: 14px;
  color: #C6D6EA;
  font-size: 15px;
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */
.toc {
  background-color: #FFFFFF;
  border: 1px solid #C9D5E0;
  border-left: 4px solid #C2410C;
  padding: 26px 28px;
  margin: 44px 0 40px;
}

.toc-title {
  font-family: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1D4E89;
  font-weight: 700;
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

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

.toc-list a {
  color: #2A3747;
  text-decoration: none;
  font-size: 15px;
}
.toc-list a:hover {
  color: #C2410C;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   LEGAL CONTENT SECTIONS
   ========================================================================== */
.legal-content section {
  padding: 26px 0 34px;
  border-bottom: 1px solid #C9D5E0;
}

.legal-content section h2 {
  font-size: 24px;
  line-height: 1.3;
  color: #173F6B;
  font-weight: 800;
  margin-bottom: 16px;
  scroll-margin-top: 20px;
}

.legal-content section h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #C2410C;
  margin-right: 12px;
  vertical-align: middle;
}

.legal-content section h3 {
  font-size: 18px;
  color: #2A3747;
  font-weight: 800;
  margin: 20px 0 10px;
}

.legal-content section p {
  color: #55606F;
  font-size: 16px;
  margin-bottom: 16px;
}
.legal-content section p:last-child {
  margin-bottom: 0;
}

.legal-content section a {
  color: #1D4E89;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content section a:hover {
  color: #C2410C;
}

/* ---------- Back to homepage link ---------- */
.legal-back {
  padding: 40px 0 48px;
}

.legal-back-link {
  display: inline-block;
  padding: 13px 24px;
  background-color: #1D4E89;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  border-radius: 4px;
  transition: background-color 0.18s ease;
}
.legal-back-link:hover {
  background-color: #C2410C;
  color: #FFFFFF !important;
}

/* ==========================================================================
   LEGAL FOOTER
   ========================================================================== */
.legal-footer {
  background-color: #EAEEF3;
  border-top: 3px double #1D4E89;
  padding: 32px 0 34px;
}

.legal-footer-inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #55606F;
}

.legal-footer-link {
  color: #1D4E89;
  font-weight: 700;
  text-decoration: none;
}
.legal-footer-link:hover {
  color: #C2410C;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 680px) {
  .toc-list {
    columns: 1;
  }
  .legal-header-inner {
    padding: 44px 20px 38px;
  }
  .legal-content .container {
    padding: 0 20px;
  }
  .legal-content section h2 {
    font-size: 21px;
  }
  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
