/* ─────────────────────────────────────────────────────────────────────────────
 * Answersly — Shared CSS for legal pages (CGU, Privacy, Mentions, Contact)
 * Same design system as V7 index.html (acid lime, Space Grotesk, near-black)
 * ─────────────────────────────────────────────────────────────────────────── */

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

:root {
  --bg:        #0A0A0B;
  --bg-2:      #131314;
  --bg-3:      #1B1B1D;
  --bg-input:  #0F0F11;

  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);
  --border-3:  rgba(255, 255, 255, 0.22);

  --fg-1:      #FAFAFA;
  --fg-2:      rgba(250, 250, 250, 0.62);
  --fg-3:      rgba(250, 250, 250, 0.38);
  --fg-4:      rgba(250, 250, 250, 0.20);

  --accent:        #BEF264;
  --accent-2:      #A3E635;
  --accent-soft:   rgba(190, 242, 100, 0.10);
  --accent-glow:   rgba(190, 242, 100, 0.45);
  --accent-text:   #0A0A0B;

  --success:   #4ADE80;
  --error:     #F87171;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg-1);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection { background: var(--accent); color: var(--accent-text); }

/* ── ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
  50% { box-shadow: 0 0 24px var(--accent-glow); }
}
@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.08); }
}

/* ── BACKGROUND */
.bg-stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.bg-stage::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 25%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 25%, #000 30%, transparent 90%);
}
.bg-stage::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}
.aurora-1 {
  width: 720px; height: 720px;
  top: -180px; left: -160px;
  background: radial-gradient(circle, rgba(190, 242, 100, 0.08), transparent 65%);
  animation: drift-1 42s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .aurora { animation: none !important; } }

/* ── LAYOUT */
.app { position: relative; z-index: 1; }
.container { max-width: 760px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .container { padding: 0 18px; } }

/* ── BRAND */
.brand {
  display: inline-flex; align-items: baseline; gap: 1px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--fg-1);
  cursor: pointer;
}
.brand-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: translateY(-1px);
  animation: pulse-dot 2.4s ease-in-out infinite;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
}
.brand:hover .brand-dot {
  transform: translateY(-1px) scale(1.4);
  box-shadow: 0 0 18px var(--accent-glow), 0 0 32px rgba(190, 242, 100, 0.25);
}

/* ── NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
@media (max-width: 600px) { .navbar-inner { padding: 0 18px; } }
.nav-actions { display: flex; align-items: center; gap: 6px; }

/* ── BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 13.5px;
  cursor: pointer; outline: none; border: none;
  transition: all .2s cubic-bezier(.16,1,.3,1);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:disabled { opacity: .42; cursor: not-allowed; pointer-events: none; }
.btn-link {
  background: transparent;
  color: var(--fg-2);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.btn-link:hover {
  color: var(--fg-1);
  background: var(--bg-2);
}
.btn-lime {
  background: var(--accent);
  color: var(--accent-text);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.btn-lime:hover {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transform: translateY(-1px);
}

/* ── LEGAL PAGE STYLES */
.legal-page { padding: 56px 0 40px; }

.legal-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 26px;
  animation: fadeUp .5s cubic-bezier(.16,1,.3,1) both;
}
.legal-meta-dash {
  width: 24px; height: 1px;
  background: var(--border-2);
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--fg-1);
  margin-bottom: 18px;
  animation: fadeUp .55s cubic-bezier(.16,1,.3,1) both;
  animation-delay: .08s;
}

.legal-intro {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 640px;
  animation: fadeUp .55s cubic-bezier(.16,1,.3,1) both;
  animation-delay: .14s;
}

/* ── TABLE OF CONTENTS */
.legal-toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 60px;
  animation: fadeUp .55s cubic-bezier(.16,1,.3,1) both;
  animation-delay: .20s;
}
.legal-toc h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-3);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
@media (min-width: 600px) {
  .legal-toc ol { grid-template-columns: 1fr 1fr; gap: 4px 24px; }
}
.legal-toc li {
  counter-increment: toc;
}
.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--fg-2);
  font-size: 13.5px;
  text-decoration: none;
  transition: color .15s, background .15s;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 6px;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero) '.';
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.legal-toc a:hover {
  color: var(--fg-1);
  background: var(--bg-3);
}

/* ── CONTENT */
.legal-content section {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  margin-top: 22px;
  margin-bottom: 8px;
}
.legal-content p {
  margin-bottom: 14px;
  color: var(--fg-2);
  line-height: 1.68;
}
.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 22px;
  color: var(--fg-2);
}
.legal-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.legal-content strong {
  color: var(--fg-1);
  font-weight: 600;
}
.legal-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(190, 242, 100, 0.35);
  transition: border-color .2s, color .2s;
}
.legal-content a:hover {
  border-bottom-color: var(--accent);
  border-bottom-style: solid;
  color: var(--accent-2);
}

/* Definition / info block */
.legal-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 14px 0 18px;
}
.legal-block dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fg-3);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.legal-block dt:not(:first-child) { margin-top: 14px; }
.legal-block dd {
  color: var(--fg-1);
  font-size: 14px;
}

/* ── BACK LINK */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 11px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}
.legal-back:hover {
  color: var(--fg-1);
  border-color: var(--border-2);
  background: var(--bg-2);
  transform: translateX(-2px);
}

/* ── CONTACT CARDS */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 40px;
}
@media (min-width: 600px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: all .25s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
  animation: fadeUp .5s cubic-bezier(.16,1,.3,1) both;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 22px; right: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.contact-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  background: var(--bg-3);
}
.contact-card:hover::before { opacity: 1; }

.contact-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-card-label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.contact-card-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.contact-card-text {
  font-size: 13.5px;
  color: var(--fg-2);
  margin-bottom: 14px;
  line-height: 1.55;
}
.contact-card-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
.contact-card-email:hover { color: var(--accent-2); }

/* ── CONTACT FORM */
.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  animation: fadeUp .5s cubic-bezier(.16,1,.3,1) both;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (min-width: 600px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: -0.005em;
}
.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  resize: none;
  outline: none;
  transition: border-color .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, background .25s ease;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--bg-2);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--fg-3); }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  outline: none;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .2s cubic-bezier(.16,1,.3,1);
  margin-top: 6px;
}
.btn-submit:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.btn-submit:active { transform: translateY(0); }

/* ── INFO BANNER */
.info-banner {
  background: var(--accent-soft);
  border: 1px solid rgba(190, 242, 100, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 13.5px;
  color: var(--fg-1);
  line-height: 1.55;
}
.info-banner svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* ── FOOTER */
.footer {
  margin-top: 90px;
  padding: 32px 0 50px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .footer-inner { padding: 0 18px; gap: 16px; flex-direction: column; align-items: flex-start; }
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
}
.footer-links a {
  color: var(--fg-3);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}
.footer-links a:hover { color: var(--accent); }
.footer-links a[aria-current="page"] {
  color: var(--fg-1);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── FOCUS VISIBLE */
button:focus-visible,
.btn:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
