/* =========================================================
   POPPALS — LEGAL / TRUST PAGES (Privacy, Terms, Safety…)
   Builds on the shared design system in styles.css
   ========================================================= */

/* ── 1. HERO ───────────────────────────────────────────── */
.legal-hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 34px;
  text-align: center;
  z-index: 2;
}
.legal-shield {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 55%, #0369A1 100%);
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  border: 3.5px solid #fff;
  box-shadow: 0 18px 38px rgba(2, 132, 199, 0.4), inset 0 2px 4px rgba(255,255,255,0.5);
  animation: shield-float 6s ease-in-out infinite alternate;
}
@keyframes shield-float {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-10px) rotate(3deg); }
}
.legal-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.legal-hero-sub { font-size: 1.18rem; color: var(--muted); line-height: 1.75; max-width: 640px; margin: 0 auto; }
.legal-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 700; color: var(--sky-deep);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border: 2px solid rgba(255,255,255,0.95);
  padding: 8px 18px; border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(56,189,248,0.2);
  margin-top: 24px;
}
.legal-breadcrumb a:hover { text-decoration: underline; }

/* Quick-trust chips */
.fact-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.fact-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.95rem; font-weight: 700; color: var(--ink);
  background: rgba(255,255,255,0.9); padding: 9px 18px; border-radius: 9999px;
  box-shadow: var(--sh-xs); border: 2px solid #fff;
}

/* ── 2. CONTENT WRAPPER & TABLE OF CONTENTS ─────────────── */
.legal-body { position: relative; z-index: 2; padding: 56px 0 70px; }
.policy-wrap { max-width: 880px; margin: 0 auto; }

.toc-card {
  background: var(--glass-heavy); backdrop-filter: blur(24px);
  border: 2.5px solid var(--border); border-radius: var(--r-xl);
  padding: 30px 34px; box-shadow: var(--sh-md);
  margin-bottom: 34px;
}
.toc-title { display: flex; align-items: center; gap: 10px; font-family: var(--fh); font-size: 1.35rem; margin-bottom: 18px; }
.toc-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px;
}
.toc-list a {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.96rem; color: var(--ink);
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--white); border: 2px solid #E8EFF8;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toc-list a:hover {
  border-color: var(--sky); color: var(--sky-deep);
  transform: translateY(-2px) scale(1.02); box-shadow: var(--sh-xs);
}
.toc-num {
  font-family: var(--fh); font-weight: 700; color: var(--pink);
  background: var(--pink-pale); border-radius: 10px;
  width: 30px; height: 30px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.92rem;
}

/* ── 3. POLICY CARDS ───────────────────────────────────── */
.policy-card {
  background: var(--glass-heavy); backdrop-filter: blur(20px);
  border: 2.5px solid var(--border); border-radius: var(--r-xl);
  padding: 32px 36px; box-shadow: var(--sh-sm);
  margin-bottom: 22px;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  scroll-margin-top: calc(var(--nav-h) + 30px);
}
.policy-card:hover {
  box-shadow: var(--sh-md); border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-3px);
}
.policy-head { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.policy-num {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg, #38BDF8, var(--sky-deep));
  color: #fff; font-family: var(--fh); font-size: 1.05rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 15px; border: 2.5px solid #fff;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.35);
}
.policy-head h2 { font-size: 1.5rem; margin: 0; }
.policy-tag {
  margin-left: auto; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 14px;
  background: var(--sky-pale); border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  box-shadow: var(--sh-xs);
}
.policy-card p { color: var(--muted); line-height: 1.8; font-size: 1.05rem; margin: 0; }
.policy-card a { color: var(--sky-deep); font-weight: 700; }

.policy-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.policy-list li {
  position: relative; padding: 12px 16px 12px 34px;
  background: rgba(224, 242, 254, 0.5); border: 2px solid rgba(186, 230, 253, 0.7);
  border-radius: var(--r-md);
  color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.65;
}
.policy-list li::before {
  content: ''; position: absolute; left: 15px; top: 19px;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--pink));
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

/* Highlighted contact card */
.policy-card.contact {
  background: linear-gradient(135deg, rgba(224,242,254,0.92), rgba(255,255,255,0.96));
  border-color: rgba(56, 189, 248, 0.5);
  text-align: center;
}
.policy-card.contact .policy-head { justify-content: center; }
.policy-card.contact .policy-tag { margin-left: 0; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px;
  font-family: var(--fh); font-size: 1.15rem; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #FF6B8B, var(--pink));
  border: 2.5px solid rgba(255,180,196,0.8);
  padding: 13px 26px; border-radius: var(--r-md);
  box-shadow: 0 7px 0 var(--pink-dark), 0 14px 24px rgba(255,75,114,0.42);
  transition: all 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.contact-mail:hover  { transform: translateY(-3px); box-shadow: 0 10px 0 var(--pink-dark), 0 20px 32px rgba(255,75,114,0.55); }
.contact-mail:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--pink-dark); }

.policy-updated { text-align: center; margin-top: 30px; font-size: 0.95rem; color: var(--subtle); font-weight: 600; }
.policy-updated strong { color: var(--muted); }

/* ── 4. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .legal-hero { padding-top: calc(var(--nav-h) + 70px); }
  .policy-card { padding: 26px 22px; }
  .policy-head { flex-wrap: wrap; }
  .policy-tag { margin-left: 0; }
  .toc-card { padding: 24px 20px; }
  .nav-list.open {
    display: flex; flex-direction: column;
    position: absolute; top: 74px; left: 12px; right: 12px;
    background: rgba(255,255,255,0.98); padding: 12px;
    border-radius: var(--r-lg); box-shadow: var(--sh-md);
    border: 2px solid #fff; z-index: 50;
  }
}

.nav-list a.active { color: var(--pink-dark); background: var(--pink-pale); }