/* Legal pages: privacy policy, cookie policy, legal notice.
   The name of the document stands in display type; the sections are listed by name beside the text, the one
   being read in black and the others waiting in grey. The text itself stays still. */
.od-legal { background: var(--od-white); padding: calc(var(--od-header-h) + 56px) var(--od-inset) 140px; }
.od-legal__container { max-width: var(--od-content); margin-inline: auto; }

/* Way back: the home link on the left, the trail on the right */
.od-legal__way { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.od-btn--back::before { background-image: url(../../icons/arrow-up-right.svg); transform: rotate(-135deg); }
.od-btn--back:hover, .od-btn--back:focus-visible { color: var(--od-brand-text); }
.od-legal__crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 10px; font-size: var(--od-fs-b4); font-weight: 500; line-height: 1.6; color: var(--od-fg-mute); }
.od-legal__crumbs li { display: flex; gap: 10px; margin: 0; }
.od-legal__crumbs li + li::before { content: "/"; color: var(--od-grey-300); }
.od-legal__crumbs a { color: inherit; text-decoration: none; transition: color 0.2s var(--od-ease); }
.od-legal__crumbs a:hover { color: var(--od-brand-text); }
.od-legal__crumbs [aria-current] { color: var(--od-grey-900); }

/* The name of the document. It fills the line on wide screens and is never broken inside a word:
   --od-legal-len is the width of the name in em with its rule, on one line; --od-legal-len-narrow is the same
   for screens up to 860 px, where a long name takes two lines (then it is the width of the longer line).
   Measured per document and language with the theme font (700, -0.06em): measure again when a title changes. */
.od-legal { --od-legal-len: 7.04; --od-legal-len-narrow: 7.04; }
.od-legal:not(:lang(en)) { --od-legal-len: 12.45; --od-legal-len-narrow: 7.25; }
.od-legal--privacy:lang(it) { --od-legal-len: 7.04; --od-legal-len-narrow: 7.04; }
.od-legal--privacy:lang(de) { --od-legal-len: 10.74; --od-legal-len-narrow: 6.21; }
.od-legal--privacy:lang(es) { --od-legal-len: 10.19; --od-legal-len-narrow: 5.59; }
.od-legal--privacy:lang(fr) { --od-legal-len: 12.37; --od-legal-len-narrow: 7.17; }
.od-legal--privacy:lang(pt) { --od-legal-len: 10.72; --od-legal-len-narrow: 6.13; }
.od-legal--cookies, .od-legal--cookies:lang(it) { --od-legal-len: 6.84; --od-legal-len-narrow: 6.84; }
.od-legal--cookies:lang(de) { --od-legal-len: 8.41; --od-legal-len-narrow: 8.41; }
.od-legal--cookies:lang(es), .od-legal--cookies:lang(pt) { --od-legal-len: 9.00; --od-legal-len-narrow: 9.00; }
.od-legal--cookies:lang(fr) { --od-legal-len: 9.61; --od-legal-len-narrow: 5.27; }
.od-legal--notice { --od-legal-len: 6.23; --od-legal-len-narrow: 6.23; }
.od-legal--notice:lang(de) { --od-legal-len: 5.93; --od-legal-len-narrow: 5.93; }
.od-legal--notice:lang(es), .od-legal--notice:lang(pt) { --od-legal-len: 5.66; --od-legal-len-narrow: 5.66; }
.od-legal--notice:lang(fr) { --od-legal-len: 8.38; --od-legal-len-narrow: 8.38; }
.od-legal--notice:lang(it) { --od-legal-len: 5.54; --od-legal-len-narrow: 5.54; }
.od-legal__title { margin: clamp(36px, 7vh, 84px) 0 0; font-size: min(164px, min(100vw - 2 * var(--od-inset), var(--od-content)) / var(--od-legal-len)); font-weight: 700; line-height: 0.96; letter-spacing: var(--od-track-display); color: var(--od-black); overflow-wrap: normal; -webkit-hyphens: manual; hyphens: manual; }
/* The orange rule closes the name on its last line */
.od-legal__title::before { content: ">"; display: inline-block; margin-right: 0.55em; font-family: var(--od-mono); font-weight: 500; letter-spacing: 0; font-size: min(1em, max(0.42em, 18px)); vertical-align: 0.12em; color: var(--od-brand-text); }
.od-legal__meta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px 40px; align-items: end; margin-top: clamp(28px, 5vh, 52px); padding-top: 20px; border-top: 1px solid var(--od-line); }
.od-legal__lead { margin: 0; font-size: var(--od-fs-b1); line-height: 1.45; color: var(--od-grey-900); text-wrap: balance; }
.od-legal__updated { justify-self: end; margin: 0; font-size: var(--od-fs-b4); font-weight: 500; line-height: 1.6; color: var(--od-fg-mute); }
.od-legal__updated-date { margin-left: 2px; color: var(--od-grey-900); }

/* Body: the sections by name beside the text */
.od-legal__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; margin-top: clamp(56px, 11vh, 112px); }

/* The list stays in view under the navigation bar while the text scrolls */
.od-legal__toc { position: sticky; top: calc(var(--od-header-h) + 32px); max-height: calc(100vh - var(--od-header-h) - 56px); margin-left: -8px; padding-left: 8px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.od-legal__toc-label { margin: 0; }
.od-legal__toc-toggle { display: none; }
ol.od-legal__toc-list { list-style: none; margin: 22px 0 0; padding: 0; }
.od-legal__toc-list li { margin: 0; }
/* A name leaves room on its line for the rule that follows it when it is lit */
.od-legal__toc-list a { display: inline-block; max-width: calc(100% - 1.25em); padding: 0.09em 0; font-size: clamp(21px, 2.2vw, 30px); font-weight: 600; line-height: 1.16; letter-spacing: -0.05em; color: var(--od-legal-wait); text-decoration: none; transition: color 0.3s var(--od-ease); }
.od-legal { --od-legal-wait: #767676; }
.od-legal__toc-list a::after { content: ">"; display: inline-block; margin-left: 0.3em; font-family: var(--od-mono); font-weight: 500; letter-spacing: 0; font-size: 0.6em; vertical-align: 0.2em; color: var(--od-brand-text); opacity: 0; transition: opacity 0.4s var(--od-ease); }
.od-legal__toc-list a:hover { color: var(--od-grey-700); }
.od-legal__toc-list a:focus-visible { outline: 2px solid var(--od-brand); outline-offset: 2px; }
/* The section being read: black, with the rule after it, so the state does not rest on colour alone */
.od-legal__toc-list a[aria-current] { color: var(--od-black); }
.od-legal__toc-list a[aria-current]::after { opacity: 1; }

/* Text: calm, about 68 characters a line */
.od-legal__content { min-width: 0; }
.od-legal__block + .od-legal__block { margin-top: 80px; }
.od-legal__block-title { margin: 0 0 20px; font-size: var(--od-fs-h4); font-weight: 600; line-height: 1.12; letter-spacing: -0.05em; color: var(--od-black); text-wrap: balance; overflow-wrap: break-word; scroll-margin-top: calc(var(--od-header-h) + 32px); }
.od-legal__block-title::before { content: ""; display: block; width: 26px; height: 26px; margin-bottom: 18px; color: var(--od-brand); background: var(--od-corner); }
/* A section chosen in the list: its heading waits in grey while the page moves there, then takes its colour and its rule */
@media (prefers-reduced-motion: no-preference) {
  .od-legal__block-title { transition: color 0.5s var(--od-ease); }
  .od-legal__block-title::before { transition: transform 0.7s var(--od-ease); }
  .od-legal__block-title.is-arriving { color: var(--od-legal-wait); transition: none; }
  .od-legal__block-title.is-arriving::before { transform: scaleX(0); transition: none; }
}
.od-legal__block-title:focus { outline: none; }
.od-legal__block-title:focus-visible { outline: 2px solid var(--od-brand); outline-offset: 8px; }
.od-legal__block-text { max-width: 31em; font-size: var(--od-fs-b2); font-weight: 400; line-height: 1.65; color: var(--od-grey-700); overflow-wrap: break-word; }
.od-legal__block-text > * { margin: 0; }
.od-legal__block-text > * + * { margin-top: 16px; }
.od-legal__block-text h3 { margin-top: 32px; font-size: var(--od-fs-b1); font-weight: 600; line-height: 1.4; color: var(--od-black); }
.od-legal__block-text ul { list-style: none; padding: 0; }
.od-legal__block-text li { position: relative; margin: 0; padding-left: 28px; }
.od-legal__block-text li + li { margin-top: 10px; }
.od-legal__block-text li::before { content: ">"; position: absolute; left: 0; top: 0; font-family: var(--od-mono); font-weight: 500; letter-spacing: 0; color: var(--od-brand-text); }
.od-legal__block-text strong { font-weight: 600; color: var(--od-black); }
.od-legal__block-text a,
.od-legal__ask a { color: var(--od-black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.2s var(--od-ease); }
.od-legal__block-text a:hover,
.od-legal__ask a:hover { color: var(--od-brand-text); }
.od-legal__block-text a:focus-visible,
.od-legal__ask a:focus-visible { outline: 2px solid var(--od-brand); outline-offset: 2px; }
/* Details still to be supplied */
.od-legal__blank { font-size: 0.85em; font-weight: 500; letter-spacing: 0.08em; color: var(--od-fg-mute); border-bottom: 1px dashed var(--od-grey-400); }

/* The two tables as ledgers: the name of each entry in headline weight, the rest quiet.
   They scroll inside their own frame when the screen is narrower than the table. */
.od-legal__block:has(.od-legal__table) .od-legal__block-text { max-width: none; }
.od-legal__block:has(.od-legal__table) .od-legal__block-text > p { max-width: 31em; }
.od-legal__table { overflow-x: auto; -webkit-overflow-scrolling: touch; overflow-wrap: normal; }
.od-legal__block-text > .od-legal__table { margin-top: 32px; }
.od-legal__table:focus-visible { outline: 2px solid var(--od-brand); outline-offset: 4px; }
.od-legal__table table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: var(--od-fs-b3); line-height: 1.5; text-align: left; }
.od-legal__table caption { caption-side: top; padding: 0 0 18px; font-size: var(--od-fs-b4); font-weight: 500; line-height: 1.6; text-align: left; color: var(--od-black); }
.od-legal__table caption::before { content: ">"; margin-right: 0.6em; font-family: var(--od-mono); font-weight: 500; letter-spacing: 0; color: var(--od-brand-text); }
.od-legal__table th,
.od-legal__table td { padding: 18px 28px 18px 0; vertical-align: baseline; border-bottom: 1px solid var(--od-line); }
.od-legal__table th:last-child,
.od-legal__table td:last-child { padding-right: 0; }
.od-legal__table thead th { padding-block: 0 10px; font-size: var(--od-fs-b4); font-weight: 500; color: var(--od-fg-mute); border-bottom-color: var(--od-black); white-space: nowrap; }
.od-legal__table tbody th { font-size: var(--od-fs-h6); font-weight: 600; line-height: 1.2; letter-spacing: -0.05em; color: var(--od-black); white-space: nowrap; }
.od-legal__table td:nth-child(2) { min-width: 7.5em; }
.od-legal__table td:last-child { min-width: 8em; }

/* Foot: the other two documents by name, a contact line and the way back up */
.od-legal__foot { margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--od-line); }
.od-legal__foot-label { margin: 0; }
ul.od-legal__related { list-style: none; margin: 20px 0 0; padding: 0; }
.od-legal__related li { margin: 0; }
.od-legal__related a { display: inline-block; max-width: calc(100% - 0.9em); overflow-wrap: break-word; font-size: clamp(34px, 5.4vw, 76px); font-weight: 700; line-height: 1.04; letter-spacing: var(--od-track-display); color: var(--od-grey-500); text-decoration: none; transition: color 0.25s var(--od-ease); }
.od-legal__related a::after { content: ">"; display: inline-block; margin-left: 0.3em; font-family: var(--od-mono); font-weight: 500; letter-spacing: 0; font-size: 0.42em; vertical-align: 0.35em; color: var(--od-brand-text); opacity: 0; transition: opacity 0.4s var(--od-ease); }
.od-legal__related a:hover, .od-legal__related a:focus-visible { color: var(--od-black); }
.od-legal__related a:hover::after, .od-legal__related a:focus-visible::after { opacity: 1; }
.od-legal__ask { max-width: 31em; margin: 40px 0 0; font-size: var(--od-fs-b2); line-height: 1.6; color: var(--od-grey-700); }
.od-legal__top { display: flex; margin: 28px 0 0; }
.od-legal__top .od-btn--back::before { transform: rotate(-45deg); }

@media (prefers-reduced-motion: no-preference) {
  .od-motion .od-legal__title::after { animation: od-legal-rule 0.9s var(--od-ease) 0.35s both; }
}
@keyframes od-legal-rule { from { background-size: 0 max(2px, 0.02em); } }

/* One column: a long name may take two lines, and the list folds into a single line above the text */
@media (max-width: 860px) {
  .od-legal { padding: calc(var(--od-header-h) + 36px) var(--od-inset) 96px; }
  .od-legal__title { font-size: min(14.4vw, (100vw - 2 * var(--od-inset)) / var(--od-legal-len-narrow)); }
  .od-legal__meta { grid-template-columns: minmax(0, 1fr); }
  .od-legal__lead { font-size: var(--od-fs-b2); }
  .od-legal__updated { justify-self: start; }
  .od-legal__body { display: block; margin-top: 36px; }
  .od-legal__toc { position: static; max-height: none; margin-left: 0; padding-left: 0; overflow: visible; margin-bottom: 48px; border-block: 1px solid var(--od-line); }
  .od-legal__toc-label { margin: 0; padding: 16px 0 0; }
  ol.od-legal__toc-list { margin: 8px 0 0; padding-bottom: 14px; }
  .od-legal__toc-list a { padding: 0.14em 0; font-size: 24px; }
  html.od-js .od-legal__toc-label { display: none; }
  html.od-js .od-legal__toc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--od-fs-b3); font-weight: 500; letter-spacing: inherit; color: var(--od-black); text-align: left; cursor: pointer; }
  .od-legal__toc-toggle::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 4px 0; border-right: 2px solid var(--od-brand); border-bottom: 2px solid var(--od-brand); transform: rotate(45deg); transition: transform 0.25s var(--od-ease); }
  .od-legal__toc-toggle[aria-expanded="true"]::after { margin-bottom: -4px; transform: rotate(-135deg); }
  .od-legal__toc-toggle:focus-visible { outline: 2px solid var(--od-brand); outline-offset: 2px; }
  html.od-js .od-legal__toc-toggle[aria-expanded="false"] + .od-legal__toc-list { display: none; }
  html.od-js ol.od-legal__toc-list { margin-top: 0; }
  .od-legal__block + .od-legal__block { margin-top: 56px; }
  .od-legal__table table { min-width: 560px; }
  .od-legal__table tbody th { font-size: var(--od-fs-b2); }
  .od-legal__table th, .od-legal__table td { padding-right: 20px; }
  .od-legal__foot { margin-top: 64px; padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .od-legal__toc-list a, .od-legal__toc-list a::after, .od-legal__related a, .od-legal__related a::after, .od-legal__toc-toggle::after { transition: none; }
}

/* On paper: the name, the text, its tables and the contact line */
@media print {
  .od-legal { padding: 24px 0 0; }
  .od-legal__way, .od-legal__toc, .od-legal__foot-label, .od-legal__related, .od-legal__top { display: none !important; }
  .od-legal__title { margin-top: 0; font-size: 44px; }
  .od-legal__title::after { animation: none; }
  .od-legal__meta { margin-top: 16px; }
  .od-legal__body { display: block; margin-top: 28px; }
  .od-legal__block { break-inside: avoid; }
  .od-legal__block + .od-legal__block { margin-top: 28px; }
  .od-legal__block-title { color: var(--od-black) !important; }
  .od-legal__block-title::before { transform: none !important; }
  .od-legal__table { overflow: visible; }
  .od-legal__table table { min-width: 0; }
  .od-legal__table tbody th { font-size: inherit; white-space: normal; }
  .od-legal__foot { margin-top: 32px; padding-top: 16px; }
}

/* More air (8 November 2026). */
.od-legal { padding-bottom: clamp(140px, 16vw, 240px); }
.od-legal__body { margin-top: clamp(80px, 14vh, 160px); }
.od-legal__body { margin-top: clamp(56px, 9vh, 96px); }
