/* ==========================================================================
   LEGAL — Política de Privacidade (privacy.html) e de Cookies (cookies.html)
   19-11-2026. Texto corrido numa coluna legível; reaproveita .page-header e
   .section do style.css.
   ========================================================================== */
.legal-date {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.legal { padding-block: clamp(3rem, 6vw, 4.5rem) var(--space-section); }
/* mesma margem esquerda do título do .page-header; só a coluna de texto é estreita */
.legal__inner > * { max-width: 820px; }

.legal h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 780;
  color: var(--heading);
  scroll-margin-top: 6rem;
}
.legal h2:first-child { margin-top: 0; }

.legal p,
.legal li { color: var(--ink-2); }
.legal p { margin-top: 0.85rem; }
.legal strong { color: var(--heading); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

.legal ul {
  margin-top: 0.85rem;
  padding-left: 1.3rem;
  list-style: disc;
  display: grid;
  gap: 0.5rem;
}
.legal li::marker { color: var(--brand); }

.legal-card {
  padding: 1rem 1.2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  line-height: 1.75;
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: var(--brand-dim);
  border-radius: 5px;
  color: var(--heading);
  white-space: nowrap;
}

/* tabela de cookies: desliza dentro da caixa em ecrãs estreitos */
.legal-table-wrap {
  position: relative;
  margin-top: 1rem;
  overflow-x: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.legal-table th,
.legal-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.legal-table thead th { background: var(--bg-0); color: var(--heading); font-weight: 750; }
.legal-table tbody th { font-weight: 650; }
.legal-table tbody tr:last-child > * { border-bottom: 0; }

/* subtítulos (2.1, 3.1 …) — 19-11-2026, secção SafeForest Cloud */
.legal h3 {
  margin-top: 1.7rem;
  font-size: 1.06rem;
  font-weight: 750;
  color: var(--heading);
  scroll-margin-top: 6rem;
}
.legal h2 + h3 { margin-top: 1rem; }
