/* Legal (confidentialite.html, conditions.html): a calm dark hero over a game photo, then a paper reading room with a sticky contents list that follows you. */

/* One language at a time: site.js sets <html lang>; French shows without JS. */
html[lang="en"] [data-lang-block="fr"] { display: none !important; }
html:not([lang="en"]) [data-lang-block="en"] { display: none !important; }

/* hero */
.legal-hero > .wrap { padding-bottom: clamp(48px, 8vh, 90px); }
.legal-hero .phero__bg img { object-position: center 55%; filter: saturate(.8); }
.legal-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 9, 11, .94), rgba(7, 9, 11, .7) 55%, rgba(7, 9, 11, .45)), linear-gradient(180deg, rgba(7, 9, 11, .5), transparent 40%, rgba(7, 9, 11, .85)); }
.legal-hero::after { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -420px; background: radial-gradient(closest-side, rgba(255, 46, 120, .14), transparent); z-index: 0; pointer-events: none; }
.legal-hero .h-1 { font-size: clamp(44px, 6.4vw, 104px); }
.legal-hero__aside { align-self: end; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.legal-meta > span { display: inline-flex; align-items: center; gap: 22px; }
.legal-meta > span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); margin-left: -12px; }
.legal-draft { padding: 20px 22px; border-radius: var(--r); border: 1px solid rgba(245, 183, 34, .35); background: rgba(245, 183, 34, .07); color: var(--on-ink-2); font-size: 15px; line-height: 1.6; position: relative; }
.legal-draft strong { display: block; color: var(--gold); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }

/* placeholders to be filled in, kept visible on purpose */
.ph { font-family: var(--mono); font-size: .84em; color: #8a5a00; background: rgba(245, 183, 34, .16); border: 1px dashed rgba(170, 115, 0, .5); border-radius: 6px; padding: 0 5px; white-space: normal; overflow-wrap: anywhere; letter-spacing: 0; text-transform: none; }
.s-ink .ph { color: var(--gold); background: rgba(245, 183, 34, .1); border-color: rgba(245, 183, 34, .45); }

/* reading room */
.legal-body > .wrap { padding-top: clamp(56px, 9vh, 110px); padding-bottom: var(--pad); }
.legal-grid { display: grid; gap: 34px; align-items: start; }
@media (min-width: 1000px) { .legal-grid { grid-template-columns: 290px minmax(0, 1fr); gap: clamp(50px, 6vw, 110px); } }

/* contents */
.legal-toc { display: grid; gap: 14px; }
@media (min-width: 1000px) { .legal-toc { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: none; } .legal-toc::-webkit-scrollbar { display: none; } }
.legal-toc__toggle { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: default; }
.legal-toc__cur { display: none; }
.legal-toc__toggle i { display: none; }
.legal-toc__bar { height: 2px; background: var(--paper-line); position: relative; overflow: hidden; }
.legal-toc__bar i { position: absolute; inset: 0; background: var(--lime-ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; }
.legal-toc a { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: baseline; padding: 9px 0 9px 14px; color: var(--mute); font-size: 14.5px; line-height: 1.35; transition: color .3s, padding-left .45s var(--ease); }
.legal-toc a::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--lime-ink); transform: skewX(var(--skew)) scaleY(0); transition: transform .45s var(--ease); }
.legal-toc .idx { font-size: 19px; color: var(--faint); }
.legal-toc a:hover { color: var(--on-paper); }
.legal-toc a.is-active { color: var(--on-paper); font-weight: 600; padding-left: 20px; }
.legal-toc a.is-active::before { transform: skewX(var(--skew)) scaleY(1); }
.legal-toc a.is-active .idx { color: var(--lime-ink); }

/* small screens: a folded card that says where you are */
@media (max-width: 999px) {
  .legal-toc { border: 1px solid var(--paper-line); background: var(--white); border-radius: var(--r); padding: 16px 18px; gap: 12px; }
  .legal-toc__toggle { cursor: pointer; min-height: 30px; }
  .legal-toc__cur { display: block; flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--on-paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .legal-toc__toggle i { display: block; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--paper-line); flex: none; margin-left: auto; transition: transform .5s var(--ease); }
  .legal-toc__toggle i::before, .legal-toc__toggle i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
  .legal-toc__toggle i::after { transform: translate(-50%, -50%) rotate(90deg); }
  .legal-toc.is-open .legal-toc__toggle i { transform: rotate(180deg); }
  .legal-toc.is-open .legal-toc__toggle i::after { transform: translate(-50%, -50%) rotate(0); }
  .js .legal-toc:not(.is-open) ol { display: none; }
  .legal-toc a { padding-left: 12px; }
}

/* the text */
.legal-doc { max-width: 74ch; font-size: 17px; line-height: 1.75; gap: 16px; }
.legal-intro p { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; color: var(--on-paper); letter-spacing: -.01em; }
.legal-sec { display: grid; gap: 14px; scroll-margin-top: 110px; padding-top: 22px; }
.legal-sec h2 { display: flex; align-items: baseline; gap: 16px; margin-top: 22px; padding-top: 28px; border-top: 1px solid var(--paper-line); font-size: clamp(24px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.15; font-variation-settings: "wdth" 90; }
.legal-sec h2 .idx { font-size: clamp(26px, 2.2vw, 34px); color: var(--lime-ink); flex: none; min-width: 1.4em; }
.legal-doc strong { color: var(--on-paper); font-weight: 650; }
.legal-doc ul { padding-left: 1.1em; gap: 10px; }
.legal-doc li { padding-left: 4px; }
.legal-doc li::marker { color: var(--lime-ink); }

/* end of document */
.legal-end { margin-top: clamp(60px, 10vh, 110px); padding-top: 26px; border-top: 2px solid var(--on-paper); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 40px; align-items: center; }
@media (min-width: 1000px) { .legal-end { margin-left: calc(290px + clamp(50px, 6vw, 110px)); } }
.legal-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--faint); font-size: 14px; }
.legal-foot a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--paper-line); }
.legal-foot a:hover { color: var(--on-paper); }
.legal-other { display: flex; flex-wrap: wrap; gap: 14px 34px; }
@media (max-width: 600px) { .legal-doc { font-size: 16px; } .legal-sec h2 { gap: 12px; } }
