/* ════════════════════════════════════════════════════════════════
   legal.css — estilo compartilhado das páginas legais do LevelingUp
   (privacidade.html · termos.html · cookies.html)
   ════════════════════════════════════════════════════════════════ */

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

:root {
  --gold: #a855f7;
  --gold-light: #22d3ee;
  --gold-dim: rgba(168, 85, 247, .1);
  --gold-border: rgba(168, 85, 247, .25);
  --green: #4ade80;
  --red: #f87171;
  --bg: #0a0820;
  --bg-2: #0f0a26;
  --bg-card: rgba(255, 255, 255, .025);
  --border: rgba(255, 255, 255, .08);
  --t1: #f8f4ed;
  --t2: #b0a898;
  --t3: #6b6258;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--t2);
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
  font-size: 15px;
}

/* NAV */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(6, 9, 13, .92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.legal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--t1);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.legal-logo .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #0a0e17;
}

.legal-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  transition: background .2s;
}

.legal-back:hover { background: var(--gold-dim); }

/* DOC */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal-kicker {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 12px;
}

.legal-wrap h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--t1);
  margin-bottom: 14px;
}

.legal-updated {
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.legal-wrap h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--t1);
  margin: 40px 0 14px;
  scroll-margin-top: 80px;
}

.legal-wrap h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
  margin: 26px 0 10px;
}

.legal-wrap p { margin-bottom: 14px; }

.legal-wrap a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-wrap strong { color: var(--t1); }

.legal-wrap ul,
.legal-wrap ol {
  margin: 0 0 16px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.legal-wrap ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.legal-wrap ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 10px;
}

.legal-wrap ol {
  counter-reset: item;
  gap: 9px;
}

.legal-wrap ol li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  counter-increment: item;
}

.legal-wrap ol li::before {
  content: counter(item);
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

/* Highlight box (AI / important notices) */
.legal-callout {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
}

.legal-callout h3 { margin-top: 0; color: var(--gold-light); }

.legal-callout p:last-child { margin-bottom: 0; }

/* Table */
.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0;
}

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 13px;
}

table.legal-table th,
table.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.legal-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(255, 255, 255, .02);
}

table.legal-table td { color: var(--t2); }

table.legal-table tr:last-child td { border-bottom: none; }

/* Contact card */
.legal-contact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.8;
}

/* TOC */
.legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.legal-toc strong {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t3);
  display: block;
  margin-bottom: 12px;
}

.legal-toc ol { gap: 6px; }
.legal-toc ol li::before { display: none; }
.legal-toc ol { counter-reset: toc; padding-left: 0; }
.legal-toc a { font-size: 14px; }

/* Footer */
.legal-foot {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--t3);
}

.legal-foot a { color: var(--gold-light); text-decoration: none; margin: 0 8px; }

@media (max-width: 600px) {
  .legal-nav { padding: 12px 16px; }
  .legal-wrap { padding: 40px 18px 72px; }
}
