/* ===================================================== */
/* Styles pour les pages légales / info                  */
/* ===================================================== */

/* Mini nav simple */
.nav-simple {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1100px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slide-down 0.6s var(--ease-out) both;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  transition: all 0.2s var(--ease-spring);
}

.nav-back:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateX(-2px);
}

/* Layout */
.legal-page {
  padding: 140px 0 80px;
  position: relative;
  z-index: 1;
}

.legal-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.legal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 16px 0 12px;
}

.legal-title .gradient {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(20px);
}

.legal-content h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 16px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h2::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

.legal-content h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content p strong,
.legal-content li strong {
  color: var(--text);
  font-weight: 700;
}

.legal-content ul,
.legal-content ol {
  margin: 14px 0 18px;
  padding-left: 0;
  list-style: none;
}

.legal-content li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 6px; top: 10px;
  width: 8px; height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.legal-content ol {
  counter-reset: legal-ol;
}

.legal-content ol li {
  counter-increment: legal-ol;
}

.legal-content ol li::before {
  content: counter(legal-ol);
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 100px;
  background: var(--gradient-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', monospace;
}

.legal-content a {
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  transition: all 0.2s;
}

.legal-content a:hover {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.legal-content blockquote,
.legal-callout {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 0;
}

.legal-callout strong { color: var(--text); }

.legal-callout-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.05));
  border-color: rgba(245, 158, 11, 0.3);
}

.legal-callout-info {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(59, 130, 246, 0.05));
  border-color: rgba(6, 182, 212, 0.3);
}

.legal-content .state-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}

.state-tag.nm { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.state-tag.ex { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.state-tag.lp { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.state-tag.pl { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item[open] {
  background: var(--bg-card-hover);
  border-color: var(--violet);
}

.faq-question {
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-spring);
  flex-shrink: 0;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.faq-answer {
  padding: 0 22px 22px;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 14px;
}

.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* À propos */
.about-hero-image {
  display: flex;
  justify-content: center;
  margin: 0 auto 40px;
}

.about-hero-image .emoji-stack {
  font-size: 80px;
  filter: drop-shadow(0 16px 32px rgba(139, 92, 246, 0.4));
  animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

.about-commitments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.commitment-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
}

.commitment-card:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
}

.commitment-emoji {
  font-size: 32px;
  margin-bottom: 12px;
}

.commitment-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 17px;
}

.commitment-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer étendu (utilisé sur toutes les pages) */
.footer-extended {
  margin-top: 100px;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px);
}

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

.footer-col h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-col-brand .logo {
  margin-bottom: 12px;
}

.footer-col-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-link-list a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 900px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.footer-disclaimer strong {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .legal-content { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .legal-page { padding: 100px 0 60px; }
  .nav-simple { padding: 10px 16px; }
  .legal-content { padding: 24px 20px; }
  .legal-content h2 { font-size: 22px; }
}
