/* ==========================================================================
   Lion Fun — Unified Legal Pages UI/UX Bar & Harmonized Shell
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --lf-navy: #17324d;
  --lf-blue: #2166a5;
  --lf-orange: #ef8b22;
  --lf-paper: #fffdf9;
  --lf-line: #e8e2d7;
  --lf-muted: #64727a;
}

body.lf-legal-page {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--lf-paper) !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

.lf-legal-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 226, 215, 0.95);
  box-shadow: 0 4px 18px rgba(23, 50, 77, 0.04);
}

.lf-legal-bar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.lf-legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--lf-navy) !important;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lf-legal-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 9px;
}

.lf-legal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lf-legal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--lf-line);
  background: #ffffff;
  color: var(--lf-navy) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.lf-legal-pill:hover {
  border-color: var(--lf-navy);
  background: #fff8e6;
  color: var(--lf-navy) !important;
  text-decoration: none !important;
}

.lf-legal-pill.primary {
  background: var(--lf-navy);
  border-color: var(--lf-navy);
  color: #ffffff !important;
}

.lf-legal-pill.primary:hover {
  background: #23476b;
  color: #ffffff !important;
}

/* Harmonized bottom return bar */
.lf-legal-footer-bar {
  max-width: 960px;
  margin: 28px auto 36px;
  padding: 18px 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--lf-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--lf-muted);
}

.lf-legal-footer-bar a {
  color: var(--lf-blue);
  font-weight: 750;
  text-decoration: none;
}

.lf-legal-footer-bar a:hover {
  text-decoration: underline;
}

.lf-legal-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Give main content breathing room below the sticky header */
body.lf-legal-page > .container,
body.lf-legal-page > main.container {
  margin-top: 28px !important;
  margin-bottom: 24px !important;
  border-radius: 24px !important;
  border-color: var(--lf-line) !important;
  box-shadow: 0 14px 36px rgba(23, 50, 77, 0.055) !important;
}

@media (max-width: 640px) {
  .lf-legal-bar-inner {
    padding: 10px 14px;
  }
  .lf-legal-pill {
    padding: 6px 10px;
    font-size: 12px;
  }
  .lf-legal-footer-bar {
    margin: 20px 14px 28px;
  }
}
