/* Information pages (À propos, Informations légales, Confidentialité, Crédits des circuits).
   They load the site bundle (/app.css) for the banner, navigation bar and footer; this file only styles
   their text content, with the same panels, borders and accents as the rest of the site. */

.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 22px auto 48px;
  color: #e6ecea;
}

.legal-page h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  color: #f4f6f5;
}

.legal-page .updated {
  margin: 8px 0 18px;
  color: var(--muted, #99a3a0);
  font-size: 14px;
}

/* Table of contents: same look as the filter buttons of the race list. */
.legal-page .legal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
}
.legal-page .legal-summary a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: #c7d0d4;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.legal-page .legal-summary a:hover,
.legal-page .legal-summary a:focus-visible { color: #ffffff; border-color: rgba(82, 211, 216, .6); background: rgba(82, 211, 216, .1); }

/* Each section is a panel, like the cards of the site. */
.legal-page section {
  margin: 0 0 14px;
  padding: 20px 22px;
  border: 1px solid var(--border, #292d31);
  border-radius: 14px;
  background: var(--panel, #111315);
}
.legal-page h2 {
  margin: 0 0 10px;
  font-size: 19px;
  color: #52d3d8;
}
.legal-page p,
.legal-page li { line-height: 1.65; color: #d6dcda; font-size: 15px; }
.legal-page p { margin: 8px 0; }
.legal-page ul { margin: 8px 0 0; padding-left: 22px; }
.legal-page li + li { margin-top: 6px; }
.legal-page a { color: #7fe3ea; }
.legal-page a:hover { color: #ffffff; }

.legal-page .legal-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid rgba(243, 179, 61, .75);
  border-radius: 0 8px 8px 0;
  background: rgba(243, 179, 61, .07);
}

.legal-page code {
  padding: .1em .38em;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  font-size: .92em;
}

/* Four information tabs in the bar: they wrap instead of overflowing. */
.site-nav-shell .nav-sections-info { flex-wrap: wrap; }

@media (max-width: 760px) {
  .legal-page { width: calc(100% - 20px); margin-top: 14px; }
  .legal-page section { padding: 16px; border-radius: 12px; }
  .legal-page .legal-summary a { font-size: 13px; padding: 0 10px; }
  .site-nav-shell .nav-sections-info { display: grid !important; grid-template-columns: 1fr 1fr; }
  .site-nav-shell .nav-sections-info .nav-section-button { justify-content: center; font-size: 13px !important; padding: 0 8px !important; }
}

/* Page « Nouveautés » (générée depuis CHANGELOG.md). */
.changelog-page .changelog-version h2 { font-size: 21px; }
.changelog-page .changelog-version h3 { margin: 16px 0 4px; font-size: 16px; color: #f4f6f5; }
.changelog-page .changelog-version:first-of-type { border-color: rgba(82, 211, 216, .45); }
.changelog-page :is(li[data-admin], li[data-community]):not(.shown) { display: none; }
