/* Style commun aux pages externes Eternavitas (légales, parcours, préambule)
   Cohérent avec chat-voice.html et historique.html.
   Noir absolu + ivoire chaud + accent bordeaux + Newsreader serif. */

:root {
  --bg:         #000000;
  --text:       #F5E5DC;
  --text-soft:  rgba(245, 229, 220, 0.55);
  --text-faint: rgba(245, 229, 220, 0.40);
  --accent:     #B83C3C;
  --rule:       rgba(245, 229, 220, 0.08);
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Newsreader', Georgia, serif;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
}

body {
  padding:
    calc(env(safe-area-inset-top, 0px) + 16px)
    20px
    calc(env(safe-area-inset-bottom, 0px) + 32px);
  max-width: 720px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.back-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245, 229, 220, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.back-link:active { color: var(--text); border-color: rgba(245, 229, 220, 0.45); }
.back-link svg { width: 16px; height: 16px; }

h1.page-title {
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text);
}

.page-content {
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(245, 229, 220, 0.92);
}
.page-content p {
  margin: 0 0 20px;
}
.page-content h2 {
  font-weight: 500;
  font-size: 22px;
  margin: 36px 0 14px;
  color: var(--text);
}
.page-content h3 {
  font-weight: 500;
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--text);
}
.page-content ul, .page-content ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
}
.page-content li {
  margin: 0 0 10px;
}
.page-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 60, 60, 0.40);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.page-content a:hover {
  color: var(--text);
  border-color: var(--text);
}
.page-content em {
  font-weight: 600;
  font-style: normal;
  color: var(--text);
}
.page-content strong {
  font-weight: 500;
  color: var(--text);
}
.page-content blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid rgba(184, 60, 60, 0.55);
  color: rgba(245, 229, 220, 0.85);
}

/* Tableaux (politique de confidentialité, etc.) — responsive mobile : cards */
.page-content table {
  width: 100%;
  margin: 22px 0 28px;
  font-size: 14.5px;
  border-collapse: collapse;
}
.page-content thead th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(245, 229, 220, 0.15);
  background: rgba(245, 229, 220, 0.025);
}
.page-content tbody td {
  padding: 12px;
  border-bottom: 1px solid rgba(245, 229, 220, 0.06);
  vertical-align: top;
  color: rgba(245, 229, 220, 0.82);
  line-height: 1.55;
}
.page-content tbody tr:last-child td { border-bottom: none; }

@media (max-width: 620px) {
  .page-content thead { display: none; }
  .page-content table, .page-content tbody, .page-content tr, .page-content td {
    display: block;
    width: 100%;
  }
  .page-content tbody tr {
    background: rgba(245, 229, 220, 0.025);
    border-radius: 6px;
    margin-bottom: 14px;
    padding: 14px;
    border-bottom: none;
  }
  .page-content tbody td {
    padding: 6px 0;
    border-bottom: none;
  }
  .page-content tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 4px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

.page-footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.page-footer a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-footer a:hover { color: var(--text-soft); }
.page-footer .copyright {
  margin-left: auto;
}

@media (min-width: 600px) {
  h1.page-title { font-size: 32px; }
  .page-content { font-size: 18px; }
}
</content>
</invoke>