/* =====================================================================
   REAL HOLDING GROUP · LEGAL · the legal viewer (legal-viewer.js): the footer's documents, read over it. The site's
   charcoal, its off-white and stone, copper only on the marks, Inter, fine lines; no scene, no motion but a short
   fade in (.38 s) and out (.3 s). The bar: RHG, where we are (LEGAL / the document), the language, esc Cerrar. Below,
   its own scroller: the documents and the open one's sections beside the text (desktop), two folds above it (phones
   and tablets). The text at a reading width, ragged, never justified.
   ===================================================================== */
/* while it is open the page holds (its scroll, so the scene, stays where it is: styles.css scrollbar-gutter keeps the
   width); once it is in, the scene and the footer under it are not painted and their loops hold (as under the blog) */
html.is-legal{ overflow:hidden; }
html.is-legal-covered .hero, html.is-legal-covered .hero *, html.is-legal-covered .ft[data-scene], html.is-legal-covered .ft[data-scene] *{ visibility:hidden !important; }
html.is-legal-covered :is(.hero, .ft[data-scene]), html.is-legal-covered :is(.hero, .ft[data-scene]) *,
html.is-legal-covered :is(.hero, .ft[data-scene])::before, html.is-legal-covered :is(.hero, .ft[data-scene])::after,
html.is-legal-covered :is(.hero, .ft[data-scene]) *::before, html.is-legal-covered :is(.hero, .ft[data-scene]) *::after{ animation-play-state:paused !important; }

.lv{ --lv-text:#c9c3bd; --lv-mute:#9a948e; --lv-soft:rgba(174,167,163,.14); --micro:.72rem;
  position:fixed; inset:0; z-index:130; display:flex; flex-direction:column; background:var(--base); color:var(--stone);
  font-family:var(--font); -webkit-font-smoothing:antialiased; opacity:0; transition:opacity .3s cubic-bezier(.22,1,.36,1); }
.lv[hidden]{ display:none; }
.lv.is-in{ opacity:1; transition-duration:.38s; }
.lv :focus-visible{ outline:2px solid var(--cognac-lite); outline-offset:3px; }

/* ---------------- the bar ---------------- */
.lv__bar{ position:relative; z-index:2; flex:none; display:flex; align-items:center; gap:clamp(12px, 2.4vw, 28px);
  padding:max(18px, env(safe-area-inset-top)) var(--gut) 18px; border-bottom:1px solid var(--lv-soft); background:var(--base); }
.lv__brand{ flex:none; display:inline-flex; align-items:center; height:38px; padding:6px 12px; border-radius:999px; background:rgba(174,167,163,.06); }
.lv__brand img{ height:26px; width:auto; }
.lv__crumb{ flex:1; min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:.2em .7em; font-size:var(--micro); font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--lv-mute); }
.lv__crumb-s{ color:var(--line); }
.lv__crumb [data-lv-short]{ color:var(--hi); }
.lv__lang{ position:relative; flex:none; display:inline-flex; align-items:baseline; gap:.34em; padding:10px 4px; border:0; background:none; font:inherit; font-size:.92rem; font-weight:500;
  color:var(--stone); cursor:pointer; -webkit-tap-highlight-color:transparent; }
.lv__lang::before{ content:""; position:absolute; inset:-2px -6px; }
.lv__lang-o{ position:relative; opacity:.88; transition:opacity .3s, color .3s; }   /* (18 nov: as the bar's) */
.lv__lang-o.is-on{ opacity:1; color:var(--hi); }
.lv__lang-o.is-on::after{ content:""; position:absolute; left:0; right:0; bottom:-.32em; height:1px; background:var(--cognac-lite); }
.lv__lang-s{ opacity:.4; }
.lv__lang:hover .lv__lang-o{ opacity:1; } .lv__lang:hover .lv__lang-o.is-on{ opacity:1; }
.lv__close{ flex:none; display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 4px; border:0; background:none; font:inherit; font-size:var(--micro);
  font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--stone); cursor:pointer; transition:color .25s; -webkit-tap-highlight-color:transparent; }
.lv__close:hover{ color:var(--hi); }
.lv__esc{ display:inline-flex; align-items:center; height:20px; padding:0 6px; border:1px solid rgba(174,167,163,.22); border-radius:6px; background:rgba(18,17,16,.55);
  box-shadow:inset 0 -1px 0 rgba(174,167,163,.08); font:500 .66rem/1 var(--font); letter-spacing:.02em; text-transform:none; color:var(--lv-mute); }

/* ---------------- the reading layer ---------------- */
.lv__scroll{ position:relative; flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.lv__grid{ display:grid; grid-template-columns:minmax(0, 1fr); max-width:1320px; margin:0 auto;
  padding:clamp(36px, 7vh, 88px) var(--gut) max(clamp(64px, 11vh, 132px), env(safe-area-inset-bottom)); transform:translateY(10px); transition:transform .38s cubic-bezier(.22,1,.36,1); }
.lv.is-in .lv__grid{ transform:none; }
@media (min-width:1024px){ .lv__grid{ grid-template-columns:minmax(210px, 260px) minmax(0, 1fr); column-gap:clamp(48px, 6vw, 112px); } }

/* the documents (and the open one's sections under it): beside the text on desktop */
.lv__nav{ display:none; }
@media (min-width:1024px){
  .lv__nav{ display:block; position:sticky; top:clamp(36px, 7vh, 88px); align-self:start; max-height:calc(100dvh - 190px); overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; padding-bottom:12px; }
  .lv__fold{ display:none; }
}
.lv__nav-h{ margin:0 0 14px; font-size:var(--micro); font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--stone); }
.lv__docs, .lv__toc{ margin:0; padding:0; list-style:none; }
.lv__docs > li + li{ margin-top:2px; }
.lv__docs > li > a{ display:grid; grid-template-columns:2.4em minmax(0, 1fr); gap:.2em; padding:8px 0 8px 12px; border-left:1px solid var(--lv-soft); font-size:.9rem; line-height:1.4; color:var(--lv-mute); transition:color .25s, border-color .25s; }
.lv__docs > li > a:hover{ color:var(--hi); }
.lv__docs > li > a[aria-current]{ color:var(--hi); border-left-color:var(--cognac-lite); }
.lv__docs .lv__toc{ margin:4px 0 10px; }
.lv__toc a{ display:grid; grid-template-columns:2.4em minmax(0, 1fr); gap:.2em; padding:6px 0 6px 24px; border-left:1px solid var(--lv-soft); font-size:.8rem; line-height:1.4; color:var(--lv-mute); transition:color .25s, border-color .25s; }
.lv__toc a:hover, .lv__toc a[aria-current]{ color:var(--hi); }
.lv__toc a[aria-current]{ border-left-color:rgba(192,138,87,.55); }
.lv__n{ font-size:.74rem; letter-spacing:.08em; color:var(--cognac-lite); font-variant-numeric:tabular-nums; padding-top:.1em; }

/* phones and tablets: the documents and the sections, folded above the text */
.lv__fold{ margin-bottom:clamp(20px, 3vh, 28px); border-top:1px solid var(--lv-soft); border-bottom:1px solid var(--lv-soft); }
.lv__fold + .lv__head{ margin-top:clamp(12px, 2vh, 20px); }
.lv__fold summary{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; cursor:pointer; list-style:none;
  font-size:var(--micro); font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--stone); -webkit-tap-highlight-color:transparent; }
.lv__fold summary::-webkit-details-marker{ display:none; }
.lv__fold summary svg{ width:12px; height:12px; flex:none; fill:none; stroke:currentColor; stroke-width:1.4; transition:transform .25s; }
.lv__fold[open] summary svg{ transform:rotate(180deg); }
.lv__fold nav{ padding:4px 0 16px; }
.lv__fold .lv__toc a{ padding-left:12px; font-size:.88rem; }
.lv__fold .lv__docs > li > a{ font-size:.92rem; padding-top:10px; padding-bottom:10px; }
.lv__fold--toc{ margin-top:clamp(28px, 4vh, 40px); }

/* the head of the document */
.lv__head{ padding-bottom:clamp(28px, 5vh, 48px); border-bottom:1px solid var(--line); margin-bottom:clamp(28px, 5vh, 52px); }
.lv__eye{ margin:0; font-size:var(--micro); font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--cognac-lite); }
.lv__h1{ margin:16px 0 0; font-size:clamp(2rem, 4.2vw, 3.6rem); font-weight:600; line-height:1.06; letter-spacing:-.025em; color:var(--hi); max-width:20ch; text-wrap:balance; }
.lv__h1:focus{ outline:none; }
.lv__meta{ display:flex; flex-wrap:wrap; gap:14px clamp(28px, 4vw, 56px); margin:clamp(24px, 4vh, 40px) 0 0; }
.lv__meta div{ display:grid; gap:6px; }
.lv__meta dt{ font-size:var(--micro); font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--lv-mute); }
.lv__meta dd{ margin:0; font-size:.95rem; color:var(--hi); font-variant-numeric:tabular-nums; }
.lv__dl{ margin:22px 0 0; }
.lv__dl a{ display:inline-flex; align-items:center; gap:10px; min-height:40px; padding:0 16px; border:1px solid rgba(174,167,163,.22); border-radius:999px;
  font-size:var(--micro); font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--hi); transition:border-color .25s, background .25s; }
.lv__dl a:hover{ border-color:var(--cognac-lite); background:rgba(192,138,87,.08); }
.lv__dl svg{ width:14px; height:14px; fill:none; stroke:var(--cognac-lite); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.lv__en{ display:none; margin:20px 0 0; max-width:60ch; padding-left:14px; border-left:2px solid var(--cognac-lite); font-size:.92rem; line-height:1.6; color:var(--lv-text); }
html.lang-en .lv__en{ display:block; }
@media (max-width:1023px){ .lv__fold--toc{ margin-top:0; } .lv__head{ margin-bottom:clamp(20px, 3vh, 28px); } }

/* the text: a reading width, a comfortable line, headings that carry their number */
.lv__doc{ font-size:1.0625rem; line-height:1.75; color:var(--lv-text); }
.lv__doc > section > *, .lv__doc > .lg-intro > *{ max-width:70ch; }
.lv__doc > section > .lg-table, .lv__doc > .lg-intro > .lg-table{ max-width:none; }
.lv__doc > section + section, .lv__doc .lg-intro + section{ margin-top:clamp(40px, 6vh, 60px); }
.lv__doc .lg-intro{ margin-bottom:clamp(28px, 4vh, 40px); }
.lv__doc h2{ display:grid; grid-template-columns:2.6em minmax(0, 1fr); gap:.2em; margin:0 0 18px; padding-top:22px; border-top:1px solid var(--lv-soft);
  font-size:clamp(1.18rem, 1.6vw, 1.38rem); font-weight:600; line-height:1.3; letter-spacing:-.005em; color:var(--hi); scroll-margin-top:12px; }
.lv__doc h2:focus{ outline:none; }
.lv__doc h2:focus-visible{ outline:2px solid var(--cognac-lite); outline-offset:6px; }
.lv__doc h2 .lg-n{ font-size:.78rem; font-weight:500; letter-spacing:.1em; color:var(--cognac-lite); font-variant-numeric:tabular-nums; padding-top:.42em; }
.lv__doc h3{ margin:1.8em 0 .6em; font-size:1.02rem; font-weight:600; line-height:1.4; color:var(--hi); }
.lv__doc p, .lv__doc ul, .lv__doc ol, .lv__doc dl, .lv__doc .lg-table{ margin:0 0 1.05em; }
.lv__doc ul, .lv__doc ol{ padding-left:1.3em; }
.lv__doc li{ padding-left:.25em; margin-bottom:.45em; }
.lv__doc ul li::marker, .lv__doc ol li::marker{ color:var(--cognac-lite); }
.lv__doc strong{ font-weight:600; color:var(--hi); }
.lv__doc a{ color:var(--cognac-lite); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.22em; text-decoration-color:rgba(192,138,87,.55); overflow-wrap:anywhere; transition:color .25s; }
.lv__doc a:hover{ color:var(--hi); text-decoration-color:currentColor; }
.lv__doc code{ font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:.88em; color:var(--hi); overflow-wrap:break-word; }
.lv__doc .lg-def{ display:grid; gap:12px; }
.lv__doc .lg-def div{ display:grid; grid-template-columns:minmax(0, 13em) minmax(0, 1fr); gap:.4em 1.4em; padding-bottom:12px; border-bottom:1px solid var(--lv-soft); }
.lv__doc .lg-def dt{ font-weight:600; color:var(--hi); }
.lv__doc .lg-def dd{ margin:0; }
@media (max-width:640px){ .lv__doc .lg-def div{ grid-template-columns:minmax(0, 1fr); } }
.lv__doc .lg-note{ padding-left:14px; border-left:2px solid var(--cognac-lite); color:var(--stone); }
.lv__doc .lg-table{ overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--lv-soft); border-radius:6px; }
.lv__doc .lg-table table{ width:100%; min-width:720px; border-collapse:collapse; font-size:.86rem; line-height:1.5; }
.lv__doc .lg-table caption{ padding:12px 14px; text-align:left; font-size:var(--micro); font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--stone); caption-side:top; }
.lv__doc .lg-table th, .lv__doc .lg-table td{ padding:11px 14px; text-align:left; vertical-align:top; border-top:1px solid var(--lv-soft); }
.lv__doc .lg-table thead th{ font-size:var(--micro); font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--lv-mute); }
.lv__doc .lg-table tbody th{ min-width:9.5em; font-weight:600; color:var(--hi); }

@media (max-width:560px){
  .lv__bar{ gap:10px; padding-bottom:14px; }
  .lv__brand{ padding:6px 10px; }
  .lv__crumb{ letter-spacing:.12em; }
  .lv__doc{ font-size:1.02rem; line-height:1.72; }
  .lv__doc h2{ grid-template-columns:2.2em minmax(0, 1fr); }
}
@media (hover:none){ .lv__esc{ display:none; } }                            /* (a touch screen has no Escape key: Cerrar alone) */
@media (prefers-reduced-motion: reduce){
  .lv, .lv.is-in, .lv__grid, .lv__docs a, .lv__toc a, .lv__lang-o, .lv__fold summary svg, .lv__close{ transition:none; }
  .lv__grid{ transform:none; }
}
