/* BloxVibe legal pages (mentions-legales, cgv, confidentialite, cookies).
   Loaded after styles.css: reuses its tokens (graphite + lime), header (.top) and footer (.foot).
   Everything here is prefixed lg- so it never collides with the home page. */

.lg-top .top-in { gap: 16px; }
.no-js .lang { display: none; }

.lg-main { position: relative; padding: 48px 0 88px; }
.lg-main::before { content: ''; position: absolute; inset: 0 0 auto; height: 280px; background: var(--studs); mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); pointer-events: none; }
.lg-col { position: relative; max-width: calc(70ch + 48px); margin: 0 auto; padding: 0 24px; }

.lg-doc .lg-back { display: flex; width: fit-content; align-items: center; gap: 8px; color: var(--ash); text-decoration: none; font-size: 14px; margin-bottom: 28px; }
.lg-doc .lg-back:hover { color: var(--bone); }
.lg-back svg { width: 16px; height: 16px; }

.lg-doc .lg-kicker { display: flex; width: fit-content; align-items: center; gap: 9px; font-size: 13px; color: var(--ash); background: var(--iron); border: 1px solid var(--seam); border-radius: 99px; padding: 4px 13px 4px 11px; margin-bottom: 18px; }
.lg-doc h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin-bottom: 14px; overflow-wrap: anywhere; }
.lg-doc .lg-updated { color: var(--cinder); font-size: 14px; margin-bottom: 26px; }
.lg-doc .lg-intro { color: var(--ash); font-size: 17px; margin-bottom: 30px; }

/* Table of contents */
.lg-toc { background: var(--iron); border: 1px solid var(--seam); border-radius: var(--r-card); padding: 18px 22px 16px; margin: 0 0 44px; }
.lg-doc .lg-toc h2 { font: 600 12px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--cinder); margin: 0 0 10px; }
.lg-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.lg-toc li { break-inside: avoid; padding: 3px 0; color: var(--cinder); font-size: 14.5px; }
.lg-doc .lg-toc a { color: var(--ash); text-decoration: none; }
.lg-doc .lg-toc a:hover { color: var(--accent); text-decoration: underline; }

/* Body text */
.lg-doc section { padding: 0; scroll-margin-top: 84px; }
.lg-doc section + section { margin-top: 42px; padding-top: 34px; border-top: 1px solid var(--seam); }
.lg-doc h2 { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.25; margin-bottom: 16px; }
.lg-doc h2 .n { color: var(--accent); margin-right: 10px; }
.lg-doc h3 { font: 600 16.5px var(--ui); letter-spacing: 0; margin: 26px 0 10px; color: var(--bone); }
.lg-doc p, .lg-doc ul, .lg-doc .lg-list { color: #d3dacf; margin: 0 0 14px; }
.lg-doc ul, .lg-doc .lg-list { padding-left: 22px; }
.lg-doc li { margin: 0 0 7px; }
.lg-doc li::marker { color: var(--cinder); }
.lg-doc strong { color: var(--bone); font-weight: 600; }
.lg-doc a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.lg-doc a:hover { color: #d6f77c; }
.lg-doc code { font-size: 12.5px; white-space: nowrap; }

/* Callouts */
.lg-note { background: var(--iron-2); border: 1px solid var(--seam); border-left: 3px solid var(--quench); border-radius: 10px; padding: 14px 18px; margin: 18px 0; color: #d3dacf; }
.lg-note.key { border-left-color: var(--accent); }
.lg-note > :last-child { margin-bottom: 0; }
.lg-quote { background: var(--soot); border: 1px dashed var(--seam-2); border-radius: 10px; padding: 14px 18px; margin: 14px 0 18px; font-size: 15px; }
.lg-quote > :last-child { margin-bottom: 0; }

/* Definition-style blocks (publisher, host...) */
.lg-dl { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 8px 20px; margin: 0 0 16px; background: var(--iron); border: 1px solid var(--seam); border-radius: var(--r-card); padding: 16px 20px; }
.lg-dl dt { color: var(--ash); font-size: 14px; padding-top: 1px; }
.lg-dl dd { margin: 0; color: var(--bone); overflow-wrap: anywhere; }

/* Tables: scroll sideways inside their box on small screens, never the page */
.lg-table { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--seam); border-radius: var(--r-card); background: var(--iron); }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--seam); color: #d3dacf; }
.lg-table th { font-weight: 600; color: var(--ash); background: var(--iron-2); font-size: 13px; }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-table td:first-child { color: var(--bone); }
.lg-table code { white-space: nowrap; }

/* Placeholders the owner must fill in: impossible to miss */
.todo { display: inline; background: rgba(201, 242, 90, .16); color: var(--accent); border: 1px dashed rgba(201, 242, 90, .6); border-radius: 6px; padding: 1px 6px; font-weight: 600; font-size: .94em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Footer: four legal links */
.lg-foot-links { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.lg-foot-links a { color: var(--ash); text-decoration: none; }
.lg-foot-links a:hover { color: var(--bone); text-decoration: underline; }
.lg-foot-links a[aria-current="page"] { color: var(--accent); }

@media (max-width: 860px) {
  .lg-toc ol { columns: 1; }
}
@media (max-width: 600px) {
  .lg-main { padding: 32px 0 64px; }
  .lg-col { padding: 0 16px; }
  .lg-top .top-in { gap: 10px; }
  .lg-top .brand span { display: none; }
  .lg-doc h1 { font-size: 27px; }
  .lg-doc .lg-intro { font-size: 16px; }
  .lg-toc { padding: 16px 16px 12px; }
  .lg-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 16px; }
  .lg-dl dd { margin-bottom: 10px; }
  .lg-dl dd:last-child { margin-bottom: 0; }
  .lg-note, .lg-quote { padding: 12px 14px; }
}

@media print {
  .top, .foot, .lg-toc, .lg-back, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .lg-main::before { display: none; }
  .lg-doc p, .lg-doc ul, .lg-doc li, .lg-doc h1, .lg-doc h2, .lg-doc h3, .lg-dl dd, .lg-table td { color: #000 !important; }
  .lg-doc a { color: #000; }
  .lg-dl, .lg-note, .lg-quote, .lg-table { background: none; border-color: #999; }
}

/* Phones: each table row becomes a small card, labels come from data-label */
@media (max-width: 600px) {
  .lg-table { overflow: visible; background: none; border: 0; border-radius: 0; }
  .lg-table table { min-width: 0; font-size: 14.5px; }
  .lg-table thead { display: none; }
  .lg-table tr { display: block; background: var(--iron); border: 1px solid var(--seam); border-radius: 12px; padding: 6px 0; margin-bottom: 10px; }
  .lg-table td { display: block; border: 0; padding: 6px 14px; }
  .lg-table td::before { content: attr(data-label); display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--cinder); margin-bottom: 2px; }
  .lg-table td:first-child { font-weight: 600; }
}
