/* =========================================================
   Kasper Trading Academy — Pages légales (shared stylesheet)
   ========================================================= */

:root {
  --bg: #050705;
  --bg-2: #08100c;
  --surface: #0a120e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(0, 255, 153, 0.18);
  --text: #eef3ef;
  --text-dim: #98a3a0;
  --text-mute: #6b7672;
  --green: #00ff99;
  --green-soft: #6df0b8;
  --green-deep: #00b876;
  --max: 760px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
a { color: var(--green-soft); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--green); }

/* ----- Atmospheric background, lighter than landing ----- */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,255,153,.10), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(0,255,153,.06), transparent 60%);
}

/* ----- Top nav ----- */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,7,5,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.legal-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
}
.legal-brand img {
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 10px rgba(0,255,153,.3));
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .25s var(--ease);
}
.legal-back:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(0,255,153,.04);
}
.legal-back svg { width: 14px; height: 14px; }

/* ----- Page header & content ----- */
.legal-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.legal-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0,255,153,.04);
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: #fff;
}
.legal-updated {
  color: var(--text-mute);
  font-size: 14px;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  color: #fff;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--text);
}
p {
  margin-bottom: 16px;
  color: var(--text-dim);
}
strong { color: var(--text); font-weight: 600; }
ul, ol { margin-left: 22px; margin-bottom: 18px; color: var(--text-dim); }
li { margin-bottom: 8px; }
.legal-card {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 24px 0;
}
.legal-card p { margin-bottom: 8px; color: var(--text); }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card strong { color: #fff; }

/* ----- Footer (allégé) ----- */
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}
.legal-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.legal-footer-links a {
  color: var(--text-dim);
  font-size: 13px;
  text-decoration: none;
}
.legal-footer-links a:hover { color: var(--green-soft); }
.legal-footer-links a.active { color: var(--text); }

@media (max-width: 600px) {
  .legal-nav-inner { padding: 12px 16px; }
  .legal-wrap { padding: 40px 20px 80px; }
  h2 { margin-top: 40px; }
}
