/* Standalone legal-document pages (privacy.html, terms.html) — not part of
   the SPA bundle, so this stays separate from styles.css and only pulls in
   the shared color/font tokens defined there. */
.doc-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.4rem 1.3rem 4rem;
}
.doc-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
/* The Habitude logo: inline on server-rendered pages (stem and letters in
   currentColor), /habitude-logo.svg on the static legal pages. */
.doc-header .hb-logo, .doc-header .doc-logo { display: block; height: 36px; width: auto; color: var(--ink); }
.doc-page h1 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}
.doc-updated {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}
.doc-page h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 2rem 0 0.7rem;
}
.doc-page p, .doc-page li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
}
.doc-page ul, .doc-page ol {
  padding-left: 1.3rem;
  margin: 0.6rem 0;
}
.doc-page a { color: var(--accent); }
.doc-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 0.88rem;
}
.doc-page th, .doc-page td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
.doc-page th { color: var(--ink-soft); font-weight: 500; }
.doc-back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
}

/* Language switch (English ⇄ Français) and the French-version precedence note. */
.doc-header .doc-lang { margin-left: auto; font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.doc-note { margin-top: 2rem; font-size: 0.8rem; color: var(--ink-soft); }
