/* Shared styling for BillPulse legal pages (privacy, terms, disclaimer, refund,
   cookies). Loaded alongside styles.css, which provides the header/buttons/tokens. */

main.legal { max-width: 820px; }

.legal-head {
  padding: 2.5rem 0 1.25rem;
  border-bottom: 1.5px solid var(--gray-200);
  margin-bottom: 2rem;
}
.legal-head h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: .6rem;
}
.legal-head .updated {
  font-size: .85rem;
  color: var(--gray-500);
  font-weight: 600;
}

/* Prominent "read this" banner used on the disclaimer + top of terms. */
.legal-callout {
  background: #FFF7ED;
  border: 1.5px solid #FED7AA;
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.75rem;
  font-size: .92rem;
  line-height: 1.65;
  color: #7C2D12;
}
.legal-callout strong { color: #9A3412; }

.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 2rem 0 .65rem;
  scroll-margin-top: 90px;
}
.legal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 1.25rem 0 .4rem;
}
.legal-body p,
.legal-body li {
  font-size: .94rem;
  color: var(--gray-700);
  line-height: 1.75;
}
.legal-body p { margin-bottom: .85rem; }
.legal-body ul,
.legal-body ol { margin: 0 0 1rem 1.25rem; }
.legal-body li { margin-bottom: .4rem; }
.legal-body strong { color: var(--gray-900); }
.legal-body a { color: var(--blue); text-decoration: none; font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }

/* Emphatic clauses (warranty/liability) — legally it helps for these to be
   conspicuous, so we render them in a bordered, slightly heavier block. */
.legal-emphatic {
  background: var(--gray-100, #F1F5F9);
  border-left: 4px solid var(--gray-400, #94A3B8);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.25rem;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--gray-800, #1E293B);
  text-transform: none;
}
.legal-toc {
  background: var(--gray-100, #F1F5F9);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
}
.legal-toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); margin: 0 0 .6rem; }
.legal-toc ol { margin: 0; padding-left: 1.1rem; columns: 2; }
.legal-toc li { font-size: .85rem; margin-bottom: .25rem; }

@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
}

/* ─── Site footer (shared across content + legal pages) ─────────────────── */
.site-footer {
  border-top: 1.5px solid var(--gray-200);
  margin-top: 3.5rem;
  padding: 2.25rem 1.5rem 2.5rem;
}
.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  text-align: center;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  justify-content: center;
}
.site-footer-links a {
  font-size: .83rem;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
}
.site-footer-links a:hover { color: var(--blue); }
.site-footer-legal {
  max-width: 760px;
  margin: 1rem auto 0;
  font-size: .76rem;
  color: var(--gray-500);
  line-height: 1.6;
  text-align: center;
}
.site-footer-copy { font-size: .8rem; color: var(--gray-500); font-weight: 600; }
