/**
 * VLMS Legal / Compliance Page Design System
 * Shared by: terms-of-service, security-trust-portal, privacy-policy,
 *            data-processing-addendum-dpa, compliances
 * Reuses home2 brand tokens (--blue, --lime, --teal, --bg-light).
 * ------------------------------------------------------------------ */

/* ── Sticky on-page section nav ──────────────────────────────────── */
.legal-subnav {
  position: sticky; top: 72px; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #E5E7EB;
}
.legal-subnav .inner {
  max-width: 1100px; margin: 0 auto; padding: 0 40px;
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  min-height: 56px;
}
.legal-subnav a {
  font-size: 13.5px; font-weight: 600; color: var(--teal);
  text-decoration: none; padding: 7px 14px; border-radius: 100px;
  white-space: nowrap; transition: background .2s, color .2s;
}
.legal-subnav a:hover, .legal-subnav a.is-active {
  background: var(--lime); color: var(--teal);
}
@media (max-width: 760px) {
  .legal-subnav { top: 64px; }
  .legal-subnav .inner { padding: 0 16px; flex-wrap: nowrap; overflow-x: auto; }
}

/* ── Layout shell ────────────────────────────────────────────────── */
.legal-wrap { max-width: 980px; margin: 0 auto; padding: 64px 40px 88px; }
@media (max-width: 760px){ .legal-wrap { padding: 40px 20px 64px; } }

/* effective-date / meta chips under hero */
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.legal-meta .chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 100px;
}
.legal-meta .chip svg { width: 15px; height: 15px; opacity: .9; }

/* ── Section blocks with numbered SVG icon medallion ─────────────── */
.legal-section { scroll-margin-top: 140px; padding: 30px 0; border-top: 1px solid #EEF0F2; }
.legal-section:first-of-type { border-top: 0; }
.legal-section__head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.legal-ico {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), #0058d6);
  box-shadow: 0 6px 18px rgba(0,69,170,0.22);
}
.legal-ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; }
.legal-ico--lime { background: linear-gradient(135deg, #1d8f5f, var(--teal)); box-shadow: 0 6px 18px rgba(15,61,58,0.22); }
.legal-section__head h2, .legal-section__head h3 {
  font-family: 'Forum', serif; font-weight: 400; color: var(--teal);
  font-size: 24px; line-height: 1.2; margin: 0;
}
.legal-section p { color: #41505c; margin: 0 0 14px; line-height: 1.7; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-section a:hover { color: var(--teal); }

/* bullet lists with custom lime markers */
.legal-list { list-style: none; margin: 6px 0 0; padding: 0; }
.legal-list li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
  color: #41505c; line-height: 1.65;
}
.legal-list li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 9px; height: 9px; border-radius: 3px;
  background: var(--lime); box-shadow: 0 0 0 4px rgba(200,248,169,0.28);
}

/* ── Bento / card grids ──────────────────────────────────────────── */
.legal-bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 8px 0 4px;
}
@media (max-width: 980px){ .legal-bento { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .legal-bento { grid-template-columns: 1fr; } }
.legal-tile {
  background: #fff; border: 1px solid #E9EEF5; border-radius: var(--radius);
  padding: 24px; transition: box-shadow .25s, transform .2s, border-color .25s;
}
.legal-tile:hover {
  box-shadow: 0 12px 30px rgba(0,69,170,0.10);
  transform: translateY(-3px); border-color: rgba(0,69,170,0.35);
}
.legal-tile .legal-ico { margin-bottom: 14px; }
.legal-tile h3 {
  font-family: 'Forum', serif; font-weight: 400; color: var(--teal);
  font-size: 19px; margin: 0 0 8px;
}
.legal-tile p { color: #5a6772; font-size: 14.5px; line-height: 1.6; margin: 0; }

/* tall feature tile spanning two columns */
.legal-tile--wide { grid-column: span 2; }
@media (max-width: 620px){ .legal-tile--wide { grid-column: span 1; } }

/* ── Highlighted callout ─────────────────────────────────────────── */
.legal-callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-light); border: 1px solid rgba(15,61,58,0.08);
  border-left: 4px solid var(--blue); border-radius: 14px;
  padding: 20px 22px; margin: 8px 0;
}
.legal-callout svg { flex: 0 0 22px; width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.8; margin-top: 2px; }
.legal-callout p { margin: 0; color: #41505c; font-size: 14.5px; }

/* ── Principle/stat strip ────────────────────────────────────────── */
.legal-pillars {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin: 6px 0;
}
@media (max-width: 880px){ .legal-pillars { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .legal-pillars { grid-template-columns: 1fr;} }
.legal-pillar {
  text-align: center; background: #fff; border: 1px solid #E9EEF5;
  border-radius: 14px; padding: 20px 14px;
}
.legal-pillar .legal-ico { margin: 0 auto 10px; }
.legal-pillar h4 { font-size: 15px; color: var(--teal); margin: 0 0 4px; font-weight: 600; }
.legal-pillar p { font-size: 13px; color: #6B7280; margin: 0; }

/* footer note */
.legal-note {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid #E5E7EB;
  color: #6B7280; font-size: 13.5px;
}
.legal-note a { color: var(--blue); }
