/* legal.css : styles partages pour les pages legales (mentions, CGU, privacy, RGPD) */

/* --- Layout --- */
.legal-page{max-width:820px;margin:0 auto;padding:6rem 1.25rem 2.5rem;}
.lp-header{margin-bottom:2.5rem;}
.lp-header h1{font-size:1.8rem;font-weight:800;letter-spacing:-.02em;margin-bottom:.6rem;}
.lp-header p{color:rgba(244,245,250,.45);font-size:.9rem;line-height:1.65;}

/* --- Sections --- */
.lp-sections{display:flex;flex-direction:column;gap:2rem;}
.lp-section{padding-bottom:2rem;border-bottom:1px solid rgba(255,255,255,.07);}
.lp-section:last-of-type{border-bottom:none;}

/* --- Titres H2 (separation visuelle quand contenu DB injecte dans un seul lp-section) --- */
.lp-section h2{font-size:1.05rem;font-weight:700;margin-bottom:.9rem;color:rgba(244,245,250,.9);}
.lp-section h2:not(:first-child){margin-top:2.5rem;padding-top:2rem;border-top:1px solid rgba(255,255,255,.07);}

/* --- Texte --- */
.lp-section p{font-size:.88rem;line-height:1.75;color:rgba(244,245,250,.6);margin-bottom:.75rem;}
.lp-section p:last-child{margin-bottom:0;}
.lp-section a{color:#4068C8;text-decoration:none;}
.lp-section a:hover{text-decoration:underline;}
.lp-section ul,.lp-section ol{font-size:.88rem;line-height:1.75;color:rgba(244,245,250,.6);padding-left:1.5rem;margin-bottom:.75rem;}
.lp-section code{font-family:'DM Mono',monospace;font-size:.8rem;background:rgba(255,255,255,.06);padding:.15rem .4rem;border-radius:3px;}
.lp-section em{color:rgba(244,245,250,.3);font-size:.82rem;}
.lp-section strong{color:rgba(244,245,250,.85);}

/* --- Tableaux (lp-table legacy + tables DB sans classe) --- */
.lp-table,
.lp-section table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:.84rem;
  line-height:1.6;
  margin-top:.75rem;
  margin-bottom:1.5rem;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  overflow:hidden;
}

/* En-tetes */
.lp-table th,
.lp-section table th{
  text-align:left;
  padding:.65rem .9rem;
  color:rgba(244,245,250,.5);
  font-weight:600;
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.03em;
  background:rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.08);
}

/* Cellules */
.lp-table td,
.lp-section table td{
  padding:.6rem .9rem;
  color:rgba(244,245,250,.7);
  border-top:1px solid rgba(255,255,255,.04);
  vertical-align:top;
}

/* Premiere ligne : pas de border-top sur td */
.lp-table tbody tr:first-child td,
.lp-section table tbody tr:first-child td{border-top:none;}

/* Lignes alternees */
.lp-table tbody tr:nth-child(even) td,
.lp-section table tbody tr:nth-child(even) td{
  background:rgba(255,255,255,.02);
}

/* Hover sur les lignes */
.lp-table tbody tr:hover td,
.lp-section table tbody tr:hover td{
  background:rgba(255,255,255,.04);
  transition:background .15s;
}

/* Liens dans les tableaux */
.lp-table a,
.lp-section table a{color:#4068C8;text-decoration:none;}
.lp-table a:hover,
.lp-section table a:hover{text-decoration:underline;}

/* --- Responsive tableaux --- */
@media(max-width:640px){
  .lp-table,
  .lp-section table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:6px;
  }
  .lp-table th,
  .lp-section table th,
  .lp-table td,
  .lp-section table td{
    padding:.5rem .65rem;
    font-size:.78rem;
    min-width:90px;
  }
  .legal-page{padding:5.5rem 1rem 1.5rem;}
  .lp-header h1{font-size:1.4rem;}
}

/* --- Footer / Nav / Update --- */
.lp-update{font-size:.75rem;color:rgba(244,245,250,.2);font-family:'DM Mono',monospace;margin-top:1rem;}
.lp-footer{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.07);}
.lp-footer p{font-size:.78rem;color:rgba(244,245,250,.35);}
.lp-nav{display:flex;gap:1rem;flex-wrap:wrap;margin-top:2rem;padding-top:2rem;border-top:1px solid rgba(255,255,255,.07);}
.lp-nav a{font-size:.85rem;color:rgba(244,245,250,.4);text-decoration:none;transition:color .2s;}
.lp-nav a:hover{color:#F4F5FA;}
