/* ═══════════════════════════════════════════════════════════════
   legal.css — Techmov Terms & Privacy pages
   Relies on style.css for nav / footer / CSS variables
   ═══════════════════════════════════════════════════════════════ */

/* ── Page base ─────────────────────────────────────────────── */
.legal-page {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--FD, 'Lexend Deca', sans-serif);
}

/* ── Hero banner ────────────────────────────────────────────── */
.legal-hero {
  padding: 140px 6vw 70px;
  background: var(--bg2);
  border-bottom: 1px solid rgba(87,190,189,.15);
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(87,190,189,.06) 0%, transparent 70%);
  pointer-events: none;
}
.legal-hero-inner { max-width: 780px; position: relative; z-index: 1; }
.legal-eyebrow {
  font-family: var(--FM, 'DM Mono', monospace);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.legal-h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
.legal-effective {
  font-family: var(--FM, 'DM Mono', monospace);
  font-size: .75rem;
  color: var(--mid);
  letter-spacing: .06em;
}

/* ── Layout ─────────────────────────────────────────────────── */
.legal-main { padding: 60px 6vw 100px; position: relative; z-index: 1; }
.legal-wrap {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc  { display: none; }
}

/* ── Sticky TOC sidebar ─────────────────────────────────────── */
.legal-toc { position: sticky; top: 90px; z-index: 0; }
.legal-toc-inner {
  background: rgba(87,190,189,.04);
  border: 1px solid rgba(87,190,189,.12);
  border-radius: 10px;
  padding: 22px 20px;
}
.toc-label {
  font-family: var(--FM, 'DM Mono', monospace);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0 0 14px;
}
.legal-toc .toc-nav a {
  display: block;
  font-size: .82rem;
  font-weight: 400;
  color: var(--mid);
  text-decoration: none;
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  transition: color .2s, border-color .2s;
  line-height: 1.4;
}
.legal-toc .toc-nav a:hover,
.legal-toc .toc-nav a.active {
  color: var(--teal);
  border-left-color: var(--teal);
}

/* ── Article body ───────────────────────────────────────────── */
.legal-body { min-width: 0; }

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

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--FM, 'DM Mono', monospace);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-section h2::before {
  content: attr(data-num);
  font-size: .65rem;
  opacity: .5;
  min-width: 28px;
}

.legal-section p,
.legal-section li {
  font-size: .96rem;
  line-height: 1.9;
  color: var(--ink2);
  font-weight: 300;
  margin-bottom: 12px;
}
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal-section a      { color: var(--teal); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

.legal-section ul,
.legal-section ol {
  padding-left: 24px;
  margin-bottom: 12px;
}
.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section ol ol { list-style: lower-alpha; }

/* Definition table */
.legal-defs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: .9rem;
}
.legal-defs td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(87,190,189,.08);
  vertical-align: top;
  line-height: 1.7;
  color: var(--ink2);
}
.legal-defs td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  width: 200px;
  font-family: var(--FM, 'DM Mono', monospace);
  font-size: .78rem;
  letter-spacing: .04em;
}

/* Highlight box */
.legal-highlight {
  background: rgba(87,190,189,.06);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .92rem;
  color: var(--ink2);
  line-height: 1.8;
}
.legal-highlight strong { color: var(--ink); }

/* Contact card at bottom */
.legal-contact-card {
  background: rgba(87,190,189,.06);
  border: 1px solid rgba(87,190,189,.18);
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 16px;
}
.legal-contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.legal-contact-card p {
  font-size: .9rem;
  color: var(--ink2);
  margin: 4px 0;
  line-height: 1.7;
}
.legal-contact-card a { color: var(--teal); }

/* Divider */
.legal-divider {
  border: none;
  border-top: 1px solid rgba(87,190,189,.1);
  margin: 48px 0;
}
