/**
 * legal2026.css — the legal page (aviso legal · privacidad · cookies).
 * No Penpot board draws this page: it borrows the notebook's ink and families
 * (Gloock display, Lato text, black on white) and flows in a 720 px measure
 * with the browser's own scaling. Self-contained: loads only fonts.css.
 */

:root {
  --fl-track: 0.04em;
  --fl-measure: 720px;
  --fl-gutter: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000;
}

.fl-display {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  letter-spacing: var(--fl-track);
  line-height: 1.2;
}

.fl-text {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* ── head: wordmark, the three sections, the four languages ─────────── */
.fl-legal-head {
  display: flex;
  align-items: center;
  gap: 24px 40px;
  flex-wrap: wrap;
  max-width: calc(var(--fl-measure) + 2 * var(--fl-gutter));
  margin: 0 auto;
  padding: 28px var(--fl-gutter) 0;
}

/* The wordmark as the home and the notebook build it (desk2026.css /
   notebook2026.css): `f` at 0 and `luint` at 24 of a 138x51 box at Gloock 48,
   here in em so it scales with the size chosen. */
.fl-legal-logo {
  position: relative;
  display: inline-block;
  width: 2.875em;
  height: 1.0625em;
  color: #000;
  text-decoration: none;
  font-size: 2rem;
  white-space: nowrap;
}

.fl-legal-logo span {
  position: absolute;
  top: 0;
  line-height: 1;
}

.fl-legal-logo-f {
  left: 0;
  letter-spacing: normal;
}

.fl-legal-logo-rest {
  left: 0.5em;
}

.fl-legal-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 1rem;
  letter-spacing: var(--fl-track);
}

.fl-legal-nav a,
.fl-legal-lang {
  color: #000;
  text-decoration: none;
}

.fl-legal-nav a:hover,
.fl-legal-nav a:focus-visible,
a.fl-legal-lang:hover,
a.fl-legal-lang:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.fl-legal-langs {
  margin: 0 0 0 auto;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: var(--fl-track);
}

.fl-legal-lang.is-current {
  font-weight: 700;
}

/* ── the text ───────────────────────────────────────────────────────── */
.fl-legal {
  max-width: calc(var(--fl-measure) + 2 * var(--fl-gutter));
  margin: 0 auto;
  padding: 48px var(--fl-gutter) 96px;
}

.fl-legal h1 {
  margin: 0 0 32px;
  font-size: clamp(32px, 5vw, 48px);
}

.fl-legal h2 {
  margin: 64px 0 20px;
  font-size: clamp(24px, 3.5vw, 32px);
  scroll-margin-top: 24px;
}

.fl-legal h2:first-child {
  margin-top: 0;
}

.fl-legal h3 {
  margin: 36px 0 12px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: var(--fl-track);
  text-transform: lowercase;
}

/* Sizes in rem (TRLGDCU art. 80.1.b, WCAG 1.4.4): the body and the tables
   at 1rem — the tables carry the legal bases and the storage keys — so 200 %
   zoom scales with the root. Only the switcher, the draft note and the date
   line at 0.875rem, still above 14 px. */
.fl-legal-body {
  font-size: 1rem;
}

.fl-legal-body p,
.fl-legal-body ul,
.fl-legal-body ol {
  margin: 0 0 16px;
}

.fl-legal-body li {
  margin: 0 0 6px;
}

.fl-legal-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.fl-legal-body strong {
  font-weight: 700;
}

.fl-legal-body table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.fl-legal-body th,
.fl-legal-body td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  text-align: left;
}

.fl-legal-body th {
  font-weight: 700;
  letter-spacing: var(--fl-track);
}

/* The facts nobody has yet: visible on purpose until they are filled in
   (tools/legal.js counts them and removes the notice when none remain). */
.fl-legal-todo {
  padding: 0 0.2em;
  background: #fff3a8;
  color: #000;
}

.fl-legal-draft {
  margin: -16px 0 32px;
  padding: 12px 16px;
  border-left: 3px solid #e0b400;
  background: #fffbe6;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

.fl-legal-updated {
  margin: 48px 0 0;
  font-size: 0.875rem;
  font-weight: 300;
  color: #444;
}

@media (max-width: 600px) {
  .fl-legal-head {
    gap: 16px 24px;
    padding-top: 20px;
  }

  .fl-legal-langs {
    margin-left: 0;
  }

  .fl-legal {
    padding-top: 32px;
  }

  .fl-legal-body table,
  .fl-legal-body thead,
  .fl-legal-body tbody,
  .fl-legal-body tr,
  .fl-legal-body th,
  .fl-legal-body td {
    display: block;
  }

  .fl-legal-body thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .fl-legal-body tr {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
  }

  .fl-legal-body td {
    padding: 2px 0;
    border: 0;
  }
}
