:root {
  --navy: #0D1B2A;
  --navy-mid: #162535;
  --navy-light: #1E3448;
  --gold: #C9A84C;
  --gold-light: #E2C675;
  --gold-pale: #F5EDD3;
  --white: #F5F7FA;
  --slate: #4A5568;
  --slate-light: #718096;
  --green: #2D6A4F;
  --green-light: #40916C;
  --red-fr: #C41E3A;
  --blue-fr: #0055A4;
  --border: rgba(201,168,76,0.2);
  --shadow-card: 0 2px 16px rgba(13,27,42,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }
html.age-verified #agePopup { display: none; }
html.age-verified body { overflow: auto; }

.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(13,27,42,0.88);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.popup-box {
  background: var(--navy-mid);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 40px 36px 32px;
  text-align: center;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

.popup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-fr) 0%, #8B0000 100%);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  border: 3px solid rgba(255,255,255,0.15);
}

.popup-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--white);
  margin-bottom: 12px;
}

.popup-subtitle {
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.popup-text {
  color: rgba(245,247,250,0.75);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.popup-text strong { color: var(--gold-light); }

.popup-checks {
  text-align: left;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.popup-checks li {
  list-style: none;
  color: rgba(245,247,250,0.8);
  font-size: 0.875rem;
  padding: 5px 0;
  display: flex;
  gap: 10px;
}

.popup-checks li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
}

.popup-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  width: 100%;
}

.popup-warning {
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(245,247,250,0.45);
}

.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-accent {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}

.nav-logo-accent span { height: 3px; border-radius: 2px; display: block; }
.nav-logo-accent span:nth-child(1) { background: var(--blue-fr); }
.nav-logo-accent span:nth-child(2) { background: #fff; }
.nav-logo-accent span:nth-child(3) { background: var(--red-fr); }

.nav-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 50px;
}

.jfc-legal-crumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 0.8rem;
  color: var(--slate-light);
}

.jfc-legal-crumb a {
  color: var(--slate);
  text-decoration: none;
}

.jfc-legal-crumb a:hover { color: var(--navy); }

.jfc-legal-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 48px 24px 56px;
  text-align: center;
}

.jfc-legal-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.jfc-legal-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.jfc-legal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.jfc-legal-updated {
  font-size: 0.85rem;
  color: rgba(245,247,250,0.5);
}

.jfc-legal-main {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  width: 100%;
}

.jfc-legal-intro {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.jfc-legal-section {
  margin-bottom: 36px;
}

.jfc-legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-pale);
}

.jfc-legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 20px 0 10px;
}

.jfc-legal-section p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 12px;
}

.jfc-legal-section ul,
.jfc-legal-section ol {
  margin: 0 0 16px 20px;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.75;
}

.jfc-legal-section li { margin-bottom: 6px; }

.jfc-legal-section a {
  color: var(--navy-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jfc-legal-section a:hover { color: var(--gold); }

.jfc-legal-section code {
  font-size: 0.85em;
  background: #F0F4F8;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

.jfc-legal-box {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.7;
}

.jfc-legal-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.jfc-legal-nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 10px 18px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.jfc-legal-nav-links a:hover {
  background: var(--navy);
  color: var(--white);
}

.jfc-reg-strip {
  background: #EEF1F5;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 40px 24px;
}

.jfc-reg-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
}

.jfc-reg-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  min-height: 58px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.jfc-reg-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.jfc-reg-tile img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

footer {
  background: var(--navy);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue-fr) 33.3%, #fff 33.3% 66.6%, var(--red-fr) 66.6%) 1;
  padding: 48px 24px 32px;
  color: rgba(245,247,250,0.6);
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: rgba(245,247,250,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-affiliate {
  font-size: 0.82rem;
  color: rgba(245,247,250,0.65);
  line-height: 1.6;
  padding: 14px 18px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.03);
}

.footer-affiliate code { font-size: 0.78rem; color: var(--gold-light); }

.footer-warning {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.footer-warning-title {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer-warning-text {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(245,247,250,0.6);
}

.footer-warning-text a { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.footer-chip {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
  color: rgba(245,247,250,0.5);
}

@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-inner { gap: 12px; }
  .nav-logo { font-size: 1rem; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .jfc-legal-main { padding: 32px 20px 48px; }
  .jfc-legal-hero { padding: 40px 20px 48px; }
  .jfc-legal-crumb { padding: 16px 20px 0; }
  .jfc-reg-strip { padding: 28px 16px; }
}

@media (max-width: 600px) {
  .navbar { padding: 0 12px; }
  .nav-logo { font-size: 0.88rem; gap: 8px; }
  .nav-badge { font-size: 0.65rem; padding: 3px 8px; }
  .jfc-legal-main { padding: 28px 16px 40px; }
  .jfc-legal-hero { padding: 32px 16px 40px; }
  .jfc-legal-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .jfc-reg-tile {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    padding: 10px 12px;
    min-height: 50px;
  }
  footer { padding: 40px 16px 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .popup-box { padding: 28px 20px 24px; }
}
