/* Pages légales */
.legal-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] {
  background-color: var(--bg);
}

html[data-theme="dark"] body.legal-page-body {
  background-color: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] .legal-main,
html[data-theme="dark"] .blog-layout-content,
html[data-theme="dark"] .article-page,
html[data-theme="dark"] .article-page > article {
  background: transparent;
  color: var(--text);
}

[data-theme="dark"] .legal-header {
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .legal-nav-link {
  background: var(--bg-card);
}

[data-theme="dark"] .legal-nav-link.active {
  color: #c7d2fe;
}

[data-theme="dark"] .methodology-footer-note {
  color: var(--text);
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  background: transparent !important;
  color: inherit;
  border-radius: 0;
}

.brand-link { text-decoration: none; color: inherit; }

.legal-main {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  width: 100%;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.legal-nav-link {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.legal-nav-link:hover,
.legal-nav-link.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.legal-article h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.legal-section {
  margin-bottom: 1.75rem;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.legal-section p {
  margin-bottom: 0.65rem;
  line-height: 1.65;
  color: var(--text);
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section code {
  font-size: 0.85em;
  background: var(--surface);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.legal-back { margin-top: 2rem; }

/* Méthodologie */
.methodology-intro p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.methodology-principles {
  padding-left: 1.25rem;
  line-height: 1.65;
}

.methodology-principles li { margin-bottom: 0.5rem; }

.methodology-band { margin-top: 2rem; }

.methodology-instrument {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.methodology-instrument h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.methodology-instrument p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.methodology-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.methodology-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.methodology-footer-note {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* Notre histoire */
.story-article .story-video {
  position: relative;
  width: 100%;
  margin: 0 0 1.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.story-article .story-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.story-body {
  line-height: 1.7;
  color: var(--text);
}

.story-body p {
  margin-bottom: 0.85rem;
}

.story-body p:last-child { margin-bottom: 0; }

.story-body h2,
.story-body h3 {
  font-family: var(--font-display);
  margin: 1.5rem 0 0.65rem;
  color: var(--text);
}

.story-body h2 { font-size: 1.15rem; }
.story-body h3 { font-size: 1rem; color: var(--primary); }

.story-body ul,
.story-body ol {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.story-body li { margin-bottom: 0.35rem; }

.story-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.story-preview-box .story-video {
  max-width: 100%;
}

@media (max-width: 600px) {
  .legal-header, .legal-main { padding-left: 1rem; padding-right: 1rem; }
}
