/* Delogo & Saints Contabilidade — Design System */

:root {
  --navy: #002060;
  --navy-dark: #001540;
  --blue: #0078d4;
  --blue-light: #1a9fff;
  --blue-pale: #e8f4fd;
  --charcoal: #333333;
  --gray-600: #5a5a5a;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --whatsapp: #25d366;
  --shadow-sm: 0 1px 3px rgba(0, 32, 96, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 32, 96, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 32, 96, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-light);
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.btn--portal {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn--portal:hover {
  background: var(--navy);
  color: var(--white);
}
.btn--lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 120, 212, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  background: var(--blue-pale);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: transparent;
}

.btn--whatsapp:hover {
  background: #1fb855;
  color: var(--white);
  transform: translateY(-2px);
}

.btn--whatsapp svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 58px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header__nav a {
  color: var(--charcoal);
  font-size: 0.9375rem;
  font-weight: 500;
}

.header__nav a.btn,
.header__nav a.btn:hover {
  color: var(--white);
}

.header__nav a.btn--portal,
.header__nav a.btn--portal:hover {
  color: var(--navy);
}

.header__nav a.btn--portal:hover {
  color: var(--white);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.header__nav a:not(.btn):hover {
  color: var(--blue);
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 120, 212, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(0, 32, 96, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.hero__panel-card {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.hero__panel-label {
  display: block;
  font-size: 0.8125rem;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.hero__panel-card strong {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero__panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__stat {
  text-align: center;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.hero__stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.hero__panel-items {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hero__panel-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--gray-600);
  background: var(--gray-50);
}

.hero__panel-item--active {
  background: var(--blue-pale);
  color: var(--navy);
  font-weight: 600;
}

.hero__panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-400);
  flex-shrink: 0;
}

.hero__panel-item--active .hero__panel-dot {
  background: var(--blue);
}

.hero__visual {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.hero__visual-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 320px;
}

.hero__visual-main img,
.hero__visual-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__visual-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0, 32, 96, 0.88);
  color: var(--white);
  padding: 0.5rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero__visual-side {
  display: grid;
  gap: 1rem;
}

.hero__visual-side img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-height: 150px;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--gray-50);
}

.section--dark {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section--dark .section__eyebrow--light {
  color: var(--blue-light);
}

.section__header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section--dark .section__header h2,
.section--dark h2 {
  color: var(--white);
}

.section__header p {
  color: var(--gray-600);
  font-size: 1.0625rem;
}

.section--dark .section__header p,
.section--dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* Reforma Tributária — destaque */
.section--reforma {
  background: linear-gradient(135deg, #001540 0%, var(--navy) 52%, #0050a0 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section--reforma::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 12%, rgba(0, 120, 212, 0.38) 0%, transparent 42%);
  pointer-events: none;
}

.reforma-spotlight {
  position: relative;
  z-index: 1;
}

.reforma-spotlight__badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.reforma-spotlight__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.reforma-spotlight__header h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.reforma-spotlight__header p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0625rem;
}

.section--reforma .section__eyebrow--light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.rss-status--light {
  color: rgba(255, 255, 255, 0.72);
}

.news-grid--reforma {
  grid-template-columns: repeat(3, 1fr);
}

.news-card--reforma {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 21, 64, 0.18);
}

.reforma-spotlight__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.25rem;
}

.btn--white-outline {
  border: 2px solid rgba(255, 255, 255, 0.88);
  color: var(--white);
  background: transparent;
}

.btn--white-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.feed-card--highlight {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(0, 120, 212, 0.08) 0%, var(--white) 100%);
}

.feed-card--highlight h3 {
  color: var(--navy);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 840px;
  margin: 0 auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  min-width: 220px;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.social-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.social-link:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.footer__social a:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-pale);
}

.card--highlight {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-pale);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.card__link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--blue);
}

.card__link:hover {
  color: var(--navy);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--navy));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-pale);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-pale);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* Segments */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.segment-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.segment-card--featured {
  border-color: rgba(0, 120, 212, 0.28);
  box-shadow: var(--shadow-md);
}

.segment-card__label {
  display: inline-block;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.segment-card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.segment-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.split p {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.checklist li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 120, 212, 0.2);
  color: var(--blue-light);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  backdrop-filter: blur(8px);
}

.metric-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.metric-card strong {
  font-size: 1rem;
  color: var(--white);
}

.metric-card span:last-child {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.about__text strong {
  color: var(--navy);
}

.about--compact {
  display: block;
  max-width: 720px;
  margin: 0 auto;
}

.about--compact .about__text {
  text-align: center;
}

.about--compact .btn {
  margin-top: 1.25rem;
}

.about-home {
  max-width: 720px;
  margin: 0 auto;
}

.about-home__header {
  margin-bottom: 1.5rem;
}

.about-home__header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.about-home__lead {
  color: var(--gray-600);
  font-size: 1.0625rem;
}

.about-home__body {
  text-align: left;
}

.about-home__body p {
  color: var(--gray-600);
  font-size: 1.0625rem;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.about-home__body strong {
  color: var(--navy);
}

.about-home__body .btn {
  margin-top: 0.5rem;
}

.section__cta-link {
  text-align: center;
  margin-top: 2rem;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mvv-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.mvv-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.mvv-card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.profile-card--full {
  grid-column: span 1;
}

.profile-card__role {
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-card__crc {
  color: var(--gray-600);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.profile-card--full p {
  margin-bottom: 0.875rem;
}

.profile-card--partner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 2rem 1.75rem;
}

.profile-card--partner .profile-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.profile-card--partner .profile-card__avatar {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gray-100);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.profile-card--partner .profile-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.profile-card__photo--juliano {
  object-position: center 12%;
}

.profile-card__photo--bruno {
  object-position: center 22%;
}

.profile-card--partner h3 {
  margin-bottom: 0.5rem;
}

.profile-card--partner .profile-card__crc {
  margin-bottom: 0;
}

.profile-card--partner .profile-card__bio {
  text-align: left;
}

.profile-card--partner .profile-card__bio p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-dark);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed__fallback {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.video-embed__fallback a {
  color: var(--blue);
  font-weight: 600;
}

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

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--gray-600);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content table.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0 1.5rem;
}

.legal-content table.legal-table th,
.legal-content table.legal-table td {
  border: 1px solid var(--gray-200);
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
  color: var(--gray-600);
}

.legal-content table.legal-table th {
  background: var(--gray-50);
  color: var(--navy);
  font-weight: 600;
}

.legal-content code {
  font-size: 0.8125rem;
  background: var(--gray-50);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 -4px 24px rgba(0, 32, 96, 0.2);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner__btn {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .legal-content table.legal-table {
    display: block;
    overflow-x: auto;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__btn {
    width: 100%;
  }
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.about__highlight strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  min-width: 2.5rem;
}

.about__highlight span {
  font-size: 0.9375rem;
  color: var(--charcoal);
  font-weight: 500;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact__form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 1.25rem;
}

.form-feedback--success { color: #059669; }
.form-feedback--error { color: #dc2626; }

.contact__card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1rem;
}

.contact__card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__list svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__list strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}

.contact__list a,
.contact__list address {
  font-size: 0.9375rem;
  color: var(--charcoal);
  line-height: 1.5;
}

.contact__list a:hover {
  color: var(--blue);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta__inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta__inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Internal pages */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.page-hero--image {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}

.page-hero--image .page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 21, 64, 0.94) 0%, rgba(0, 32, 96, 0.85) 50%, rgba(0, 80, 160, 0.75) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  z-index: 0;
}

.page-hero__inner {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 1rem;
}

.page-hero--image h1,
.page-hero--image p {
  color: var(--white) !important;
}

.page-hero p {
  color: var(--gray-600);
  font-size: 1.125rem;
  max-width: 680px;
}

.page-hero--image .page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero--image .section__eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.profile-grid,
.news-grid,
.feed-links {
  display: grid;
  gap: 1.5rem;
}

.profile-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}

.profile-grid--single {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.profile-card,
.news-card,
.feed-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.profile-card h3,
.news-card h3,
.feed-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.profile-card p,
.news-card p,
.feed-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.profile-card ul {
  color: var(--gray-600);
  padding-left: 1.1rem;
}

.profile-card li + li {
  margin-top: 0.5rem;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.news-card__meta,
.rss-status {
  display: block;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.news-card h3 a {
  color: var(--navy);
}

.news-card h3 a:hover {
  color: var(--blue);
}

.feed-links {
  grid-template-columns: repeat(5, 1fr);
}

.feed-card {
  padding: 1.25rem;
}

.feed-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feed-card p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer__logo-img {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer__nav,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__nav strong,
.footer__contact strong {
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer__nav a,
.footer__contact a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--white);
}

.footer__contact address {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.65);
}

.footer__bottom a:hover {
  color: var(--white);
}

.footer__bottom p {
  font-size: 0.8125rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  color: var(--white);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

body:has(.cookie-banner:not(.is-hidden)) .whatsapp-float {
  bottom: 5.5rem;
}

@media (max-width: 1200px) {
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__inner,
  .split,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    max-width: 480px;
  }

  .hero__visual {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .hero__visual-side {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards--3,
  .cards--4 {
    grid-template-columns: 1fr;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid,
  .news-grid,
  .feed-links {
    grid-template-columns: 1fr;
  }

  .news-grid--reforma {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .segment-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }

  .header__menu-btn {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav a {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .header__nav a:last-child {
    border-bottom: none;
  }

  .header__actions {
    flex-direction: column;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
  }

  .header__actions .btn {
    width: 100%;
    text-align: center;
  }

  .header__menu-btn.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__menu-btn.is-active span:nth-child(2) {
    opacity: 0;
  }

  .header__menu-btn.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding-bottom: 3rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__social {
    justify-content: center;
  }

  .metric-cards {
    grid-template-columns: 1fr;
  }

  .profile-card--partner .profile-card__avatar {
    width: 168px;
    height: 168px;
  }
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
  .reveal-stagger > .reveal:nth-child(2) { transition-delay: 90ms; }
  .reveal-stagger > .reveal:nth-child(3) { transition-delay: 180ms; }
  .reveal-stagger > .reveal:nth-child(4) { transition-delay: 270ms; }
  .reveal-stagger > .reveal:nth-child(5) { transition-delay: 360ms; }
  .reveal-stagger > .reveal:nth-child(6) { transition-delay: 450ms; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
