/* ============ LeadsnTech — legal pages + consent banner ============ */

.legal-hero {
  background: radial-gradient(1000px 500px at 80% -10%, #1e3a8a 0%, transparent 60%), var(--navy);
  color: #fff;
  padding: 9.5rem 0 3.5rem;
}
.legal-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .8rem; }
.legal-meta { color: rgba(255,255,255,.65); font-size: .95rem; }

.legal-body {
  display: grid; grid-template-columns: 260px 1fr; gap: 3rem;
  padding: 4rem 0 6rem; align-items: start;
}
.legal-toc {
  position: sticky; top: 100px;
  background: var(--mist); border-radius: 16px; padding: 1.5rem 1.4rem;
  border: 1px solid rgba(29,78,216,.08);
  max-height: calc(100vh - 130px); overflow-y: auto;
}
.toc-title {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: .8rem;
}
.legal-toc ol { list-style: none; counter-reset: toc; }
.legal-toc li { margin-bottom: .45rem; }
.legal-toc a { font-size: .85rem; color: var(--slate); transition: color .2s; line-height: 1.35; display: block; }
.legal-toc a:hover { color: var(--blue); }

.legal-content { max-width: 780px; }
.legal-content h2 {
  font-size: 1.45rem; margin: 2.6rem 0 1rem;
  padding-top: 1.2rem; border-top: 1px solid #eef1f8;
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin: 1.6rem 0 .7rem; color: var(--ink); }
.legal-content p { color: #374151; margin-bottom: 1rem; font-size: .97rem; }
.legal-content ul { margin: .6rem 0 1.2rem 1.4rem; color: #374151; }
.legal-content li { margin-bottom: .5rem; font-size: .97rem; }
.legal-content a { color: var(--blue); font-weight: 500; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--ink); }

.cookie-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .88rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.cookie-table th {
  text-align: left; font-family: var(--font-head); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--slate);
  padding: .9rem 1rem; background: var(--mist); border-bottom: 1px solid #eef1f8;
}
.cookie-table td { padding: .85rem 1rem; border-bottom: 1px solid #f4f6fc; color: #374151; vertical-align: top; }
.cookie-table tr:last-child td { border-bottom: 0; }
.cookie-table code { background: var(--mist); padding: .15rem .45rem; border-radius: 6px; font-size: .82rem; color: var(--blue); }

@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
}

/* ============ Cookie consent banner ============ */
.consent-banner {
  position: fixed; left: 22px; bottom: 22px; z-index: 300;
  width: min(480px, calc(100% - 44px));
  background: #fff; border-radius: 18px; padding: 1.4rem 1.5rem;
  box-shadow: 0 20px 60px rgba(11,18,32,.30);
  border: 1px solid rgba(29,78,216,.15);
  transform: translateY(30px); opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
.consent-banner.show { transform: none; opacity: 1; }
.consent-text { font-size: .86rem; color: var(--slate); line-height: 1.55; margin-bottom: 1rem; }
.consent-text strong { color: var(--ink); display: block; margin-bottom: .2rem; }
.consent-text a { color: var(--blue); font-weight: 500; }
.consent-actions { display: flex; gap: .7rem; justify-content: flex-end; }
.consent-btn {
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  padding: .6rem 1.3rem; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .2s, box-shadow .2s;
}
.consent-btn:hover { transform: translateY(-1px); }
.consent-accept { background: linear-gradient(92deg, var(--blue), var(--blue-light)); color: #fff; box-shadow: 0 8px 18px rgba(29,78,216,.35); }
.consent-decline { background: var(--mist); color: var(--slate); border: 1px solid rgba(29,78,216,.18); }

@media (max-width: 640px) {
  .consent-banner { left: 12px; bottom: 12px; width: calc(100% - 24px); }
  .consent-actions { flex-direction: column; }
  .consent-btn { width: 100%; }
}
