/* ═══════════════════════════════════════════
   EquitySight.app — Legal Pages Shared Styles
   ═══════════════════════════════════════════ */

body { background: var(--warm-white); }

.legal-hero {
  background: var(--charcoal);
  padding: 72px 24px 48px;
  text-align: center;
}

@media (display-mode: standalone) {
  .site-nav, .site-footer { display: none !important; }
}

.legal-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245,240,232,0.35);
  letter-spacing: 1px;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* Table of contents */
.legal-toc {
  background: var(--charcoal);
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 48px;
}
.legal-toc h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.legal-toc ol { padding-left: 18px; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: rgba(245,240,232,0.6); font-size: 13px; text-decoration: none; }
.legal-toc a:hover { color: var(--gold); }

/* Sections */
.legal-section { margin-bottom: 48px; scroll-margin-top: 80px; }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(28,28,30,0.1);
}
.legal-section h3 { font-size: 15px; font-weight: 600; color: var(--charcoal); margin: 20px 0 8px; }
.legal-section p { font-size: 15px; line-height: 1.75; color: rgba(28,28,30,0.75); margin-bottom: 14px; }
.legal-section ul, .legal-section ol { padding-left: 20px; margin-bottom: 14px; }
.legal-section li { font-size: 15px; line-height: 1.75; color: rgba(28,28,30,0.75); margin-bottom: 6px; }
.legal-section a { color: var(--gold); }
.legal-section code { font-family: var(--font-mono); font-size: 13px; background: rgba(28,28,30,0.07); padding: 1px 5px; border-radius: 3px; }

/* Callout boxes */
.legal-highlight {
  background: rgba(201,168,76,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(28,28,30,0.8);
}
.legal-warning {
  background: rgba(196,90,90,0.07);
  border-left: 3px solid #C45A5A;
  border-radius: 0 4px 4px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(28,28,30,0.8);
}

/* Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
.legal-table th {
  background: var(--charcoal);
  color: var(--cream);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.legal-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(28,28,30,0.08);
  color: rgba(28,28,30,0.75);
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }

/* Dark mode */
html.dark-mode .legal-section h2 { color: var(--cream); border-color: rgba(245,240,232,0.1); }
html.dark-mode .legal-section h3 { color: rgba(245,240,232,0.85); }
html.dark-mode .legal-section p,
html.dark-mode .legal-section li { color: rgba(245,240,232,0.65); }
html.dark-mode .legal-highlight { background: rgba(201,168,76,0.06); color: rgba(245,240,232,0.75); }
html.dark-mode .legal-warning { background: rgba(196,90,90,0.06); color: rgba(245,240,232,0.75); }
html.dark-mode .legal-section code { background: rgba(255,255,255,0.08); color: var(--cream); }
html.dark-mode .legal-table td { color: rgba(245,240,232,0.65); border-color: rgba(255,255,255,0.06); }
