/* Pages juridiques (/legal/…) et /supprimer-mon-compte/ : mêmes couleurs et police que app/email-confirmation/style.css. */
:root {
  --teal-dark: #16697A;
  --teal: #489FB5;
  --teal-light: #82C0CC;
  --cream: #EDE7E3;
  --ink: #1B2B2E;
  --ink-soft: #4B5F63;
  --line: #E3E8EA;
  --surface: #F6F8F9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--teal-dark);
  text-underline-offset: 2px;
}

a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.nowrap {
  white-space: nowrap;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: 28px 20px 8px;
}

.site-header__home {
  line-height: 0;
}

.site-header__home img {
  width: 180px;
  height: auto;
}

/* Page d'accueil : icône de l'application à la place de l'ancien logo horizontal. */
.site-header__home img.site-header__app-icon {
  width: 96px;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

.legal__back {
  margin: 0 0 8px;
  font-size: 14px;
}

.legal__back a {
  text-decoration: none;
}

.legal__content {
  font-size: 16px;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

.legal__content h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 8px;
}

.legal__content h1 + p em {
  font-size: 14px;
}

.legal__content h2 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 650;
  color: var(--ink);
  margin: 36px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal__content h3 {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  margin: 24px 0 6px;
}

.legal__content p,
.legal__content ul,
.legal__content ol {
  margin: 0 0 14px;
}

.legal__content ul,
.legal__content ol {
  padding-left: 22px;
}

.legal__content li {
  margin-bottom: 6px;
}

.legal__content strong {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  margin: 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.legal__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.legal__content th,
.legal__content td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  min-width: 140px;
}

.legal__content th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
}

.legal__content tr:last-child td {
  border-bottom: 0;
}

.doc-list {
  list-style: none;
  padding: 0 !important;
  margin: 20px 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.doc-list li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.doc-list li:last-child {
  border-bottom: 0;
}

.doc-list a {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  text-decoration: none;
}

.doc-list a::after {
  content: "›";
  float: right;
  color: var(--teal-light);
}

.todo {
  background: #FFF3E1;
  color: #8A4B00;
  padding: 0 3px;
  border-radius: 3px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px 36px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 640px) {
  .legal__content h1 {
    font-size: 30px;
  }
}

/* Page d'accueil (index.html). */
.legal__content .lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.contact-link {
  white-space: nowrap;
  font-weight: 600;
}

.legal__content .notice {
  margin-top: 28px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 10px;
  font-size: 14px;
}
