/* ==========================================================================
   Pages légales (mentions-legales.html, politique.html) : une colonne de
   cartes de texte.
   ========================================================================== */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px var(--space-md) 80px
}

.logo-row,
.container {
  width: min(880px, 100%)
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 20px
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight)
}

.logo-brand:hover {
  text-decoration: none
}

.logo-brand img {
  height: 30px
}

.chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent-hover);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  white-space: nowrap
}

.container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md)
}

.intro-banner {
  padding: var(--space-sm) var(--space-md);
  color: var(--muted);
  font-size: .9375rem;
  text-align: center
}

.intro-banner strong {
  color: var(--text)
}

/* Cartes de contenu */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg)
}

h1 {
  margin: 0 0 6px;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold)
}

h2 {
  margin: 0 0 10px;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold)
}

p,
li {
  margin: 0;
  color: var(--muted);
  line-height: 1.65
}

p+p {
  margin-top: 10px
}

ul {
  margin: 10px 0 0;
  padding-left: 18px
}

li+li {
  margin-top: var(--space-xs)
}

strong {
  color: var(--text)
}

a {
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: var(--fw-semibold)
}

a:hover {
  text-decoration: underline
}

/* Tableau des finalités (politique) */
table {
  width: 100%;
  margin-top: var(--space-sm);
  border-collapse: collapse;
  font-size: .9375rem
}

th,
td {
  padding: 10px var(--space-sm);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--muted)
}

th {
  background: var(--bg);
  color: var(--text);
  font-weight: var(--fw-bold)
}

tr:last-child td {
  border-bottom: none
}

footer {
  padding: 10px;
  font-size: .8125rem;
  color: var(--muted);
  text-align: center
}

/* Bouton retour, toujours visible */
.back-home {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-weight: var(--fw-bold);
  box-shadow: var(--shadow-accent);
  transition: background var(--duration)
}

.back-home:hover {
  background: var(--accent-hover);
  text-decoration: none
}

@media (max-width: 640px) {
  .logo-row {
    flex-direction: column;
    align-items: flex-start
  }

  table {
    font-size: var(--fs-sm)
  }
}
