/* Fórmula Veterana — shared styles for every page. Brand colours and the FV
   mark come from the logo proposal (media/FV-lockup-*.png). */

:root {
  --bg: #ffffff;
  --ink: #16233d;          /* brand navy */
  --ink-soft: #3c4a63;     /* body copy */
  --muted: #5d6679;        /* labels, legal text (≥4.5:1 on white) */
  --brand-grey: #8a93a6;   /* "Unipessoal Lda" in the lockup */
  --rule: #e4e7ec;
  --mark-bg: #16233d;
  --mark-border: transparent;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16233d;
    --ink: #ffffff;
    --ink-soft: #d5d8df;
    --muted: #a2a7b1;
    --brand-grey: #babdc5;
    --rule: rgba(255, 255, 255, .14);
    --mark-bg: transparent;
    --mark-border: #a2a7b1;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Lockup (mark + wordmark) ---------- */
.top { padding-top: clamp(40px, 9vh, 96px); }
.lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 20px);
  text-decoration: none;
}
.mark {
  width: clamp(60px, 8vw, 76px);
  height: clamp(60px, 8vw, 76px);
  background: var(--mark-bg);
  border: 2px solid var(--mark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mark span {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: clamp(25px, 3.4vw, 32px);
  color: #fff;
}
.wordmark { display: flex; flex-direction: column; }
.wordmark span {
  font-weight: 600;
  font-size: clamp(22px, 3vw, 27px);
  line-height: 1.02;
  color: var(--ink);
  letter-spacing: -.01em;
}
.wordmark .entity {
  margin-top: 9px;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--brand-grey);
  text-transform: uppercase;
}

/* ---------- Content ---------- */
h1 {
  margin: clamp(56px, 10vh, 96px) 0 0;
  max-width: 19ch;
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: clamp(32px, 5.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}
.lead {
  margin: 24px 0 0;
  max-width: 56ch;
  font-size: clamp(18px, 2.2vw, 20px);
}

section { margin-top: clamp(64px, 10vh, 96px); }
.label {
  margin: 0 0 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

.text { margin: 0; max-width: 56ch; }

.email { margin: 0 0 16px; font-size: clamp(20px, 3vw, 24px); font-weight: 600; }
address { font-style: normal; }

/* ---------- Long-form pages (privacidade) ---------- */
.doc h1 { max-width: none; }
.doc .updated { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.doc h2 {
  margin: 48px 0 12px;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.doc p, .doc ul { max-width: 62ch; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }

/* ---------- Footer ---------- */
footer {
  margin-top: clamp(80px, 14vh, 128px);
  padding: 24px 0 48px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
footer p { margin: 0; }
footer .links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
footer a { color: var(--muted); }

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
}
