/* ── Brand tokens (mirrors styles.css) ───────────────────── */
:root {
  --blue:         #0505AC;
  --blue-light:   #009CDF;
  --purple:       #9360E5;
  --purple-light: #DAD9FB;
  --bg:     #ffffff;
  --text:   #1a1a2e;
  --muted:  #6b7280;
  --border: #e5e7eb;
  --white:  #ffffff;
  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────────── */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.legal-nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.legal-nav-logo img { height: 48px; width: auto; }

/* Back link — sits below the nav, above the page title */
.legal-back-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 0;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.legal-back:hover { color: var(--purple); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  padding: 5px 12px;
  font-size: .8rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: background .15s, color .15s;
  letter-spacing: .03em;
}
.lang-btn.active { background: var(--purple); color: var(--white); border-radius: 999px; }

/* ── Page wrapper ────────────────────────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ── Header ──────────────────────────────────────────────── */
.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--purple-light);
}
.legal-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.legal-effective {
  font-size: .9rem;
  color: var(--muted);
}

/* ── Content ─────────────────────────────────────────────── */
.legal-section { margin-bottom: 40px; }

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--purple);
}
.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 8px;
}
.legal-section p {
  font-size: .9875rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.legal-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}
.legal-section ul li {
  position: relative;
  padding-left: 20px;
  font-size: .9875rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.legal-section ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}
.legal-section ul li strong { color: var(--text); font-weight: 600; }

/* Contact email */
.legal-email {
  color: var(--purple);
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────────── */
.legal-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}
.legal-footer a { color: var(--purple); }

/* ── Lang sections ───────────────────────────────────────── */
[data-lang] { display: none; }
[data-lang].active { display: block; }
