/* NIX — /privacy, /terms and /support
   ══════════════════════════════════════════════════════════════════════════
   Long documents a reviewer reads end to end, so the measure is a reading
   measure (68ch) and nothing competes with the text.

   BOTH LANGUAGES ARE IN THE MARKUP (see views/pages/legal.xml). The one that
   does not match <html lang> is hidden here, keyed off the attribute the
   head's language boot writes before first paint: no flash of the other
   language, and English when no script ran at all.
   ══════════════════════════════════════════════════════════════════════════ */

html:not([lang="es"]) [data-lang-block="es"],
html[lang="es"] [data-lang-block="en"],
html:not([lang="es"]) .legal__es {
  display: none;
}

.site-head { position: relative; }

.legal__lang {
  position: absolute;
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
}

/* base.css locks the body, so the main is the scroller, like .soon. */
.legal {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-6) var(--space-3) var(--space-8);
}

.legal__doc {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.65;
}

.legal__doc h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 var(--space-2);
}

.legal__doc h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: var(--space-6) 0 var(--space-2);
}

.legal__doc h3 {
  font-size: 16px;
  font-weight: 600;
  margin: var(--space-4) 0 var(--space-1);
}

.legal__doc p,
.legal__doc ul {
  margin: 0 0 var(--space-3);
}

.legal__doc ul { padding-left: 1.2em; }
.legal__doc li { margin-bottom: 6px; }

.legal__doc a {
  color: var(--nix-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__doc a:focus-visible,
.legal__nav a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.legal__meta {
  color: var(--nix-text-soft);
  font-size: 14px;
}

.legal__lead { font-size: 19px; }

.legal__nav {
  max-width: 68ch;
  margin: var(--space-7) auto 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--nix-rule);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: 14px;
}

.legal__nav a {
  color: var(--nix-text-soft);
  text-decoration: none;
}

.legal__nav a:hover { color: var(--nix-text); }

@media (max-width: 720px) {
  .legal__lang { right: var(--space-3); }
  .legal__doc { font-size: 15px; }
}
