/* ==========================================================================
   Tolia — legal.css
   Style officiel des documents légaux Apple Compliance (public/*.html).
   Design System Apple : SF Pro typography, matériaux translucides,
   palette Tolia Espresso (#2A1810) & Crème (#FFF8F3).
   ========================================================================== */

:root {
  --bg: #FFF8F3;
  --surface: #FFFFFF;
  --surface-2: #FBEEE4;
  --border: #EBDCCF;
  --text: #2A1810;
  --text-sub: #6B5A50;
  --accent: #2A1810;
  --accent-soft: #FFDFCB;
  --accent-text: #8A3B12;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150C08;
    --surface: #1E120C;
    --surface-2: #2A1A12;
    --border: #3F2B21;
    --text: #F7EEE8;
    --text-sub: #B0A196;
    --accent: #FFC9A8;
    --accent-soft: #3D2518;
    --accent-text: #FFC9A8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 243, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(21, 12, 8, 0.85);
  }
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 22%;
  box-shadow: 0 1px 3px rgba(42, 24, 16, 0.12);
}

.back-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 150ms;
}

.back-link:hover {
  color: var(--text);
}

main.legal {
  padding-top: 48px;
  padding-bottom: 80px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.updated {
  font-size: 0.875rem;
  color: var(--text-sub);
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 32px;
}

section {
  margin-top: 40px;
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

p, ul, ol {
  margin: 0 0 16px;
}

ul, ol {
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9375rem;
}

.callout-warning {
  border-left-color: #D97706;
  background: rgba(217, 119, 6, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

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

tr:last-child th, tr:last-child td {
  border-bottom: none;
}

th {
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-sub);
}
