/* ===== SHARED LEGAL PAGE STYLES ===== */
/* Used by: security.html, privacy.html, terms.html */

.legal-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.legal-hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative;
}

.legal-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
}

/* ===== LEGAL LAYOUT ===== */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 120px;
}

/* ===== STICKY SIDEBAR TOC ===== */
.legal-toc {
  position: sticky;
  top: 100px;
}

.legal-toc h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-toc a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--border);
  transition: all 0.2s;
  line-height: 1.4;
}

.legal-toc a:hover,
.legal-toc a.active {
  color: var(--text);
  border-left-color: var(--blue);
}

/* ===== LEGAL CONTENT PROSE ===== */
.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 56px 0 16px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--text);
}

.legal-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.legal-content a:hover {
  opacity: 0.8;
}

.legal-content .highlight-box {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content .highlight-box strong {
  color: var(--blue);
}

/* ===== SECURITY SPECIFIC ===== */
.security-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0;
}

.security-pillar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.security-pillar:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.security-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.security-pillar h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.security-pillar p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.cert-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cert-status {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-status.planned {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.cert-status.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cert-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cert-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    display: none;
  }

  .security-pillars {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 120px 0 60px;
  }

  .legal-hero h1 {
    font-size: 36px;
  }

  .legal-content h2 {
    font-size: 20px;
    margin: 40px 0 12px;
    padding-top: 40px;
  }
}
