/**
 * MusicMe — site web légal (privacy + terms).
 * Reprend l'identité visuelle iOS / macOS : fond #0F0F0F, accent magenta
 * #F107A3, typographie système SF Pro, halo magenta diffus en arrière-plan.
 */

:root {
  --bg: #0F0F0F;
  --surface: #1A1A1A;
  --surface-light: #252525;
  --accent: #F107A3;
  --accent-dark: #7B2FF7;
  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  --text-muted: #727272;
  --border: #2A2A2A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  padding: 64px 24px 96px;
  position: relative;
  overflow-x: hidden;
}

/* Halo magenta diffus, fixed, derrière tout — signature MusicMe */
.halo {
  position: fixed;
  top: -200px;
  left: 50%;
  width: min(900px, 120vw);
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(241, 7, 163, 0.16),
    rgba(123, 47, 247, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Brand ─────────────────────────────────────────────────────────── */

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 56px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand-welcome {
  color: var(--text-primary);
}

.brand-name {
  color: var(--accent);
}

/* ── Typo ──────────────────────────────────────────────────────────── */

h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 14px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 44px 0 14px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

p, ul, ol, table {
  margin: 12px 0;
  color: var(--text-secondary);
}

ul, ol { padding-left: 24px; }
li { margin: 6px 0; }
li::marker { color: var(--accent); }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 7, 163, 0.35);
  transition: border-color 0.15s ease;
}
a:hover { border-color: var(--accent); }

strong { color: var(--text-primary); font-weight: 600; }
em { color: var(--text-primary); font-style: normal; font-weight: 500; }

.updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 36px;
}

code {
  font-family: "SF Mono", Monaco, "Cascadia Mono", "Roboto Mono", monospace;
  font-size: 13.5px;
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--accent);
}

/* ── Tableau (utilisé pour le tableau des finalités RGPD) ───────────── */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 20px 0;
  font-size: 14.5px;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-light);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

tr:last-child td { border-bottom: 0; }
td { color: var(--text-secondary); }

/* ── Footer ────────────────────────────────────────────────────────── */

.footer {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.langs {
  display: flex;
  gap: 18px;
}

.langs a {
  font-weight: 600;
  font-size: 13px;
  border-bottom-color: transparent;
  padding-bottom: 2px;
}

.langs a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-muted);
  border-bottom: none;
}
.footer-links a:hover {
  color: var(--text-primary);
}

.footer-meta {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ── Landing index card (uniquement sur la page racine) ─────────────── */

.legal-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.legal-card:hover {
  background: var(--surface-light);
  border-color: rgba(241, 7, 163, 0.35);
}
.legal-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.legal-card-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  body { padding: 40px 18px 72px; }
  .brand { font-size: 26px; margin-bottom: 36px; }
  h1 { font-size: 28px; }
  h2 { font-size: 19px; margin-top: 32px; }
  table { font-size: 13px; }
  th, td { padding: 10px 12px; }
}
