/* ═══════════════════════════════════════════
   LEGAL.CSS  —  Shared Terms & Privacy Styles
   ═══════════════════════════════════════════ */

body {
  padding-top: var(--nav-h);
}

/* ── Navbar back btn ── */
.navbar .hamburger {
  background: none; border: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; cursor: pointer;
  transition: background 0.18s;
}
.navbar .hamburger:hover { background: rgba(255,255,255,0.40); }
.navbar .hamburger svg path { fill: var(--c-text); }

/* ══════════════════════════════════════════
   LEGAL PAGE WRAPPER
══════════════════════════════════════════ */
.legal-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 12px 40px;
}

/* ── Hero block ── */
.legal-hero {
  text-align: center;
  padding: 28px 16px 24px;
  margin-bottom: 14px;
}
.legal-hero-icon {
  font-size: 2.8rem; line-height: 1; margin-bottom: 12px;
}
.legal-hero-title {
  font-size: 1.45rem; font-weight: 800; color: var(--c-text);
  margin-bottom: 6px;
}
.legal-hero-sub {
  font-size: 0.78rem; color: var(--c-text-light);
}

/* ── Intro text ── */
.legal-intro {
  font-size: 0.88rem; color: var(--c-text-mid);
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   CARD
══════════════════════════════════════════ */
.legal-card {
  background: var(--c-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-card-border);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  margin-bottom: 12px;
}

/* ── Section title inside card ── */
.legal-section-title {
  font-size: 0.96rem; font-weight: 800; color: var(--c-text);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.legal-icon { font-size: 1.05rem; }

/* ── Sub-item inside card ── */
.legal-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(185,145,230,0.14);
}
.legal-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.legal-item h3 {
  font-size: 0.83rem; font-weight: 700; color: var(--c-primary-dark);
  margin-bottom: 5px;
}

/* ── Body text ── */
.legal-card p {
  font-size: 0.82rem; color: var(--c-text-mid); line-height: 1.68;
}
.legal-card a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-card a:hover { color: var(--c-accent); }

/* ── List ── */
.legal-list {
  list-style: none; padding: 0; margin: 10px 0 0;
}
.legal-list li {
  font-size: 0.82rem; color: var(--c-text-mid); line-height: 1.6;
  padding: 5px 0 5px 22px; position: relative;
  border-bottom: 1px solid rgba(185,145,230,0.10);
}
.legal-list li:last-child { border-bottom: none; }
.legal-list li::before {
  content: '›';
  position: absolute; left: 6px;
  color: var(--c-primary); font-weight: 700;
}
.legal-list li strong { color: var(--c-text); font-weight: 700; }

/* ══════════════════════════════════════════
   FOOTER LINKS (bottom of page)
══════════════════════════════════════════ */
.legal-footer-links {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 20px 0 4px;
  font-size: 0.8rem;
}
.legal-footer-links a {
  color: var(--c-text-mid); text-decoration: none;
  transition: color 0.18s;
}
.legal-footer-links a:hover { color: var(--c-accent); }
.legal-footer-links span { color: var(--c-text-light); }

/* ══════════════════════════════════════════
   FLOATING BUTTONS (reuse from common)
══════════════════════════════════════════ */
.iback {
  position: fixed; bottom: 22px; right: 14px;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-grad-start), var(--c-grad-end));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(120,60,200,0.38);
  transition: transform 0.2s; z-index: 80;
  -webkit-tap-highlight-color: transparent;
}
.iback:hover  { transform: scale(1.08); }
.iback:active { transform: scale(0.92); }
