/* ============================================================
   Complyn — legal.css
   Privacy and Terms pages — clean readable layout
   ============================================================ */

.legal-hero {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, #0a0d14 0%, #0f1218 100%);
}

.legal-hero-inner {
  max-width: 800px;
}

.legal-meta {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.legal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-meta-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6478;
}

.legal-meta-val {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  color: #e8eaf0;
  font-weight: 500;
}

/* ===== CONTENT ===== */
.legal-content {
  padding: 60px 0 100px;
  background: #0a0d14;
}

.legal-content-inner {
  max-width: 800px;
}

.legal-toc {
  background: linear-gradient(180deg, rgba(79, 240, 194, 0.04) 0%, rgba(79, 240, 194, 0.01) 100%);
  border: 1px solid rgba(79, 240, 194, 0.15);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.legal-toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4ff0c2;
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  counter-reset: toc;
}

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

.legal-toc li {
  counter-increment: toc;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
}

.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #4ff0c2;
  margin-right: 12px;
}

.legal-toc a {
  color: #9ba2b3;
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-toc a:hover {
  color: #4ff0c2;
}

/* ===== SECTIONS ===== */
.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  color: #e8eaf0;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.legal-section h2 .legal-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: #4ff0c2;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.legal-section h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #e8eaf0;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-section p {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #b8bdc9;
  margin-bottom: 16px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.legal-section ul li {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #b8bdc9;
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.legal-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #4ff0c2;
  font-weight: 400;
}

.legal-section strong {
  color: #e8eaf0;
  font-weight: 600;
}

.legal-section a {
  color: #4ff0c2;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 240, 194, 0.3);
  transition: border-color 0.15s ease;
}

.legal-section a:hover {
  border-bottom-color: #4ff0c2;
}

/* ===== CALLOUT ===== */
.legal-callout {
  background: rgba(79, 240, 194, 0.04);
  border-left: 3px solid #4ff0c2;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.legal-callout p {
  margin: 0;
  font-style: italic;
  color: #d4d8e1;
}

/* ===== CONTACT FOOTER ===== */
.legal-contact {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-contact h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: #e8eaf0;
  margin-bottom: 12px;
}

.legal-contact p {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  color: #9ba2b3;
  line-height: 1.7;
}

.legal-contact-card {
  margin-top: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #b8bdc9;
}

.legal-contact-card strong {
  color: #e8eaf0;
}
