/* =====================================================
   Legal pages: privacy-policy.html, terms-of-use.html,
   affiliate-disclosure.html
   Loaded AFTER css/style.css. Everything is scoped to
   body.legal-page / .lg-* so the landing page is untouched.
   Header and footer use the shared rules of css/style.css.
   Mobile-first (base = phone, min-width: 600px / 861px).
   ===================================================== */

/* ---------- Title band ---------- */
.lg-hero {
  background: linear-gradient(100deg, var(--navy-d), #0B3A94);
  color: #fff; padding: 24px 0 26px;
}
.lg-hero-inner { display: flex; align-items: center; gap: 14px; }
.lg-hero-icon {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, #FF2A35, var(--red-d)); color: #fff; font-size: 24px;
  box-shadow: 0 6px 14px rgba(242, 13, 24, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.lg-hero h1 {
  font-family: 'Montserrat', 'Poppins', sans-serif; font-weight: 900; line-height: 1.15;
  font-size: clamp(24px, 7vw, 38px); color: #fff;
}
.lg-hero p { color: var(--gold); font-weight: 600; font-size: 13px; margin-top: 3px; line-height: 1.35; }

/* ---------- Content ---------- */
.lg-wrap { max-width: 900px; padding-top: 16px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 14px; }
.lg-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  border-top: 4px solid var(--blue); padding: 18px 16px 20px;
}
.lg-card h2 {
  font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--navy);
  margin: 22px 0 6px; display: flex; align-items: baseline; gap: 8px;
}
.lg-card h2:first-child { margin-top: 0; }
.lg-card h2 span {
  flex-shrink: 0; min-width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
  background: #E3ECFF; color: var(--blue); font-size: 13px; font-weight: 800; transform: translateY(-1px);
}
.lg-card p, .lg-card li { font-size: 14px; line-height: 1.65; color: #1B2C5A; }
.lg-card p + p { margin-top: 8px; }
.lg-card ul { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 5px; }
.lg-card li { position: relative; padding-left: 20px; }
.lg-card li::before {
  content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.lg-card a:not(.lg-btn) { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.lg-card b { color: var(--navy); }

.lg-note {
  display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; padding: 12px 14px;
  background: #FFF8DB; border: 1px solid #F3DD7A; border-left: 4px solid #F5B400; border-radius: 10px;
}
.lg-note i { color: #C98A00; font-size: 17px; margin-top: 3px; flex-shrink: 0; }
.lg-note p { font-size: 13.5px; }

/* ---------- Links to the other legal pages + back button ---------- */
.lg-more { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lg-more a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 600; color: var(--navy); transition: transform .2s, background .2s;
}
.lg-more a i { color: var(--red); font-size: 13px; }
.lg-more a:hover { background: #E3ECFF; transform: translateY(-2px); }
.lg-more a[aria-current="page"] { background: linear-gradient(180deg, #1466FF, var(--navy)); color: #fff; border-color: transparent; }
.lg-more a[aria-current="page"] i { color: var(--gold); }
.lg-back { display: flex; justify-content: center; }
.lg-btn { padding: 8px 14px 8px 24px; font-size: 16px; }

@media (min-width: 600px) {
  .lg-hero { padding: 30px 0 32px; }
  .lg-card { padding: 24px 28px 26px; }
}
@media (min-width: 861px) {
  .lg-hero { padding: 38px 0 40px; }
  .lg-hero-icon { width: 64px; height: 64px; font-size: 28px; }
  .lg-hero-inner { gap: 18px; }
  .lg-hero p { font-size: 14.5px; }
  .lg-wrap { padding-top: 22px; padding-bottom: 36px; }
  .lg-card { padding: 30px 38px 32px; }
  .lg-card h2 { font-size: 19px; margin-top: 26px; }
  .lg-card p, .lg-card li { font-size: 15px; }
}
