/* ===================================
   Pages Légales (RGPD) - Nexus Core
   Style cohérent avec le thème du site
   =================================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #e8ecff;
  background: linear-gradient(180deg, #0a0e1a 0%, #050810 100%);
  min-height: 100vh;
  position: relative;
}

/* Fond animé (comme sur le site principal) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 200, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(191, 174, 129, 0.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Container principal */
main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

/* Header avec retour */
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(140, 190, 255, 0.18);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(10, 16, 32, 0.55);
  border: 1px solid rgba(140, 190, 255, 0.18);
  color: #e8ecff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.legal-back:hover {
  background: rgba(10, 16, 32, 0.75);
  border-color: rgba(0, 200, 255, 0.35);
  transform: translateX(-2px);
}

.legal-back::before {
  content: "←";
  font-size: 1.2rem;
}

/* Titres */
h1 {
  font-family: 'Orbitron', 'Barlow', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 200, 255, 0.25);
}

h2 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  color: rgba(191, 174, 129, 0.95);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(191, 174, 129, 0.25);
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: rgba(0, 200, 255, 0.9);
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Paragraphes et listes */
p {
  margin-bottom: 16px;
  color: rgba(232, 236, 255, 0.9);
  line-height: 1.7;
}

ul, ol {
  margin: 16px 0 16px 24px;
  color: rgba(232, 236, 255, 0.9);
}

li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Liens */
a {
  color: rgba(0, 200, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 200, 255, 0.3);
  transition: all 0.2s ease;
}

a:hover {
  color: rgba(0, 200, 255, 1);
  border-bottom-color: rgba(0, 200, 255, 0.7);
}

/* Sections */
section {
  margin-bottom: 40px;
  padding: 24px;
  background: rgba(10, 16, 32, 0.45);
  border: 1px solid rgba(140, 190, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Emphase */
strong {
  color: rgba(191, 174, 129, 0.95);
  font-weight: 700;
}

em {
  color: rgba(0, 200, 255, 0.9);
  font-style: italic;
}

/* Code / Email */
code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(140, 190, 255, 0.18);
  color: rgba(0, 200, 255, 0.95);
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

/* Tableaux (si nécessaire) */
table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  background: rgba(10, 16, 32, 0.35);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(140, 190, 255, 0.12);
}

th {
  background: rgba(10, 16, 32, 0.55);
  color: rgba(191, 174, 129, 0.95);
  font-weight: 700;
}

/* Footer */
.legal-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(140, 190, 255, 0.18);
  text-align: center;
  color: rgba(232, 236, 255, 0.7);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding: 60px 16px 40px;
  }

  .legal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  section {
    padding: 16px;
  }

  h2 {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 50px 12px 30px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  section {
    padding: 12px;
  }
}

@media (max-width: 360px) {
  main {
    padding: 44px 10px 26px;
  }

  h1 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  section {
    padding: 10px;
  }

  .legal-footer {
    margin-top: 40px;
    padding-top: 18px;
    font-size: 0.82rem;
  }
}

/* Animation d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeInUp 0.6s ease-out;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }

  body::before {
    display: none;
  }

  .legal-back {
    display: none;
  }

  section {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}
