/* Legal pages (mentions légales, politique de confidentialité): reading pages on the paper field.
   Tokens, fields and the wordmark come from /assets/raixon.css; this file only holds the reading layout. */
body { min-height: 100svh; display: flex; flex-direction: column; }
::selection { background: var(--ink); color: var(--paper); }

/* Top bar: wordmark left, back link and language toggle right, as on the home page. */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 24px var(--pad); }
.top nav { display: flex; align-items: baseline; gap: 28px; font: 600 15px/1 var(--f); }
.top nav a { text-decoration: none; white-space: nowrap; padding: 12px 0 4px; margin-top: -12px; border-bottom: 2px solid transparent; transition: border-color 160ms ease; }
.lang { display: flex; gap: 10px; }
.lang button { font: 600 13px/1 var(--f); letter-spacing: .04em; color: inherit; opacity: .72; background: none; border: 0; border-bottom: 2px solid transparent; position: relative; padding: 0 0 4px; cursor: pointer; transition: opacity 160ms ease; }
.lang button::before { content: ""; position: absolute; inset: -14px -5px -14px; }
.lang button.active { opacity: 1; border-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .top nav a:hover { border-color: currentColor; } .lang button:hover { opacity: 1; } }

/* Reading column: about 70 characters, set on the right part of a twelve-column grid on wide screens. */
.doc { flex: 1; width: 100%; padding: clamp(48px, 10vh, 120px) var(--pad) clamp(72px, 14vh, 160px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-content: start; }
.doc > * { grid-column: 1 / -1; max-width: 40em; }
@media (min-width: 1000px) { .doc > * { grid-column: 4 / -1; } .doc > .head { grid-column: 1 / -1; } }

.head { max-width: none; padding-bottom: clamp(40px, 7vh, 80px); }
.head .tag { font: 650 15px/1.35 var(--f); margin-top: clamp(20px, 2.4vw, 32px); }
.head h1 { font-size: clamp(48px, 9vw, 136px); font-weight: 820; font-stretch: 75%; letter-spacing: -.02em; line-height: .88; overflow-wrap: break-word; hyphens: auto; }

.doc h2 { margin-top: 56px; padding-top: 12px; border-top: 3px solid var(--ink); margin-bottom: 18px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 760; font-stretch: 75%; line-height: 1; letter-spacing: -.01em; }
.doc h3 { margin-top: 32px; margin-bottom: 8px; font-size: 19px; font-weight: 680; line-height: 1.3; }
.doc p, .doc li { line-height: 1.5; }
.doc p + p { margin-top: 14px; }
.doc strong { font-weight: 650; }
.doc ul { padding-left: 1.1em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--red); }
.doc a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.doc a:hover { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.doc code { font: inherit; font-weight: 600; }

/* Storage table: thin rules between lines, heavy rule under the head. */
.table { margin: 22px 0 22px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
th, td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink); }
th { font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; border-bottom-width: 3px; padding-top: 0; }
th:last-child, td:last-child { padding-right: 0; }

/* Footer, as on the home page. */
.foot { margin: 0 var(--pad); padding: 14px 0 28px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font: 500 14px/1.4 var(--f); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; padding-block: 12px; margin-block: -12px; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .top nav { gap: 20px; }
  .doc h2 { margin-top: 44px; }
  table { font-size: 14px; }
  th, td { padding-right: 10px; }
  th { font-size: 11px; letter-spacing: .02em; }
}
