/* Legal pages theme — shares the SAME design tokens as the main app
   (home/login/painel). Only existing tokens/values are used; no new colors.
   Hierarchy mirrors the app: headings use --foreground (bold), body text uses
   --muted (lighter, smaller). Emphasis is typographic (bold/italic) only. */

/* Theme tokens (light/dark) live in theme.css — shared with the home page. */

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

body {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--background);
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.75;
  margin: 0;
}

/* Centers the document content while letting the footer span full width
   (mirrors the home layout, where the footer sits outside the container). */
.legal-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 20px 0;
}

/* ── Top bar (back link + language switch) ───────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.back-home:hover {
  text-decoration: underline;
}
.lang-switch {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lang-switch a.active {
  color: var(--foreground);
  font-weight: 600;
}
.lang-switch a:hover {
  color: var(--primary);
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.container {
  background: var(--surface);
  padding: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-solid);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ── Headings (bold, --foreground) ───────────────────────────────────────── */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--foreground);
}
h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 42px;
  margin-bottom: 4px;
  color: var(--foreground);
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 26px;
  color: var(--foreground);
}

/* ── Body text (lighter, --muted) ────────────────────────────────────────── */
p,
li {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
}
ul,
ol {
  margin-left: 22px;
  margin-bottom: 22px;
}
li {
  margin-bottom: 8px;
}
a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Typographic emphasis (no extra colors) ──────────────────────────────── */
strong {
  color: var(--foreground);
  font-weight: 600;
}
.highlight {
  color: var(--foreground);
  font-weight: 700;
}
.pending {
  color: var(--foreground);
  font-weight: 700;
  font-style: italic;
}

/* ── Intro / date / footer (muted) ───────────────────────────────────────── */
.legal-intro {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 8px;
}
.date-updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* Footer component lives in theme.css (shared, identical across public pages). */

/* ── Data inventory table ────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
table.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}
table.legal-table th,
table.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
table.legal-table th {
  background: var(--background);
  color: var(--foreground);
  font-weight: 600;
  white-space: nowrap;
}
table.legal-table td {
  color: var(--muted);
}
table.legal-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  body {
    padding: 30px 15px;
  }
  .container {
    padding: 30px 22px;
  }
  h1 {
    font-size: 1.8rem;
  }
}
