/* Shared design tokens + site footer + content/legal page styling.
   Loaded by the landing page and every static content page so they share one
   look and one footer (see footer.js). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
:root {
  --bg: #f4f6fb; --surface: #ffffff; --border: #e6eaf2; --text: #0d1b2a;
  --muted: #667085; --green: #00a663; --red: #e5484d; --gold: #a67c2e; --navy: #eef2f8;
  --shadow: 0 1px 2px rgba(13,27,42,.04), 0 6px 20px rgba(13,27,42,.06);
  --shadow-lg: 0 20px 55px rgba(13,27,42,.13);
}
/* Eén lettertype voor de hele site (zoals de landing). Content-pagina's vielen
   voorheen terug op het browser-standaard serif; nu overal Inter. */
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

/* ── Market status banner (trading hours) ──────────────────────────────── */
.market-banner {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; font-size: 13px; text-align: center;
}
.market-banner .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.market-banner.open { background: rgba(0,166,99,0.10); color: #067a4a; border-bottom: 1px solid rgba(0,166,99,0.20); }
.market-banner.open .dot { background: var(--green); }
.market-banner.closed { background: #fdecec; color: #b4383c; border-bottom: 1px solid #f5cccd; }
.market-banner.closed .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,0.18); }

/* ── Social login buttons (auth card) ──────────────────────────────────── */
.social-login { margin-top: 18px; }
.social-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 12px; margin-bottom: 14px;
}
.social-divider::before, .social-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 14px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  color: var(--text); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .15s ease;
}
.social-btn:hover { border-color: var(--muted); background: var(--bg); }
.social-btn svg { width: 18px; height: 18px; }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 18px; padding: 12px 40px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text);
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap;
}
.nav-brand span { color: var(--gold); }
.nav-menu { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-menu > a, .nav-dd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--muted); text-decoration: none; background: none; border: none;
  cursor: pointer; font-family: inherit; transition: color .15s, background .15s;
}
.nav-menu > a:hover, .nav-dd-btn:hover { color: var(--text); background: var(--surface); }
.nav-dd-btn .caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 2px; margin-top: -3px; }

/* Dropdowns (legal + language) */
.nav-dd { position: relative; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .15s ease;
}
.nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd-menu a, .lang-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: 7px; font-size: 14px; color: var(--text);
  text-decoration: none; background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: left;
}
.nav-dd-menu a:hover, .lang-item:hover { background: var(--bg); color: var(--gold); }
.lang-flag { font-size: 18px; line-height: 1; }

/* Auth buttons */
.nav-auth { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.nav-auth .nav-user { font-size: 13px; color: var(--muted); }
.btn-ghost, .btn-solid {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; border: 1px solid var(--border);
  background: none; color: var(--text); transition: all .15s ease; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-solid { background: var(--gold); color: #000; border-color: var(--gold); }
.btn-solid:hover { filter: brightness(1.08); }

/* Mobile */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; margin-left: auto; }
@media (max-width: 900px) {
  .nav-inner { padding: 12px 20px; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > a, .nav-dd-btn { width: 100%; }
  .nav-dd { width: 100%; }
  .nav-dd-menu { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--bg); margin: 2px 0 6px; padding: 4px; }
  .nav-dd .nav-dd-menu { display: none; }
  .nav-dd.open .nav-dd-menu { display: block; }
  .nav-auth { margin: 8px 0 0; }
  .nav-auth .btn-ghost, .nav-auth .btn-solid { flex: 1; text-align: center; }
}

/* ── Site footer ───────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 40px 28px;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px;
}
.footer-brand .footer-logo span { color: var(--gold); }
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border); color: var(--muted);
  transition: all .15s ease;
}
.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer-pay { margin-top: 20px; }
.footer-pay-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; background: #fff; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--text); box-shadow: var(--shadow); }
.pay-badge.pay-logo { padding: 0 10px; }
.pay-badge img { display: block; height: 22px; width: auto; }
.footer-reg { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12.5px; color: var(--muted); max-width: 320px; }
.footer-reg svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.socials svg { width: 18px; height: 18px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text); margin-bottom: 14px; font-weight: 600;
}
.footer-col a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 14px; padding: 6px 0; transition: color .15s ease;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 18px 40px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px 22px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { padding: 16px 24px; }
}

/* ── Content / legal pages ─────────────────────────────────────────────── */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 980px; margin: 0 auto; width: 100%; padding: 20px 40px;
}
.page-nav .brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.page-nav .brand span { color: var(--gold); }
.page-nav .back { font-size: 13px; color: var(--muted); text-decoration: none; }
.page-nav .back:hover { color: var(--gold); }

.content {
  max-width: 820px; margin: 0 auto; width: 100%; padding: 24px 40px 64px; flex: 1;
}
.content h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.content .lead { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.content h2 {
  font-size: 19px; font-weight: 600; margin: 34px 0 12px;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.content h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; color: var(--gold); }
.content p, .content li { color: var(--text); font-size: 15px; line-height: 1.75; }
.content p { margin-bottom: 14px; }
.content ul, .content ol { margin: 0 0 16px 22px; }
.content li { margin-bottom: 8px; }
.content a { color: var(--gold); }
.content .muted { color: var(--muted); }
.content .updated {
  display: inline-block; font-size: 12px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 28px;
}
.content .note {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 14px 16px; margin: 18px 0; font-size: 14px; color: var(--muted);
}
.content table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; }
.content th, .content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.content th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Simple contact form */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 13px; color: var(--text); font: inherit; font-size: 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.btn-primary {
  background: var(--gold); color: #000; border: none; border-radius: 8px;
  padding: 12px 22px; font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.08); }

@media (max-width: 640px) {
  .page-nav, .content { padding-left: 22px; padding-right: 22px; }
}
