/* ════════════════════════════════════════════════════════════
   LEGAL PAGES CSS — deferitappusa.com
   For: privacy-policy.html, terms-of-service.html
   Standalone — links AFTER style.css to override what's needed
   ════════════════════════════════════════════════════════════ */

/* ── Legal page header ── */
.legal-hero {
  background: linear-gradient(135deg, #1E7A5A 0%, #2E9970 100%);
  color: #fff;
  padding: 64px 20px 48px;
  text-align: center;
}
.legal-hero h1 {
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.legal-hero .legal-meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.legal-hero .legal-meta strong { color: #00C896; }

/* ── Breadcrumb strip ── */
.legal-breadcrumb {
  background: #EAF8F3;
  border-bottom: 1px solid #C5E8DC;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: #2D6B52;
}
.legal-breadcrumb a { color: #1E7A5A; text-decoration: none; font-weight: 600; }
.legal-breadcrumb a:hover { text-decoration: underline; }
.legal-breadcrumb span { color: #C5E8DC; margin: 0 8px; }

/* ── Main content layout ── */
.legal-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  align-items: start;
}

/* ── Sidebar TOC ── */
.legal-toc {
  position: sticky;
  top: 24px;
  background: #fff;
  border: 1px solid #C5E8DC;
  border-radius: 12px;
  padding: 20px;
  font-size: 0.85rem;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.legal-toc-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1E7A5A;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #C5E8DC;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
  line-height: 1.45;
}
.legal-toc li::before {
  content: counter(toc) ".";
  position: absolute;
  left: 0;
  color: #1E7A5A;
  font-weight: 700;
  font-size: 0.78rem;
}
.legal-toc a {
  color: #0D3D28;
  text-decoration: none;
  transition: color 0.15s;
}
.legal-toc a:hover { color: #1E7A5A; }

/* ── Main article ── */
.legal-content {
  background: #fff;
  border-radius: 14px;
  padding: 40px 44px;
  box-shadow: 0 2px 16px rgba(30,122,90,0.06);
  border: 1px solid #C5E8DC;
}
.legal-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1E7A5A;
  margin: 36px 0 14px;
  padding-top: 12px;
  scroll-margin-top: 20px;
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; }
.legal-content h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #00C896;
  border-radius: 2px;
  margin-bottom: 12px;
}
.legal-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0D3D28;
  margin: 24px 0 10px;
}
.legal-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #2D6B52;
  margin-bottom: 14px;
}
.legal-content p strong { color: #0D3D28; }
.legal-content ul, .legal-content ol {
  margin: 12px 0 18px 24px;
  font-size: 0.95rem;
  color: #2D6B52;
  line-height: 1.75;
}
.legal-content ul li, .legal-content ol li {
  margin-bottom: 8px;
  padding-left: 6px;
}
.legal-content ul li { list-style: disc; }
.legal-content ol li { list-style: decimal; }
.legal-content a {
  color: #1E7A5A;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: #00C896; }
.legal-content code {
  background: #EAF8F3;
  color: #0D3D28;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: ui-monospace, monospace;
}

/* ── Highlight callout box ── */
.legal-callout {
  background: #EAF8F3;
  border-left: 4px solid #1E7A5A;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: #0D3D28;
  line-height: 1.65;
}
.legal-callout strong { color: #1E7A5A; }

/* ── Warning callout ── */
.legal-warning {
  background: #FFF7ED;
  border-left: 4px solid #FF6B35;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: #78350F;
  line-height: 1.65;
}
.legal-warning strong { color: #FF6B35; }

/* ── Contact box at bottom ── */
.legal-contact {
  background: linear-gradient(135deg, #1E7A5A 0%, #2E9970 100%);
  color: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 32px;
  text-align: center;
}
.legal-contact h3 {
  color: #fff !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 8px;
}
.legal-contact p {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.92rem;
}
.legal-contact a {
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: underline;
}

/* ── Last updated badge ── */
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,200,150,0.15);
  border: 1px solid rgba(0,200,150,0.35);
  color: #00C896;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ── Definitions list ── */
.legal-content dl {
  margin: 16px 0 20px;
  padding: 16px 20px;
  background: #F5FDFB;
  border: 1px solid #C5E8DC;
  border-radius: 8px;
}
.legal-content dt {
  font-weight: 700;
  color: #0D3D28;
  margin-top: 10px;
}
.legal-content dt:first-child { margin-top: 0; }
.legal-content dd {
  color: #2D6B52;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 4px 0 0 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legal-toc {
    position: relative;
    top: auto;
    max-height: none;
  }
  .legal-content {
    padding: 28px 24px;
  }
}

@media (max-width: 640px) {
  .legal-hero { padding: 40px 20px 32px; }
  .legal-content { padding: 24px 18px; }
  .legal-content h2 { font-size: 1.15rem; }
  .legal-content p, .legal-content ul, .legal-content ol { font-size: 0.9rem; }
}
