/* SetLife · site legal (DS 4.1): escuro verde-petróleo por padrão, claro creme pelo sistema.
   Valores de design/ds4/tokens.json e apps/mobile/src/theme/tokens.ts. Sem dependências externas. */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'SetLife Display';
  src: url('/fonts/SetLifeDisplay-ExpandedBlackItalic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SetLife Display Semi';
  src: url('/fonts/SetLifeDisplay-SemiExpandedExtraBold.woff') format('woff');
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #071817;
  --s1: #0f2220;
  --s2: #172c2a;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f4f7ee;
  --muted: #a3ad9f;
  --neon: #d7ff3a;
  --on-neon: #071817;
  --accent: #d7ff3a;
  --neon-tint: rgba(215, 255, 58, 0.13);
  --court: #163a26;
  --on-court: #f4f7ee;
  --radius-card: 22px;
  --radius-chip: 36px;
  --max: 46rem;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f1e8;
    --s1: #fffdf7;
    --s2: #ece6d8;
    --line: rgba(28, 40, 35, 0.1);
    --ink: #16201b;
    --muted: #59675f;
    --accent: #4f6b00;
    --neon-tint: rgba(122, 156, 0, 0.16);
    --court: #1f4d3a;
    color-scheme: light;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    400 1.0625rem/1.6 'Geist',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--neon);
  color: var(--on-neon);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-chip);
  font-weight: 700;
  z-index: 10;
}
.skip:focus {
  left: 1rem;
}

/* ---------- topo */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.brand img {
  width: 36px;
  height: 36px;
}
.wordmark {
  font-family: 'SetLife Display', 'Geist', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
}
.dot-social {
  font-family: 'Geist', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: 0.2rem;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--radius-chip);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.top nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--neon-tint);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1rem 2rem;
}

/* ---------- tipografia */
.label {
  font:
    700 0.6875rem/1.3 'Geist',
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 0.5rem;
}
h1 {
  font-family: 'SetLife Display', 'Geist', sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
}
h2 {
  font-family: 'SetLife Display Semi', 'Geist', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 2.5rem 0 0.75rem;
}
h3 {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}
p,
ul,
ol {
  margin: 0 0 1rem;
}
ul,
ol {
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.4rem;
}
li::marker {
  color: var(--accent);
}
strong {
  font-weight: 700;
}
code {
  font-size: 0.9em;
  background: var(--s2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
.small {
  font-size: 0.85rem;
}

/* ---------- documento */
.meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.chip {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-chip);
  background: var(--neon-tint);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
}
.toc {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0.25rem 1.25rem 0.75rem;
  margin: 1.5rem 0 2rem;
}
.toc .label {
  margin-top: 1rem;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2 16rem;
  column-gap: 2rem;
}
.toc li {
  break-inside: avoid;
  margin: 0;
}
.toc a {
  display: block;
  min-height: 44px;
  padding: 0.6rem 0;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent);
}
.doc h2 {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.note {
  background: var(--s1);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 0.9rem 1rem 0.1rem;
  margin: 0 0 1rem;
}

/* ---------- tabelas: grade no desktop, cartões empilhados no celular */
.table-wrap {
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--s2);
  font:
    700 0.6875rem/1.3 'Geist',
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:nth-child(even) td {
  background: var(--s1);
}

@media (max-width: 40rem) {
  .table-wrap {
    border: 0;
    overflow: visible;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  tbody tr {
    background: var(--s1);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0;
  }
  tbody tr:nth-child(even) td {
    background: none;
  }
  td {
    border: 0;
    padding: 0.35rem 1rem;
  }
  td::before {
    content: attr(data-label);
    display: block;
    font:
      700 0.6875rem/1.3 'Geist',
      sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }
}

/* ---------- página inicial */
.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}
.hero .ball {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 12px 40px rgba(215, 255, 58, 0.25));
}
.hero.small .ball {
  width: 120px;
  height: 120px;
}
.hero h1 {
  font-size: clamp(2.2rem, 11vw, 3.6rem);
  margin-top: 0.25rem;
}
.hero .accent {
  color: var(--accent);
}
.lead {
  font-size: 1.15rem;
  max-width: 36rem;
  margin: 0 auto 1rem;
}
.soon {
  color: var(--muted);
  font-weight: 700;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}
.card {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0.25rem 1.25rem 0.5rem;
}
.card h2 {
  margin-top: 1rem;
  font-size: 1.1rem;
}
.privacy-strip {
  background: var(--court);
  color: var(--on-court);
  border-radius: var(--radius-card);
  padding: 0.5rem 1.25rem 1rem;
}
.privacy-strip h2 {
  margin-top: 1rem;
}
.privacy-strip li::marker {
  color: var(--neon);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 54px;
  background: var(--neon);
  color: var(--on-neon);
  font:
    800 0.875rem/1 'SetLife Display Semi',
    'Geist',
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- rodapé */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.foot p {
  margin: 0 0 0.4rem;
}

@media print {
  .top nav,
  .skip,
  .toc {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
