/* SaveSelf — site público (política de privacidade e suporte).
   Sem fontes externas, sem scripts, sem cookies: só a fonte do sistema.
   Cores iguais às do app (SaveSelf/UI/DesignSystem/Theme.swift). Sempre tema claro, como o padrão do app. */

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --text: #111111;
  --secondary: #6B6B6B;
  --tertiary: #A7A7AC;
  --surface: #F5F5F7;
  --divider: #EFEFF1;
  --safe: #24B35F;
  --emergency: #E5372C;
  --link: #111111;
  --mark-bg: #FFE58A;
  --mark-text: #111111;
  --mark-ring: #E0A800;
}


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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cabeçalho */

.site-header {
  border-bottom: 1px solid var(--divider);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.lang {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.lang a,
.lang span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

.lang a:hover {
  color: var(--text);
  background: var(--surface);
}

.lang [aria-current="page"],
.lang [aria-current="true"] {
  color: var(--text);
  background: var(--surface);
}

/* Conteúdo */

main {
  padding: 40px 0 56px;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  margin: 32px 0 8px;
}

p,
ul,
ol,
table {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin: 0 0 8px;
}

li > ul {
  margin-top: 8px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 6px;
}

hr {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 32px 0;
}

.lead {
  font-size: 20px;
  line-height: 1.45;
  color: var(--secondary);
  margin-bottom: 24px;
}

.meta {
  color: var(--secondary);
  font-size: 15px;
}

.muted {
  color: var(--secondary);
}

/* Campos a preencher pelo responsável: impossíveis de passar despercebidos. */
mark.ph {
  background: var(--mark-bg);
  color: var(--mark-text);
  outline: 2px dashed var(--mark-ring);
  outline-offset: 1px;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

/* Cartões e listas */

.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  margin: 0 0 16px;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.notice {
  border-left: 4px solid var(--emergency);
}

.toc {
  background: var(--surface);
  border-radius: 20px;
  padding: 18px 20px;
  margin: 24px 0 8px;
  font-size: 15px;
}

.toc p {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toc ol,
.toc ul {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin: 0 0 4px;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.path {
  font-weight: 600;
}

/* Escolha de idioma (página inicial) */

.langs {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
}

.langs .card h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.links li {
  margin: 0;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.button:hover {
  opacity: 0.85;
}

.button.secondary {
  background: var(--bg);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--divider);
}

/* Tabela da política: vira cartões empilhados no iPhone. */

.table-wrap {
  margin: 0 0 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
}

th {
  font-weight: 600;
  color: var(--secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 760px) {
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tr {
    background: var(--surface);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 0 0 12px;
  }

  td {
    border: 0;
    padding: 0 0 10px;
  }

  td:last-child {
    padding-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--secondary);
    margin-bottom: 2px;
  }

  td:first-child::before {
    display: none;
  }

  td:first-child {
    font-size: 17px;
  }
}

/* Rodapé */

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--secondary);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  color: var(--secondary);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  main {
    padding-top: 28px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  .lead {
    font-size: 18px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .lang,
  .toc {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  mark.ph {
    outline: 1px dashed #000;
  }
}
