/* ============================================================
   KELLY LAB — LEGAL PAGES SHARED STYLES
   css/legal.css  (used by privacy.html and terms.html)
   ============================================================ */

/* ── LEGAL HEADER ───────────────────────────────────────── */
.legal-header {
  padding: 9rem 4rem 5rem;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.legal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(0, 212, 255, 0.05), transparent);
  pointer-events: none;
}

.legal-header-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 95, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 95, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 40%, transparent 100%);
}

.legal-header-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-glow);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--cyan-glow);
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.legal-meta-item {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.legal-meta-item span {
  color: var(--text-secondary);
  margin-left: 0.4rem;
}

/* ── CONTENT LAYOUT ─────────────────────────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

.legal-toc {
  padding: 4rem 3rem 4rem 0;
  position: sticky;
  top: 6rem;
  align-self: start;
  border-right: 1px solid var(--border-subtle);
}

.legal-toc-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; }

.legal-toc ul li a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 0.35rem 0;
  transition: color 0.2s;
  line-height: 1.4;
}

.legal-toc ul li a:hover { color: var(--cyan-glow); }

.legal-content { padding: 4rem 0 6rem 4rem; }

/* ── LEGAL SECTIONS ─────────────────────────────────────── */
.legal-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section:last-child { border-bottom: none; margin-bottom: 0; }

.legal-section-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--cyan-glow);
  margin-bottom: 0.6rem;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.legal-section p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 1rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section p strong { color: var(--text-primary); font-weight: 500; }

/* ── BULLET LIST ────────────────────────────────────────── */
.legal-section ul.bullet-list {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-section ul.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-section ul.bullet-list li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan-glow);
  flex-shrink: 0;
  margin-top: 0.62rem;
}

/* ── DEFINITION LIST ────────────────────────────────────── */
.legal-section dl.def-list { margin: 1rem 0; display: flex; flex-direction: column; gap: 0; }

.legal-section dl.def-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section dl.def-list div:first-child { border-top: 1px solid var(--border-subtle); }

.legal-section dl.def-list dt { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--text-primary); line-height: 1.5; }
.legal-section dl.def-list dd { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; }

@media (max-width: 600px) {
  .legal-section dl.def-list div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ── NOTICE BOX ─────────────────────────────────────────── */
.legal-notice {
  padding: 1.5rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.04);
  margin-bottom: 2rem;
}

.legal-notice p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* ── EMAIL LINK ─────────────────────────────────────────── */
a.email-link {
  color: var(--cyan-glow);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.25);
  padding-bottom: 1px;
  transition: color 0.25s, border-bottom-color 0.25s;
}

a.email-link:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.4); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .legal-layout { grid-template-columns: 1fr; padding: 0 2.5rem; }
  .legal-toc { display: none; }
  .legal-content { padding: 3rem 0 5rem; }
}

@media (max-width: 768px) {
  .legal-header { padding: 8rem 1.5rem 4rem; }
  .legal-layout { padding: 0 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
}
