/* ============================================================
   VaroMoneyApply.com — Legal Pages CSS
   Used by: privacy-policy.html, terms-of-service.html, sitemap.html
   ============================================================ */

/* ── Legal page layout ─────────────────────────────────────── */
.legal-hero {
  background: linear-gradient(135deg, #1A1172 0%, #4336C4 100%);
  padding: 56px 0 48px;
}
.legal-hero h1 { color: #fff; margin-bottom: 10px; font-size: clamp(1.6rem,3vw,2.2rem); }
.legal-hero p  { color: rgba(255,255,255,.7); font-size: 1rem; }
.legal-meta {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px;
}
.legal-meta span {
  font-size: .8rem; color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 6px;
}

/* ── Legal body ────────────────────────────────────────────── */
.legal-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal-toc {
  background: #E8E4FF;
  border: 1px solid #C4BBFF;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 48px;
}
.legal-toc h4 {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #2C1FA8;
  margin-bottom: 14px;
}
.legal-toc ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-toc ol li a {
  color: #4336C4;
  font-size: .9rem;
  text-decoration: none;
  font-weight: 500;
}
.legal-toc ol li a:hover { color: #1A1172; text-decoration: underline; }

.legal-section {
  margin-bottom: 48px;
  padding-top: 8px;
}
.legal-section h2 {
  font-size: 1.35rem;
  color: #1A1172;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E8E4FF;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-section h2 .section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: #6B5CE7;
  color: #fff;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.legal-section h3 {
  font-size: 1.05rem;
  color: #2C1FA8;
  margin: 20px 0 8px;
}
.legal-section p {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: .95rem;
}
.legal-section ul, .legal-section ol {
  padding-left: 22px;
  margin: 10px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section li {
  color: #374151;
  font-size: .93rem;
  line-height: 1.7;
}
.legal-highlight {
  background: #E8E4FF;
  border-left: 4px solid #6B5CE7;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.legal-highlight p { margin: 0; font-size: .9rem; color: #2C1FA8; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: .9rem;
}
.legal-table th {
  background: #1A1172;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
}
.legal-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #E8E4FF;
  color: #374151;
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: #F7F5FF; }

/* ── Sitemap page ──────────────────────────────────────────── */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.sitemap-card {
  background: #fff;
  border: 1px solid #E8E4FF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44,31,168,.06);
}
.sitemap-card-header {
  background: linear-gradient(135deg, #1A1172, #4336C4);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sitemap-card-header .icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.sitemap-card-header h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0;
}
.sitemap-card-body { padding: 16px 20px; }
.sitemap-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #F0EDFF;
  text-decoration: none;
  transition: all .2s;
}
.sitemap-link:last-child { border-bottom: none; }
.sitemap-link:hover { padding-left: 6px; }
.sitemap-link .dot {
  width: 6px; height: 6px;
  background: #C4BBFF;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .2s;
}
.sitemap-link:hover .dot { background: #6B5CE7; }
.sitemap-link-label {
  flex: 1;
  font-size: .875rem;
  color: #1A1172;
  font-weight: 500;
}
.sitemap-link:hover .sitemap-link-label { color: #6B5CE7; }
.sitemap-link-badge {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
}
.badge-money { background: #E8F7F0; color: #00703A; }
.badge-tool  { background: #EDE9FF; color: #4336C4; }
.badge-new   { background: #FEF2F2; color: #991B1B; }

.sitemap-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.sitemap-stat {
  background: #fff;
  border: 1px solid #E8E4FF;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.sitemap-stat .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #1A1172;
}
.sitemap-stat .lbl { font-size: .78rem; color: #6B5CE7; margin-top: 4px; }


@media (max-width: 767px) {
  .legal-hero { padding: 40px 0 32px; }
  .legal-body { padding: 32px 16px 48px; }
  .legal-section h2 { font-size: 1.15rem; }
  .legal-section p, .legal-section li { font-size: .9rem; line-height: 1.7; }
  .legal-toc { padding: 20px 22px; margin-bottom: 32px; }
  .legal-toc ol { padding-left: 18px; }
  .legal-toc ol li a { font-size: .88rem; }
  .legal-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: .82rem;
  }
  .legal-table th, .legal-table td { padding: 8px 10px; white-space: normal; }
  .sitemap-grid { grid-template-columns: 1fr; gap: 16px; }
  .sitemap-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) {
  .legal-hero h1 { font-size: 1.5rem; }
  .legal-hero p { font-size: .9rem; }
  .legal-meta { flex-direction: column; gap: 4px; }
  .legal-section h2 { font-size: 1.05rem; gap: 8px; }
  .legal-section h2 .section-num { width: 26px; height: 26px; font-size: .75rem; }
  .legal-section h3 { font-size: .95rem; }
  .sitemap-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sitemap-stat .num { font-size: 1.4rem; }
  .sitemap-stat .lbl { font-size: .72rem; }
}

