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

:root {
  --ink: #0f172a;
  --mid: #475569;
  --soft: #94a3b8;
  --surface: #f8fafc;
  --bg: #ffffff;
  --border: #e2e8f0;
  --green: #16a34a;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.legal-logo { display: flex; align-items: center; text-decoration: none; }
.legal-logo img { height: 32px; }

.legal-back {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  transition: color .15s;
}
.legal-back:hover { color: var(--ink); }

/* Main content */
.legal-main {
  min-height: calc(100vh - 130px);
  padding: 64px 24px 96px;
}

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.legal-meta {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.legal-meta h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--soft);
}

/* Corpo do texto legal */
.legal-body { font-size: 0.95rem; color: var(--mid); }

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 12px;
}

.legal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 8px;
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-body ul,
.legal-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-body li { line-height: 1.65; }

.legal-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body strong { color: var(--ink); font-weight: 600; }

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.88rem;
}
.legal-body th,
.legal-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.legal-body th {
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
}

/* Footer */
.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 48px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--soft);
}

.legal-footer div {
  display: flex;
  gap: 20px;
}

.legal-footer a {
  color: var(--soft);
  text-decoration: none;
  transition: color .15s;
}
.legal-footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 640px) {
  .legal-header { padding: 14px 20px; }
  .legal-footer  { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
}
