/* Styles for the static pages (Lavanda palette from docs/design-tokens.json). */
:root {
  --background: #f6f4fb;
  --surface: #ffffff;
  --surface-2: #efecf8;
  --text: #2b2546;
  --muted: #625c7d;
  --primary: #5548b8;
  --primary-foreground: #ffffff;
  --primary-soft: #e4e0f7;
  --primary-soft-foreground: #3e3392;
  --warning-soft: #fbebd3;
  --danger: #b93a33;
  --border: #e3dfef;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #15121f;
    --surface: #1f1b2e;
    --surface-2: #2a2540;
    --text: #edeaf7;
    --muted: #a9a3c2;
    --primary: #9d93f2;
    --primary-foreground: #15121f;
    --primary-soft: #2e2852;
    --primary-soft-foreground: #cfc9fb;
    --warning-soft: #3a2c17;
    --danger: #f2857d;
    --border: #353049;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--background);
  color: var(--text);
  font-family:
    'Plus Jakarta Sans',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
main {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 24px;
  padding: 32px 24px;
}
h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
}
p {
  margin: 0 0 16px;
}
.muted {
  color: var(--muted);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 8px;
}
input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}
input:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}
.error {
  color: var(--danger);
  font-size: 14px;
  margin: 8px 0 0;
}
button,
.button {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  padding: 16px 24px;
  border: 0;
  border-radius: 24px;
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button[disabled] {
  opacity: 0.6;
  cursor: wait;
}
[hidden] {
  display: none !important;
}

/* Brand and links around the card of the form pages (password reset, e-mail confirmed). */
.marca-mini {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 14px;
}
.links a {
  color: var(--muted);
}

/* Document pages (home, privacy, terms, account deletion). */
body.doc {
  display: block;
  padding: 0;
}
.topo,
.rodape {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px;
}
.topo a.marca {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}
.rodape {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.rodape a {
  color: var(--muted);
}
body.doc main {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 32px 20px;
}
body.doc h1 {
  font-size: 28px;
  line-height: 1.25;
}
h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 8px;
}
h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 4px;
}
ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
li {
  margin-bottom: 6px;
}
a {
  color: var(--primary);
}
.rascunho {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--warning-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.aviso {
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary-soft-foreground);
}
.versao {
  color: var(--muted);
  font-size: 14px;
}
.tabela {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
th {
  font-weight: 700;
}
/* Narrow screens: each row becomes a block of "column: value" pairs, never a sideways scroll. */
@media (max-width: 600px) {
  .tabela table,
  .tabela tbody,
  .tabela tr,
  .tabela td {
    display: block;
  }
  .tabela thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .tabela tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .tabela td {
    padding: 4px 0;
    border-bottom: 0;
  }
  .tabela td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }
}
code.todo {
  font-size: 13px;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 6px;
}
@media (min-width: 640px) {
  body.doc main {
    padding: 40px 48px;
  }
}
