/* KAERON — pages légales (mobile-first, WCAG) */

@font-face {
  font-family: 'Fira Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/fira-mono-400.ttf) format('truetype');
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/public-sans-300.ttf) format('truetype');
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/public-sans-400.ttf) format('truetype');
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/public-sans-700.ttf) format('truetype');
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  font-family: 'Public Sans', Arial, sans-serif;
  color: #25211c;
  background: #f4f0e8;
  color-scheme: light;
  --green: #70501b;
  --green-light: #d4a24c;
  --ink: #25211c;
  --muted: #5b5145;
  --rust: #776b59;
  --blue: #211d19;
  --line: rgba(37,33,28, 0.14);
  --header: 72px;
}

*,
::before,
::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: #fffdf9;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.legal-shell {
  width: calc(100% - 32px);
  max-width: 720px;
  margin-inline: auto;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(37,33,28, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green-light);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header);
  padding-block: 12px;
}

.legal-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: none;
}

.legal-logo {
  width: 132px;
  height: auto;
  display: block;
  object-fit: contain;
}

.legal-page-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.4;
}

.legal-main {
  padding-block: 40px 64px;
}

.legal-intro {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-intro h1 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.legal-intro h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.legal-meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--ink);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  max-width: 68ch;
  color: var(--ink);
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content ul,
.legal-content ol {
  margin-top: 12px;
  padding-left: 1.25rem;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--green-light);
}

.legal-ref {
  font-family: 'Fira Mono', monospace;
  font-size: 0.92em;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.legal-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--green-light);
  background: rgba(112,80,27, 0.04);
  font-size: 15px;
  color: var(--muted);
}

.legal-note strong {
  color: var(--ink);
  font-weight: 700;
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 40px;
  background: linear-gradient(180deg, #fffdf9, rgba(112,80,27, 0.03));
}

.legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
}

.legal-footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.legal-footer-nav a:hover,
.legal-footer-nav a[aria-current='page'] {
  color: var(--green);
}

.legal-footer-copy {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* 404 */
.legal-404 {
  text-align: center;
  padding-block: 48px 24px;
}

.legal-404-code {
  font-family: 'Fira Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--rust);
  text-transform: uppercase;
}

.legal-404 h1 {
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-top: 16px;
}

.legal-404 h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  color: var(--green);
}

.legal-404 p {
  margin: 16px auto 0;
  max-width: 42ch;
  color: var(--muted);
}

.legal-404-actions {
  margin-top: 32px;
}

.legal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--green);
  color: #fffdf9;
  font-size: 15px;
  font-weight: 400;
  border: 1px solid var(--green);
  transition: background 0.2s ease, transform 0.2s ease;
}

.legal-button:hover {
  background: var(--green-light);
  border-color: var(--green-light);
}

.legal-button:focus-visible {
  outline-color: var(--blue);
}

@media (min-width: 640px) {
  .legal-shell {
    width: calc(100% - 48px);
  }

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

  .legal-logo {
    width: 152px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }

  .legal-button {
    transition: none;
  }
}
