/* Estilo das páginas simples da splash (privacidade e confirmações do pré-registo), a par do index.html. */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-deep: #1e40af;
  --blue-light: #eff6ff;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --white: #ffffff;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--surface);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #f5f8ff;
  background-image:
    radial-gradient(120% 220px at 85% 0%, rgba(20, 184, 166, 0.28), transparent 70%),
    linear-gradient(180deg, #0b1530 0, #132046 240px, #f5f8ff 240px);
  background-repeat: no-repeat;
  padding: 32px 16px 64px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--blue) 100%);
  z-index: 10;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

main.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

@media (min-width: 640px) {
  body {
    padding: 56px 24px 88px;
  }

  main.wrap {
    padding: 48px 52px;
  }
}

/* Centered variant for short confirmation/status pages */
main.wrap.center {
  max-width: 520px;
  text-align: center;
  margin-top: 4vh;
}

/* Logo link at the top of main.wrap */
main.wrap > a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 24px;
}

main.wrap > a:first-child img {
  width: 56px;
  height: auto;
  margin: 0 auto;
}

main.wrap.center > a:first-child {
  justify-content: center;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
}

h2 {
  margin: 32px 0 12px;
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
}

ul, ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--muted);
}

li {
  margin-bottom: 8px;
}

li strong,
p strong {
  color: var(--ink);
}

/* Primary Button (Strictly UPPERCASE, no icons) */
.btn,
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  margin-top: 12px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
a.btn:hover,
button.btn:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.34);
}

.btn:active,
a.btn:active,
button.btn:active {
  transform: translateY(0);
}

.btn:disabled,
button.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#estado:empty {
  display: none;
}
