/* Johnes Hebert 40035 — página de privacidade. Mesma paleta de site.css. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-black-latin.woff2") format("woff2");
}

:root {
  --blue: #003d7c;
  --blue-deep: #002f65;
  --ink: #10233a;
  --ink-soft: #2b3d54;
  --paper: #f4f6f9;
  --white: #ffffff;
  --muted: #5b6b7f;
  --line: #d3dbe4;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Archivo", Arial, sans-serif;
}

a {
  color: var(--blue);
  font-weight: 800;
  text-underline-offset: 3px;
}

:where(a, button, input):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.header,
.footer {
  padding: 18px clamp(20px, 5vw, 72px);
  border-color: var(--line);
  border-style: solid;
  border-width: 0 0 2px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--blue);
}

.brand-number {
  padding: 4px 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.86em;
  letter-spacing: 0;
}

.back {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main {
  display: grid;
  place-items: center;
  padding: clamp(44px, 7vw, 92px) 20px;
}

.card {
  width: min(100%, 820px);
  border: 3px solid var(--ink);
  background: var(--white);
  padding: clamp(26px, 5vw, 52px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
}

.intro {
  margin: 22px 0 30px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.notice {
  display: grid;
  gap: 22px;
  margin: 0 0 34px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 24px;
}

.notice section {
  display: grid;
  gap: 8px;
}

.notice h2 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice p,
.notice ul {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.notice ul {
  padding-left: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--white);
  padding: 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  outline: none;
}

input:focus {
  border-color: var(--blue);
}

.token-help {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

button {
  border: 0;
  background: var(--blue);
  padding: 18px;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

button:hover {
  background: var(--blue-deep);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* privacy.js troca a classe, não o display inline. */
.message {
  display: none;
  margin: 0;
  border: 2px solid currentColor;
  padding: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.message.error {
  display: block;
  border-color: var(--error);
  background: #fdf3f1;
  color: var(--error);
}

.message.success {
  display: block;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.fallback {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer {
  border-width: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.noscript-warning {
  margin: 0;
  border: 2px solid var(--error);
  background: #fdf3f1;
  padding: 14px;
  color: var(--error);
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .main {
    padding-inline: 14px;
  }

  .card {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
