/* Nestwo — feuille de style pages légales (statiques, sans Flutter) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1F2937;
  background: #F9FAFB;
  -webkit-font-smoothing: antialiased;
}
a { color: #1E3A8A; text-decoration: underline; }
a:hover { text-decoration: none; }

.legal-header {
  background: #1E3A8A;
  color: #fff;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.legal-header__inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.legal-header a { color: #fff; text-decoration: none; }
.legal-header__logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: #fff url('/nestwo-logo.svg') center/74% no-repeat;
}
.legal-header__brand { font-size: 18px; font-weight: 700; letter-spacing: 0.3px; }
.legal-header__back {
  margin-left: auto; font-size: 13px; opacity: 0.85;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}
h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #0F172A;
  margin-bottom: 6px;
}
.subtitle { color: #6B7280; font-size: 14px; margin-bottom: 36px; }

.toc {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 36px;
}
.toc__title { font-size: 13px; font-weight: 700; text-transform: uppercase; color: #6B7280; letter-spacing: 0.5px; margin-bottom: 8px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; padding: 4px 0; font-size: 14px; }
.toc li::before { content: counter(toc) ". "; color: #1E3A8A; font-weight: 700; }
.toc a { color: #1F2937; text-decoration: none; }
.toc a:hover { color: #1E3A8A; }

section {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 18px;
  scroll-margin-top: 80px;
}
section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
section h2 .num { color: #1E3A8A; font-weight: 800; }
section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
  margin: 18px 0 8px;
}
section p, section li { font-size: 15px; color: #1F2937; }
section p { margin-bottom: 10px; }
section ul, section ol { padding-left: 22px; margin-bottom: 10px; }
section li { margin-bottom: 4px; }
section em { color: #6B7280; font-style: normal; font-size: 13px; }

.callout {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 14px 0;
  font-size: 14px;
}
.callout--info { background: #DBEAFE; border-left-color: #1E3A8A; }
.callout--danger { background: #FEE2E2; border-left-color: #DC2626; }

.placeholder {
  display: inline-block;
  background: #FEF3C7;
  border: 1px dashed #F59E0B;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: #92400E;
}

table.subprocessors {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 13.5px;
}
table.subprocessors th, table.subprocessors td {
  border: 1px solid #E5E7EB;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
table.subprocessors th {
  background: #F3F4F6;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #4B5563;
}
table.subprocessors tr:nth-child(even) td { background: #FAFAFA; }

footer.legal-footer {
  text-align: center;
  font-size: 13px;
  color: #6B7280;
  padding: 24px;
}
footer.legal-footer a { color: #6B7280; margin: 0 6px; }

@media (max-width: 600px) {
  h1 { font-size: 26px; }
  section { padding: 18px 18px; }
  main { padding: 20px 14px 60px; }
}
