/* ================================
   PAGE : Mentions légales
   ================================ */

/* ---------- Page context ---------- */
.page-legal {
  background: #fff;
  color: #1D3057;
  font-family: "Inter Tight", sans-serif;
}

/* ---------- Header & Title ---------- */
.legal-header {
  padding-top: 120px;
  margin-bottom: 48px;
}

.legal-title {
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  margin: 0;
  color: #1D3057;

}

/* ---------- Main Grid ---------- */
.legal.container {
  display: grid;
  grid-template-columns: 356px 1fr;
  /* sidebar | content */
  column-gap: 64px;
  padding-bottom: 60px;
  align-items: start;
  grid-template-areas:
    "sidebar content";
    margin-left: 25px;
    
}

/* ---------- Sidebar ---------- */
.sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 110px;
  align-self: start;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding-right: 24px;
  margin-bottom: 20px;
}

/* Sidebar title */
.sidebar-title {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  color: #1D3057;
  opacity: 0.85;
  margin-bottom: 12px;
  font-family: 'Kodchasan', 'light', sans-serif;

}

/* Sidebar nav links */
.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a {
  display: inline-block;
  font-size: 18px;
  font-weight: 400;
  color: #1D3057;
  text-decoration: none;
  transition: color 160ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: var(--blue-dark);
}

/* ---------- Content ---------- */
.content {
  grid-area: content;
  max-width: 760px;
}

/* Sections */
.legal-section {
  margin-bottom: 44px;
}

.legal-section h5 {
  margin-bottom: 10px;
  font-weight: 400;
  font-size: 28px;
  color: #1D3057;
  opacity: 0.95;
}

.legal-section p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: #1D3057;
}

.legal-section ul {
  margin-bottom: 16px;
  padding-left: 18px;
}

.legal-section li {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.8);
}

/* Hide <hr> if present */
.content hr {
  display: none;
}

/* ================================
   Responsive rules
   ================================ */

/* Tablet: stack sidebar above content */
@media (max-width: 1024px) {
  .legal.container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "content";
    column-gap: 0;
    padding: 100px 20px 60px;
  }

  .sidebar {
    position: relative;
    top: auto;
    border-right: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 16px;
    padding-right: 0;
    margin-bottom: 24px;
  }
}

/* Mobile: stacked, smaller fonts, links wrap */
@media (max-width: 768px) {
  .legal-header {
    padding-top: 80px;
    margin-bottom: 40px;
  }

  .legal-title {
    font-size: 36px;
  }

  .legal.container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "content";
    gap: 40px;
    padding: 60px 16px 40px;
  }
  
.container {
    padding-inline: 20px!important;
}

  .sidebar {
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 0;
      margin-bottom: 126px;
  }

  .sidebar-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .content {
    max-width: 100%;
  }

  .legal-section h5 {
    font-size: 22px;
  }
}

/* ---------- Sidebar ---------- */
.sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 110px;
  align-self: start;
  /* border-right: 1px solid rgba(0,0,0,0.08); keeps right border on desktop */
  padding-right: 24px;
    margin-bottom: 126px;
}

/* Sidebar title */
.sidebar-title {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  color: #1D3057;
  opacity: 0.85;
  margin-bottom: 12px;
}

/* Sidebar nav links: vertical list ALWAYS */
.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* vertical stack */
  gap: 8px;
  flex-wrap: nowrap;
  /* prevent wrapping even on mobile */
}

/* Sidebar links */
.sidebar-nav a {
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: #1D3057;
  text-decoration: none;
  transition: color 160ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: var(--blue-dark);
}

/* ---------- Remove any hr or extra line between sidebar and content ---------- */
.legal.container hr,
.sidebar+.content {
  border: none;
  /* remove any horizontal line */
  margin: 0;
  padding: 0;
}

/* ---------- Sidebar fixes ---------- */
.sidebar {
  grid-area: sidebar;
  position: sticky;
  /* desktop sticky */
  top: 110px;
  align-self: start;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  /* only desktop */
  padding-right: 24px;
  margin-bottom: 20px;
}

/* Sidebar title */
.sidebar-title {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  color: #1D3057;
  opacity: 0.85;
  margin-bottom: 12px;
}

/* Sidebar nav links - always vertical */
.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-wrap: nowrap;
  /* vertical list never wraps */
}

.sidebar-nav a {
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: #1D3057;
  text-decoration: none;
  transition: color 160ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: var(--blue-dark);
}

/* ---------- Remove any hr or extra line ---------- */
.legal.container hr,
.sidebar+.content {
  border: none;
  margin: 0;
  padding: 0;
}

/* ================================
   MOBILE & TABLET FIXES
   ================================ */
@media (max-width: 1024px) {
  .legal.container {
    display: block;
    /* stack naturally */
    padding: 100px 20px 60px;
  }

  .sidebar {
    position: relative;
    /* remove sticky */
    top: auto;
    border-right: none;
    border-top: none;
    /* remove any line */
    padding: 0;
    margin-bottom: 24px;
  }

  .sidebar-nav ul {
    flex-direction: column;
    /* keep vertical */
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .legal.container {
    display: block;
    /* stack naturally */
    padding: 60px 16px 40px;
  }

  .sidebar {
    position: relative;
    /* remove sticky on mobile */
    top: auto;
    border-right: none;
    /* remove border */
    border-top: none;
    padding: 0;
    margin-bottom: 126px;
  }

  .sidebar-nav ul {
    flex-direction: column;
    /* always vertical */
    gap: 8px;
  }
}

/* ---------- Sidebar link color fix on mobile ---------- */
@media (max-width: 1024px) {

  .sidebar-nav a,
  .sidebar-nav a:hover,
  .sidebar-nav a.is-active {
    color: #1D3057;
    /* default text color */
  }
}

@media (min-width: 1024px) {

  .sidebar-nav a:hover,
  .sidebar-nav a.is-active {
    color: var(--blue-dark);
  }
}

/* Hide the “SOMMAIRE” title completely */
.sidebar-title {
  display: none;
}

.sidebar-title {
  display: block;
  /* keep it visible if you want */
  color: #1D3057;
  /* normal text color */
  pointer-events: none;
  /* remove click */
  text-decoration: none;
}

.sidebar {
  border-right: none;
}





/* ----- Title spacing ----- */
.legal-header {
  padding-top: 160px;
  /* more space above the main title */
  margin-bottom: 64px;
  /* more space below the title */
  MARGIN-LEFT: 25px;
}

/* ----- First section adjustment ----- */
.legal-section:first-of-type {
  margin-top: 0;
  /* remove top margin */
  padding-top: 0;
  /* optional: remove any padding-top */
}

/* ----- Align domain and editor at same level ----- */
.legal-section p strong {
  display: inline-block;
  /* keep the bold text inline */
  /* width: 150px; */
  /* adjust width to align texts */
}

/* Example: for email and director */
#editeur p:nth-of-type(3) strong {
  width: 180px;
}

.legal-section {
  margin-bottom: 100px;
}

.legal-section:first-of-type p:first-of-type {
  margin-top: 0;
}

.legal-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
}

.legal-section:first-of-type p:first-of-type {
  margin-top: 0;
}

.content {
  padding-top: 24px;
}

.sidebar-nav {
  padding-top: 48px;
}

@media (max-width: 1024px) {
  .content {
    padding-top: 16px;
  }

  .sidebar-nav {
    padding-top: 16px;
  }
}
/* 
.container {

  padding-inline: 56px;

} */