/* Legal pages (mentions légales, CGV): static, readable, following the app's theme. */

:root {
  --bg: #07080c;
  --surface: #0f1219;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f6;
  --text-2: #b8bfcc;
  --muted: #7d8599;
  --accent: #7fb2ff;
  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --border: rgba(15, 18, 30, 0.1);
  --text: #12151d;
  --text-2: #3a4050;
  --muted: #6b7182;
  --accent: #2f6fe0;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

nav.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.875rem;
}

nav.legal-nav a {
  color: var(--muted);
  text-decoration: none;
}

nav.legal-nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
}

h1 {
  margin: 0 0 4px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
}

.updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.875rem;
}

h2 {
  margin: 40px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 1.25rem;
}

h3 {
  margin: 24px 0 4px;
  font-size: 1rem;
}

p,
ul,
dl {
  margin: 0 0 12px;
  color: var(--text-2);
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 4px;
}

a {
  color: var(--accent);
}

dl.identity {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 6px 16px;
}

dl.identity dt {
  color: var(--muted);
}

dl.identity dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.summary {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.summary p:last-child,
.summary ul:last-child {
  margin-bottom: 0;
}

footer.legal-foot {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 520px) {
  dl.identity {
    grid-template-columns: 1fr;
    gap: 0;
  }

  dl.identity dd {
    margin-bottom: 8px;
  }
}
