/* Páginas públicas do Nexo (início, privacidade, termos, exclusão de dados).
   Cores retiradas do tema do app em atendimentonexo.com. */

:root {
  --bg: #080f0c;
  --bg-2: #0d1613;
  --surface: #16201c;
  --border: #26312c;
  --text: #eef6f2;
  --text-2: #d7ebe1;
  --muted: #8a958f;
  --accent: #34a07f;
  --accent-strong: #148061;
  --accent-deep: #0e6b58;
  --radius: 14px;
  --max: 1080px;
  --max-text: 760px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 10% -10%, rgba(52, 160, 127, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(14, 107, 88, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.wrap-text { max-width: var(--max-text); }

/* Topo */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 15, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.08em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand small { display: block; font-weight: 400; letter-spacing: 0; color: var(--muted); font-size: 12px; line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .hide-sm { display: inline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 10px;
  background: var(--accent-strong); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }

/* Início */
.hero { padding: 72px 0 48px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; max-width: 16ch; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 60ch; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 48px 0; }
.section h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
.section .sub { color: var(--muted); margin: 0 0 28px; max-width: 62ch; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: linear-gradient(180deg, rgba(22, 32, 28, 0.9), rgba(13, 22, 19, 0.9));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card .num {
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  align-items: center; justify-content: center; margin-bottom: 12px;
  background: rgba(52, 160, 127, 0.16); color: var(--accent); font-weight: 700; font-size: 14px;
}

.note {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--bg-2); border-radius: 10px; padding: 16px 18px; color: var(--text-2);
}

/* Páginas de texto (privacidade, termos, exclusão) */
.doc { padding: 48px 0 64px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 17px; margin: 24px 0 6px; color: var(--text-2); }
.doc p, .doc li { color: var(--text-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); }

.toc { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 8px; }
.toc p { margin: 0 0 8px; font-weight: 600; color: var(--text); }
.toc ol { margin: 0; columns: 2; column-gap: 32px; font-size: 15px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); }
th { color: var(--text); background: var(--surface); font-weight: 600; }

/* Rodapé */
.footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer p { margin: 0 0 6px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .legal { margin-top: 18px; font-size: 12.5px; }

@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .toc ol { columns: 1; }
  .hero { padding: 48px 0 32px; }
}
