/* ── Legal Pages Stylesheet ─────────────────────────── */

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  padding: 80px 0 120px;
}

/* Sticky sidebar TOC */
.legal-toc {
  position: sticky;
  top: 100px;
}

.toc-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 16px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--teal);
  background: var(--teal-glow2);
  border-left-color: var(--teal);
}

.toc-meta {
  margin-top: 24px;
  padding: 16px;
  background: var(--navy-card);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.toc-meta strong { color: var(--white); display: block; margin-bottom: 4px; }

/* Legal content */
.legal-content {
  max-width: 800px;
}

.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h2 .sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal-glow);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  color: var(--teal);
  flex-shrink: 0;
}

.legal-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 20px 0 8px;
}

.legal-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.legal-section ul li,
.legal-section ol li {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.legal-section ul li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--teal);
  font-weight: 700;
}

.legal-section ol {
  counter-reset: ol-counter;
}

.legal-section ol li {
  counter-increment: ol-counter;
}

.legal-section ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
}

.legal-callout {
  background: var(--teal-glow2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.legal-callout strong { color: var(--teal); }

.legal-callout.amber {
  background: var(--amber-glow);
  border-left-color: var(--amber);
}

.legal-callout.amber strong { color: var(--amber); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13.5px;
}

.legal-table th {
  background: rgba(0,212,170,.08);
  color: var(--teal);
  font-weight: 700;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.legal-table td {
  padding: 11px 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-dim);
  vertical-align: top;
  line-height: 1.6;
}

.legal-table td:first-child { color: var(--text-light); font-weight: 600; }
.legal-table tr:hover td { background: rgba(255,255,255,.015); }

/* Security-specific */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.security-card {
  background: var(--navy-card);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 20px;
  transition: all .3s;
}

.security-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.sc-icon { font-size: 28px; margin-bottom: 12px; }
.sc-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.sc-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

.cert-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
}

.cert-badge .ci { font-size: 22px; }
.cert-badge .cn { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 2px; }
.cert-badge .cs { font-size: 10.5px; color: var(--teal); font-weight: 600; }

/* TCPA specific */
.tcpa-rule-card {
  background: var(--navy-card);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  transition: all .3s;
}

.tcpa-rule-card:hover { border-color: var(--border); }

.tcpa-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--teal-glow);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tcpa-rule-card h4 { font-size: 14.5px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.tcpa-rule-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0; }

.pvn-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--teal-glow);
  border: 1px solid var(--border);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .security-grid { grid-template-columns: 1fr; }
}
