/* REVEAL — pages légales (havefuncorp.fr/reveal) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --color-bg: #0d0f1e;
  --color-bg-deep: #05060f;
  --color-primary: #ff3cac;
  --color-primary-hot: #ff6b6b;
  --color-secondary: #6366f1;
  --color-secondary-soft: #818cf8;
  --color-sky: #38bdf8;
  --gradient-primary: linear-gradient(135deg, var(--color-primary-hot), var(--color-primary));
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary-soft), var(--color-secondary));
  --shadow-primary: 0 8px 32px rgba(255, 60, 172, 0.3);
  --shadow-secondary: 0 8px 28px rgba(99, 102, 241, 0.35);
  --text-muted: rgba(248, 250, 252, 0.65);
  --text-soft: rgba(255, 255, 255, 0.4);
  --legal-max: 480px;
}

@media (min-width: 800px) {
  :root { --legal-max: 640px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--color-bg-deep);
  -webkit-text-size-adjust: 100%;
}

body.legal-page {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--color-bg);
  color: #fff;
  min-height: 100dvh;
  line-height: 1.55;
  overflow-x: hidden;
}

.legal-wrap {
  position: relative;
  max-width: var(--legal-max);
  margin: 0 auto;
  padding:
    calc(24px + env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    calc(32px + env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
}

.legal-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.legal-glow--pink {
  width: 220px;
  height: 220px;
  top: -40px;
  left: 50%;
  transform: translateX(-78%);
  background: radial-gradient(circle, rgba(255, 60, 172, 0.45) 0%, transparent 70%);
}

.legal-glow--indigo {
  width: 240px;
  height: 240px;
  top: -24px;
  left: 50%;
  transform: translateX(-12%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
}

.legal-crumb {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.legal-crumb a,
.legal-crumb a:link,
.legal-crumb a:visited {
  color: var(--text-soft);
  text-decoration: none;
}

.legal-crumb a:hover,
.legal-crumb a:focus-visible {
  color: #fff;
  text-decoration: none;
}

.legal-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 28px;
}

.legal-hero a.logo-link,
.legal-hero a.logo-link:link,
.legal-hero a.logo-link:visited,
.legal-hero a.logo-link:hover {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.legal-hero img {
  width: min(185px, 52vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

.legal-arc {
  width: min(265px, 88%);
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary-hot),
    var(--color-primary),
    var(--color-secondary-soft),
    var(--color-sky),
    transparent
  );
  opacity: 0.85;
}

.legal-tagline {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.legal-pitch {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: -4px 0 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hub-stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}

.hub-phone {
  width: 180px;
  height: 368px;
  padding: 8px;
  border-radius: 28px;
  background: #05060f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hub-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 20px;
}

.hub-legal {
  position: relative;
  z-index: 1;
  margin-top: 20px;
}

.hub-legal-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 10px;
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.hub-legal-label::-webkit-details-marker {
  display: none;
}

.hub-legal-label::marker {
  content: "";
}

.hub-legal-label:hover,
.hub-legal[open] > .hub-legal-label {
  color: #fff;
}

.hub-legal .legal-links {
  margin-top: 10px;
}

.legal-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.legal-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 20px;
  margin-top: 20px;
  backdrop-filter: blur(12px);
}

.legal-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.legal-card h2:not(:first-child) {
  margin-top: 1.25rem;
}

.legal-card p,
.legal-card address {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.legal-card address { font-style: normal; }

.legal-card p:last-child { margin-bottom: 0; }

.legal-card ul,
.legal-card ol {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.legal-card li { margin-bottom: 0.35rem; }

.legal-card li:last-child { margin-bottom: 0; }

.legal-note {
  padding: 12px 14px;
  margin: 1rem 0;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-left: 3px solid var(--color-secondary-soft);
}

.legal-note p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.legal-link-pill,
.legal-link-pill:link,
.legal-link-pill:visited,
.legal-link-pill:hover {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.legal-link-pill:active { transform: scale(0.99); }

.legal-link-pill--pink {
  background: rgba(255, 60, 172, 0.07);
  border-color: rgba(255, 107, 107, 0.15);
}

.legal-link-pill--indigo {
  background: rgba(99, 102, 241, 0.07);
  border-color: rgba(129, 140, 248, 0.15);
}

.legal-link-pill--sky {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.12);
}

.legal-link-pill--coral {
  background: rgba(251, 146, 60, 0.07);
  border-color: rgba(251, 146, 60, 0.15);
}

.legal-link-pill .icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.legal-link-pill--pink .icon {
  background: var(--gradient-primary);
  box-shadow: 0 0 16px rgba(255, 60, 172, 0.5);
}

.legal-link-pill--indigo .icon {
  background: var(--gradient-secondary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}

.legal-link-pill--sky .icon {
  background: linear-gradient(135deg, var(--color-secondary-soft), var(--color-sky));
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.legal-link-pill--coral .icon {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.45);
}

.legal-link-pill .label {
  font-weight: 600;
  font-size: 0.95rem;
}

.legal-link-pill .sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 2px;
  font-weight: 400;
}

.store-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

a.store-badge,
a.store-badge:link,
a.store-badge:visited,
a.store-badge:hover {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 260px;
  padding: 10px 20px 10px 16px;
  border-radius: 10px;
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
}

a.store-badge:hover,
a.store-badge:visited {
  color: #fff;
  text-decoration: none;
}

a.store-badge:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

a.store-badge:active { transform: scale(0.99); }

a.store-badge svg.store-badge__logo {
  display: block;
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  max-height: 28px;
  flex: 0 0 28px;
  overflow: hidden;
}

a.store-badge .store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

a.store-badge .store-badge__caption {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

a.store-badge .store-badge__name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a.store-badge--apple {
  border-color: #6366f1;
}

a.store-badge--apple .store-badge__name {
  color: #6366f1;
}

a.store-badge--play {
  border-color: #ff3cac;
}

a.store-badge--play .store-badge__name {
  color: #ff3cac;
}

a.store-badge--site {
  justify-content: center;
  padding: 16px 20px;
}

a.store-badge--site .store-badge__site {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.legal-cta {
  display: block;
  margin-top: 28px;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
}

.legal-cta--inline {
  display: inline-block;
  margin-top: 0;
  font-size: 0.92rem;
  padding: 14px 20px;
}

.legal-footer-nav {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  text-align: center;
}

.legal-footer-nav a,
.legal-footer-nav a:link,
.legal-footer-nav a:visited {
  color: var(--color-secondary-soft);
  text-decoration: none;
}

.legal-footer-nav a:hover { text-decoration: underline; }

.legal-footer-nav span { color: var(--text-soft); margin: 0 0.35em; }

a,
a:link,
a:visited {
  color: var(--color-secondary-soft);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.legal-crumb a:hover,
.legal-hero a.logo-link:hover,
.legal-link-pill:hover,
.store-badge:hover,
.hub-legal-label:hover {
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .legal-glow--pink {
    animation: glow-pink 8s ease-in-out infinite;
  }

  .legal-glow--indigo {
    animation: glow-indigo 10s ease-in-out infinite;
  }

  .legal-wrap > *:not(.legal-glow) {
    animation: hub-rise 0.5s ease both;
  }

  @keyframes glow-pink {
    0%, 100% { opacity: 0.45; transform: translateX(-78%) scale(1); }
    50% { opacity: 0.72; transform: translateX(-78%) scale(1.1); }
  }

  @keyframes glow-indigo {
    0%, 100% { opacity: 0.4; transform: translateX(-12%) scale(1); }
    50% { opacity: 0.65; transform: translateX(-8%) scale(1.08); }
  }

  @keyframes hub-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}