/* ============================================================
   ZEREP INSURANCE AGENCY, INC.
   Legal stylesheet — privacy & terms of service
   ============================================================ */

:root {
  --cream: #FAF7F2;
  --cream-2: #F3EDE3;
  --cream-3: #EDE5D8;
  --paper: #FFFFFF;
  --ink: #221B12;
  --ink-soft: #4A4134;
  --muted: #6B6051;
  --burgundy: #7F1D1D;
  --burgundy-deep: #6B1717;
  --burgundy-bright: #991B1B;
  --line: #E7DED0;
  --line-strong: #D8CCBB;
  --on-burgundy: #FBF6EE;
  --on-burgundy-muted: #E7D5C9;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Body background must be defined here — legal pages load ONLY legal.css */
.legal-page {
  background-color: #FAF7F2;
  color: #221B12;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--burgundy);
}

a:hover {
  color: var(--burgundy-red);
}

/* ------------------------------------------------------------
   Header (must be a header/div, never a section)
   ------------------------------------------------------------ */
.legal-header {
  background: var(--burgundy-deep);
  padding: 56px 24px 44px;
}

.legal-header .inner {
  max-width: 820px;
  margin: 0 auto;
}

.legal-header .kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-burgundy);
  background: var(--burgundy);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.legal-header h1 {
  color: var(--on-burgundy);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.legal-header .meta {
  color: var(--on-burgundy-muted);
  font-size: 0.95rem;
}

.legal-header .meta a {
  color: var(--on-burgundy);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Content
   ------------------------------------------------------------ */
.legal-content {
  padding: 48px 24px 40px;
}

.legal-content .container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content section {
  background-color: transparent !important;
  padding: 34px 0 8px;
  border-bottom: 1px solid var(--line);
}

.legal-content section:last-of-type {
  border-bottom: none;
}

.legal-content h2 {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-top: 12px;
}

.legal-content h3 {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 10px;
}

.legal-content p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 22px;
  color: var(--ink-soft);
}

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

.legal-content strong {
  color: var(--ink);
}

/* ------------------------------------------------------------
   Table of contents
   ------------------------------------------------------------ */
.toc {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  margin: 0 0 8px;
}

.toc h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
  padding-top: 0;
}

.toc ol {
  margin: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

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

.toc a {
  color: var(--burgundy);
  font-weight: 600;
  font-size: 0.92rem;
}

.toc a:hover {
  color: var(--burgundy-red);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.legal-footer {
  background: var(--burgundy-deep);
  color: var(--on-burgundy);
  padding: 32px 24px;
  text-align: center;
}

.legal-footer .inner {
  max-width: 820px;
  margin: 0 auto;
}

.legal-footer p {
  color: var(--on-burgundy-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.legal-footer a {
  color: var(--on-burgundy);
  font-weight: 700;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}
