/* PsyMarne – styles des pages secondaires (mentions légales, 404) */
/* ---------- Pages secondaires ---------- */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 56px; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.5; }
.page-hero::before { width: 460px; height: 460px; background: #F3D3BF; top: -180px; right: -60px; }
.page-hero::after { width: 380px; height: 380px; background: #CFE3DF; top: -120px; left: -140px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.035em; margin: 16px 0 14px; max-width: 820px; }
.page-hero p { font-size: 17px; max-width: 640px; }

/* Mentions légales */
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; padding-bottom: 110px; }
.legal-toc {
  position: sticky; top: 104px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.legal-toc p { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.legal-toc ol { list-style: none; display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; line-height: 1.4; }
.legal-toc a:hover { background: var(--teal-50); color: var(--teal-dark); }
.legal-card {
  padding: 44px 48px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.legal-card h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 14px; padding-top: 34px;
  border-top: 1px solid var(--line); scroll-margin-top: 110px;
}
.legal-card h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-card p, .legal-card ul { font-size: 15.5px; line-height: 1.8; margin-bottom: 14px; }
.legal-card ul { padding-left: 20px; }
.legal-card li { margin-bottom: 8px; }
.legal-card a:not(.btn) { color: var(--terra-dark); }
.legal-card .updated { margin-top: 30px; font-size: 14px; color: var(--muted); }
.back-home { margin-top: 30px; }

/* 404 */
.notfound { padding: 60px 0 110px; text-align: center; }
.notfound .code {
  font-size: clamp(96px, 16vw, 170px); font-weight: 800; line-height: 1; letter-spacing: -0.06em;
  background: linear-gradient(100deg, var(--terra) 15%, var(--teal) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 14px 0 12px; letter-spacing: -0.03em; }
.notfound > .wrap > p { font-size: 17px; max-width: 560px; margin: 0 auto 30px; }
.notfound .hero-actions { justify-content: center; }
.shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 56px auto 0; text-align: left; }
.shortcut {
  display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shortcut:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shortcut .badge { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--teal-50); color: var(--teal); font-size: 18px; flex-shrink: 0; }
.shortcut strong { display: block; font-size: 16px; }
.shortcut span span { font-size: 13.5px; color: var(--muted); }
@media (forced-colors: active) { .notfound .code { color: CanvasText; background: none; } }

@media (max-width: 960px) {
  .legal-grid { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; }
  .shortcuts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 36px 0 32px; }
  .legal-card { padding: 28px 22px; }
  .legal-grid { padding-bottom: 72px; }
  .notfound { padding: 30px 0 72px; }
}
