@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%;
}

/* === STRUCTURE === */
body.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: rgb(18, 17, 17);
  color: #C2A878;
}

/* === LANGUAGE SWITCHER === */
.language-switcher {
  position: fixed;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 8px;
  z-index: 1000;
  background: rgba(0,0,0,0.25);
  padding: 6px 8px;
  border-radius: 8px;
}

.flag {
  width: 30px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.flag:hover {
  transform: scale(1.1);
}

/* === RESPONSIVE FLAGS + ESPACE ANTI-CHEVAUCHEMENT === */
@media (max-width: 600px) {

  .language-switcher {
    top: 0.5rem;
    left: 0.5rem;
    gap: 5px;
    padding: 4px 6px;
  }

  .flag {
    width: 22px;
    height: 14px;
  }

  /* ✅ Empêche les drapeaux de recouvrir le contenu */
  .legal-container {
    padding-top: 80px !important;
  }
}

/* === MAIN CONTENT === */
.legal-container {
  flex: 1;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #C2A878;
}

/* === FOOTER === */
.footer {
  width: 100%;
  background-color: rgb(18, 17, 17);
  color: rgb(255, 182, 193);
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer a {
  color: rgb(255, 182, 193);
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-links img {
  width: 22px;
  height: 22px;
  filter: invert(80%) sepia(25%) saturate(250%) hue-rotate(20deg);
  transition: 0.3s;
}

.social-links img:hover {
  transform: scale(1.2);
  filter: invert(100%);
}

/* === RESPONSIVE GLOBAL === */
@media (max-width: 768px) {
  .legal-container {
    padding: 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .legal-container {
    padding: 10px;
    font-size: 14px;
  }
}
