/* ═══════════════════════════════════════════════════════════════════════════
   BHire — Legal pages (terms.html, privacy.html)
   Extends base.css.
═══════════════════════════════════════════════════════════════════════════ */

/* ── Minimal top nav ─────────────────────────────────────────────────────── */
.legal-nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.legal-nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.legal-nav-back {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.legal-nav-back:hover { color: var(--accent); }

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 40px 100px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.legal-header {
  margin-bottom: 52px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.legal-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-eyebrow::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--accent);
}
.legal-title {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 16px;
}
.legal-meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.legal-meta span::before {
  content: '·';
  margin-right: 8px;
  opacity: 0.4;
}
.legal-meta span:first-child::before { content: none; }

/* ── Table of contents ───────────────────────────────────────────────────── */
.legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.legal-toc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  columns: 2;
}
.legal-toc-list li a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.legal-toc-list li a:hover { border-color: var(--accent); }

/* ── Body content ─────────────────────────────────────────────────────────── */
.legal-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.legal-section {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
}

.legal-section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-section-num {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  min-width: 28px;
}

.legal-body p {
  margin-bottom: 14px;
  color: var(--text-muted);
}
.legal-body p:last-child { margin-bottom: 0; }

.legal-body ul, .legal-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.legal-body li {
  margin-bottom: 7px;
  line-height: 1.7;
}

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

.legal-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.legal-body a:hover { border-color: var(--accent); }

/* Callout box */
.legal-callout {
  background: #EEF3FF;
  border: 1px solid #C4D4EE;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.65;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.legal-footer {
  background: var(--dark-bg);
  padding: 40px 0;
  text-align: center;
  margin-top: 80px;
}
.legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.legal-footer-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.legal-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.legal-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-footer-links a:hover { color: #fff; }
.legal-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  width: 100%;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 16px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .legal-nav-inner, .legal-page { padding-left: 20px; padding-right: 20px; }
  .legal-title { font-size: 30px; }
  .legal-toc-list { columns: 1; }
  .legal-footer-inner { flex-direction: column; align-items: flex-start; }
}
