/* mov coex — documentos legais */
:root {
  --bg-top: #eef2f6;
  --bg-bottom: #e4e9ef;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-subtle: #78716c;
  --border: rgba(28, 25, 23, 0.08);
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-soft: rgba(15, 118, 110, 0.09);
  --header-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 4px 24px rgba(28, 25, 23, 0.06), 0 1px 3px rgba(28, 25, 23, 0.04);
  --radius: 12px;
  --radius-lg: 16px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(165deg, var(--bg-top) 0%, var(--bg-bottom) 45%, #dce3ea 100%);
  background-attachment: fixed;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand__mark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand__tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.2);
  font-weight: 600;
}

/* —— Main —— */
.main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.main--home {
  padding-top: 2.5rem;
}

/* —— Card / prose —— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.75rem 2.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.card.prose {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}

.card.prose h1,
.card.prose h2 {
  font-family: var(--font-sans);
  line-height: 1.25;
  color: var(--text);
}

.card:not(.prose) {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.card:not(.prose) h1 {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card.prose h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card.prose h2 {
  margin: 2rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
}

.card.prose h2:first-of-type {
  margin-top: 1.5rem;
}

.card.prose p,
.card.prose ul {
  margin: 0 0 1rem;
}

.card.prose ul {
  padding-left: 1.35rem;
}

.card.prose li {
  margin-bottom: 0.4rem;
}

.card.prose li::marker {
  color: var(--accent);
}

.card.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.card.prose a:hover {
  color: var(--accent-hover);
}

.meta {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-bottom: 1.5rem !important;
}

code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.9em;
  background: #f4f4f0;
  color: #44403c;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(28, 25, 23, 0.06);
}

/* —— Home —— */
.lead {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.lead:last-of-type {
  margin-bottom: 0;
}

.lead a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.lead a:hover {
  text-decoration: underline;
}

.doc-list--spaced {
  margin-top: 2rem;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.doc-card:hover {
  border-color: rgba(15, 118, 110, 0.25);
  box-shadow: 0 8px 28px rgba(28, 25, 23, 0.08);
  transform: translateY(-1px);
}

.doc-card__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.doc-card__desc {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__legal {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  font-family: var(--font-sans);
}

.site-footer__contact {
  margin: 0;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

.sep {
  margin: 0 0.35rem;
  color: var(--text-subtle);
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .card.prose {
    font-size: 1rem;
  }

  .card.prose h1 {
    font-size: 1.5rem;
  }
}
