/* legal.css — pages Privacy, Terms of Sale et License : même charte que le site, en simple */
:root { --carbon: #111111; --paper: #F0EFEA; --silver: #a8a8a5; --optical: #82918b; --rule: #2c2c2b; --sel: #1d1d1c; --gut: clamp(16px, 4vw, 56px); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--carbon); color: var(--paper); font-family: "Inter Tight", system-ui, -apple-system, sans-serif; font-weight: 300; line-height: 1.6; }
a { color: inherit; }
.lg-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--gut); border-bottom: 1px solid var(--rule); }
.lg-nav img { height: 20px; width: auto; display: block; }
.lg-nav nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lg-nav nav a, .lg-foot a { text-decoration: none; color: var(--silver); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.lg-nav nav a:hover, .lg-nav nav a[aria-current="page"], .lg-foot a:hover { color: var(--paper); }
main { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gut) 64px; }
h1 { margin: 0; font-weight: 500; font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.lg-date { margin: 18px 0 48px; color: var(--silver); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
h2 { margin: 48px 0 12px; padding-top: 22px; border-top: 1px solid var(--rule); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
h3 { margin: 26px 0 6px; font-weight: 600; font-size: 16px; }
main p, main li { color: #d4d3ce; font-size: 16px; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 6px; }
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--paper); }
strong { font-weight: 600; color: var(--paper); }
.ph { background: rgba(255, 196, 0, .16); color: #ffd666; padding: 0 4px; border-radius: 3px; font-weight: 500; }   /* à remplir avant la mise en ligne */
.lg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 22px; padding: 22px var(--gut) 32px; border-top: 1px solid var(--rule); color: #6b6b69; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---- même style que les cartes « Raytraced, not warped » du site : titres en minuscules, poids 500, texte gris clair léger ---- */
main { max-width: 820px; counter-reset: sec; }
h1 { font-weight: 500; text-transform: none; letter-spacing: -.035em; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; }
.lg-date { color: var(--optical); }
main > p { color: var(--silver); font-size: 17px; line-height: 1.6; font-weight: 300; }
h2 { counter-increment: sec; margin: 0; padding: 28px 28px 12px; border: 1px solid var(--rule); border-bottom: 0; font-weight: 500; font-size: 22px; letter-spacing: -.02em; color: var(--paper); }
h2::before { content: counter(sec, upper-alpha); display: block; margin-bottom: 30px; color: var(--optical); font-size: 13px; font-weight: 500; letter-spacing: .04em; }
h2 ~ p, h2 ~ ul, h2 ~ ol, h2 ~ h3 { margin: 0; padding: 0 28px 14px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
h2 ~ ul, h2 ~ ol { padding-left: calc(28px + 1.2em); }
h3 { padding-top: 10px !important; font-weight: 500; font-size: 17px; letter-spacing: -.01em; color: var(--paper); }
h2 ~ p, li { color: var(--silver); font-size: 16px; line-height: 1.6; font-weight: 300; }
h2 ~ p strong, li strong { color: var(--paper); font-weight: 500; }
/* chaque section se ferme comme une carte : bordure du bas avant le titre suivant et à la fin */
h2:not(:first-of-type) { margin-top: 0; box-shadow: 0 -1px 0 var(--rule); }
main > :last-child { padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
h2 { margin-top: 0; }
main > h2:first-of-type { margin-top: 40px; }
a { text-decoration-color: rgba(240,239,234,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--paper); }
@media (max-width: 600px) { h2 { padding: 22px 20px 10px; } h2 ~ p, h2 ~ ul, h2 ~ ol, h2 ~ h3 { padding-left: 20px; padding-right: 20px; } h2 ~ ul, h2 ~ ol { padding-left: calc(20px + 1.2em); } }

/* ---- typographie exactement comme les cartes du site (.card h3 / .card p) : Inter Tight lissée, titre 21 px 500, texte 15 px 300 gris ---- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: 400; }
h2 { font-size: 21px; font-weight: 500; letter-spacing: -.02em; line-height: normal; }
h3 { font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
main > p, h2 ~ p, li { font-size: 15px; line-height: 1.55; font-weight: 300; color: var(--silver); letter-spacing: normal; }
main > p { font-size: 15px; } .lg-date + p { font-size: 17px; }   /* seul le paragraphe d'intro est plus grand */
h2 ~ p strong, li strong, main > p strong { font-weight: 500; color: var(--paper); }

/* ---- sans lettres A B C et sans lignes : sections simplement espacées ---- */
h2::before { content: none; }
h2, h2 ~ p, h2 ~ ul, h2 ~ ol, h2 ~ h3 { border: 0 !important; box-shadow: none !important; }
h2 { padding: 0; margin: 44px 0 12px !important; }
h2 ~ p, h2 ~ ul, h2 ~ ol, h2 ~ h3 { padding: 0 0 12px; }
h2 ~ ul, h2 ~ ol { padding-left: 1.2em; }
main > :last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 600px) { h2 { padding: 0; } h2 ~ p, h2 ~ ul, h2 ~ ol, h2 ~ h3 { padding-left: 0; padding-right: 0; } h2 ~ ul, h2 ~ ol { padding-left: 1.2em; } }

/* barre et pied de page de l'accueil (site.css) sur les pages légales */
body.legal main { padding-top: calc(var(--navh) + clamp(32px, 6vw, 80px)); }
body.legal main a { text-decoration: underline; }
body.legal .nav, body.legal .foot { font-weight: 400; line-height: normal; }
body.legal .foot { margin-top: 40px; }
