/* ================================================
   Me2Leads — legal pages (privacy + refund)
   Shared by privacy.html and refund.html
   ================================================ */

/* ───────── HERO ───────── */
.legal-hero {
  padding: 160px 0 60px;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(212, 175, 55, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 60% at 0% 30%, rgba(11, 60, 93, 0.07), transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.legal-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.legal-hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.04;
  margin-bottom: 22px;
}
.legal-hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
}
.legal-hero p.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 18px;
}
.legal-hero .eyebrow {
  margin-bottom: 24px;
  justify-content: center;
}
.legal-hero .eyebrow::before, .legal-hero .eyebrow::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: currentColor;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--ink-mid);
}
.legal-meta strong { color: var(--ink); font-weight: 700; }
.legal-meta .sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-soft);
  display: inline-block;
}
.legal-meta .dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.18);
  flex-shrink: 0;
}

/* ───────── TL;DR / KEY POINTS ───────── */
.legal-tldr {
  padding: 20px 0 40px;
  background: var(--bg);
}
.legal-tldr-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.tldr-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tldr-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.tldr-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}
.tldr-head .tldr-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
}
.tldr-head h2 {
  color: white;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  margin: 0;
}
.tldr-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  position: relative;
}
@media (max-width: 760px) { .tldr-list { grid-template-columns: 1fr; gap: 14px; } }
.tldr-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.tldr-list li strong { color: white; font-weight: 700; }
.tldr-list .tldr-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.25);
  color: var(--accent-light);
  display: grid; place-items: center;
  margin-top: 1px;
}
.tldr-list .tldr-check svg { width: 12px; height: 12px; }

/* ───────── BODY: TOC + ARTICLE ───────── */
.legal-body {
  padding: 60px 0 120px;
  background: var(--bg);
}
.legal-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 880px) {
  .legal-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* TOC */
.legal-toc {
  position: sticky;
  top: 96px;
  align-self: flex-start;
}
@media (max-width: 880px) {
  .legal-toc {
    position: static;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
  }
}
.legal-toc h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legal-toc h5::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: currentColor;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mid);
  border-left: 2px solid transparent;
  padding-left: 14px;
  margin-left: -16px;
  transition: color .2s, border-color .2s, background .2s;
  border-radius: 0 6px 6px 0;
  line-height: 1.35;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-soft);
  flex-shrink: 0;
  width: 22px;
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.active {
  color: var(--primary);
  border-left-color: var(--accent);
  background: rgba(212, 175, 55, 0.08);
}
.legal-toc a.active::before { color: var(--accent); }

/* Article */
.legal-article {
  min-width: 0; /* allow shrinking inside grid */
}
.legal-section {
  scroll-margin-top: 96px;
  padding: 0 0 56px;
}
.legal-section + .legal-section {
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
}
.legal-section .section-num {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.legal-section h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.legal-section h3 {
  font-size: 18px;
  margin: 28px 0 10px;
  letter-spacing: -0.015em;
}
.legal-section p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: var(--ink-mid);
}
.legal-section p strong { color: var(--ink); font-weight: 700; }
.legal-section a.inline-link {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.5);
  transition: border-color .2s;
}
.legal-section a.inline-link:hover { border-bottom-color: var(--accent); }
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.legal-section ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mid);
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-section ul li strong { color: var(--ink); font-weight: 700; }

/* Definition table for data categories */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.55;
}
.legal-table tr:last-child th, .legal-table tr:last-child td {
  border-bottom: 0;
}
.legal-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.legal-table tbody th {
  font-weight: 700;
  color: var(--ink);
  width: 32%;
}
.legal-table tbody td { color: var(--ink-mid); }

@media (max-width: 768px) {
  .table-scroll {
    overflow-x: auto;
    width: 100%;
  }
  .legal-table {
    display: block;
    overflow-x: auto;
  }
}

/* Callouts */
.legal-callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin: 16px 0 22px;
}
.legal-callout .callout-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary-dark);
  display: grid; place-items: center;
}
.legal-callout .callout-icon svg { width: 16px; height: 16px; }
.legal-callout .callout-body { font-size: 14px; line-height: 1.6; color: var(--ink); }
.legal-callout .callout-body strong { font-weight: 700; }

.legal-callout.info {
  background: rgba(11, 60, 93, 0.05);
  border-color: rgba(11, 60, 93, 0.16);
}
.legal-callout.info .callout-icon {
  background: var(--primary);
  color: white;
}
.legal-callout.warn {
  background: rgba(231, 76, 60, 0.06);
  border-color: rgba(231, 76, 60, 0.22);
}
.legal-callout.warn .callout-icon {
  background: var(--hot);
  color: white;
}

/* Two-column key/value summary inside section */
.legal-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 20px;
}
@media (max-width: 600px) { .legal-pairs { grid-template-columns: 1fr; } }
.legal-pair {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.legal-pair .pair-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.legal-pair .pair-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  word-break: break-word;
}
.legal-pair .pair-meta {
  font-size: 13px;
  color: var(--ink-mid);
  margin-top: 4px;
  line-height: 1.5;
}

/* Status pills inline */
.pill-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--bg-tint);
  color: var(--ink);
  vertical-align: 1px;
}
.pill-inline.ok { background: rgba(39, 174, 96, 0.14); color: #1e8449; }
.pill-inline.no { background: rgba(231, 76, 60, 0.12); color: #b03a2e; }
.pill-inline.warn { background: rgba(243, 156, 18, 0.14); color: #b27800; }

/* Refund timeline */
.refund-timeline {
  position: relative;
  margin: 12px 0 22px;
  padding: 4px 0;
}
.refund-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--line));
  border-radius: 2px;
}
.refund-step {
  position: relative;
  padding: 14px 0 14px 56px;
}
.refund-step .step-dot {
  position: absolute;
  left: 8px;
  top: 16px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--accent);
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  z-index: 1;
}
.refund-step h4 {
  font-size: 16px;
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}
.refund-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mid);
}

/* ───────── BOTTOM CTA / CONTACT STRIP ───────── */
.legal-contact-strip {
  padding: 0 0 100px;
  background: var(--bg);
}
.legal-contact-card {
  max-width: 1080px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) {
  .legal-contact-card { grid-template-columns: 1fr; padding: 28px; text-align: center; }
}
.legal-contact-card .lc-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.legal-contact-card h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.legal-contact-card p {
  font-size: 15px;
  color: var(--ink-mid);
  margin: 0;
  max-width: 540px;
}
.legal-contact-card .lc-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 760px) { .legal-contact-card .lc-actions { justify-content: center; } }

/* ───────── PAGE LINK / RELATED ───────── */
.legal-related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 600px) { .legal-related { grid-template-columns: 1fr; } }
.related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 175, 55, 0.4);
}
.related-card .rc-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.14);
  color: var(--accent);
  display: grid; place-items: center;
}
.related-card .rc-icon svg { width: 20px; height: 20px; }
.related-card .rc-meta { flex: 1; min-width: 0; }
.related-card .rc-meta .rc-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.related-card .rc-meta .rc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.related-card .rc-arrow {
  color: var(--ink-soft);
  transition: transform .25s, color .25s;
  flex-shrink: 0;
}
.related-card:hover .rc-arrow { color: var(--primary); transform: translateX(4px); }
