/* ============================================================================
   Evotic — Pages légales (/cgu, /privacy) · Phase 11.2 RGPD
   Layout simple, lecture confortable, sous header sticky.
   ============================================================================ */

.legal-body {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  margin: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-top);
  box-shadow: var(--shadow-header);
}
.app-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-4);
}
.app-header-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.app-header-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-header-sub {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hdr-back {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.hdr-back:hover { background: var(--skeleton); }
.hdr-back:active { transform: scale(0.92); }

.legal-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-4) max(var(--sp-6), calc(var(--safe-bottom) + var(--sp-5)));
}

.legal-doc {
  background: var(--card-bg);
  border-radius: var(--r-2xl);
  padding: var(--sp-5) var(--sp-5);
  box-shadow: var(--shadow-md);
  font-size: 15px;
  line-height: 1.62;
  color: var(--text);
}

.legal-intro {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0 0 var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.legal-section {
  margin: 0 0 var(--sp-5);
}
.legal-section:last-of-type {
  margin-bottom: var(--sp-4);
}
.legal-section h2 {
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 var(--sp-2);
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.legal-section h2::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  align-self: center;
}
.legal-section p {
  margin: 0 0 var(--sp-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong {
  font-weight: 800;
  color: var(--text);
}
.legal-section em {
  font-style: italic;
  color: var(--text-muted);
}

.legal-section ul {
  margin: 0 0 var(--sp-3);
  padding-left: var(--sp-4);
  list-style: none;
}
.legal-section li {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  margin: 0 0 6px;
  padding-left: var(--sp-3);
  line-height: 1.55;
}
.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.legal-section a,
.legal-intro a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  font-weight: 700;
}
.legal-section a:hover,
.legal-intro a:hover {
  color: var(--primary-dark);
  background: var(--primary-bg);
  border-radius: var(--r-xs);
  padding: 0 2px;
  text-decoration: none;
}

.legal-foot {
  margin: var(--sp-5) 0 0;
  padding: var(--sp-3);
  background: var(--skeleton);
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}
