:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --primary: #09808b;
  --primary-strong: #06636c;
  --primary-soft: #e6f7f8;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --border: #dbe7ea;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(9, 128, 139, 0.14), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 34rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  padding: 32px 20px 56px;
}

body > * {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.clearfix {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(9, 128, 139, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 36px);
  backdrop-filter: blur(10px);
}

.clearfix::after { content: ""; display: table; clear: both; }
.img-container { width: min(280px, 72%); margin: 0 auto; }
.img-container img { display: block; width: 100%; height: auto; object-fit: contain; }

h1, h2, h3, h4, h5, p { width: min(1120px, 100%); }

h1 {
  margin-top: 36px;
  margin-bottom: 14px;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1:first-of-type {
  margin-top: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  color: var(--primary-strong);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--primary);
  vertical-align: 0.1em;
}

h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

h4, h5, p {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: justify;
}

p, h4, h5 {
  color: #334155;
  font-size: 0.95rem;
}

h4 {
  font-weight: 600;
}

h5 {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

a {
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(9, 128, 139, 0.28);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

a:hover, a:focus-visible {
  color: var(--primary);
  border-bottom-color: currentColor;
}

h4:has(> a) {
  margin-top: 16px;
  text-align: left;
}

h4:has(> a) a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(9, 128, 139, 0.18);
  border-radius: 999px;
  background: var(--primary-soft);
  box-shadow: 0 8px 18px rgba(9, 128, 139, 0.08);
}

/* Bloco de atenção em vermelho */
body > h3[style*="red"],
body > h4[style*="red"] {
  max-width: 1120px;
  color: var(--danger) !important;
  background: var(--danger-soft);
  border-left: 1px solid rgba(220, 38, 38, 0.16);
  border-right: 1px solid rgba(220, 38, 38, 0.16);
}

body > h3[style*="red"] {
  margin-top: 22px;
  margin-bottom: 0;
  padding: 18px 20px 6px;
  border-top: 1px solid rgba(220, 38, 38, 0.16);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}

body > h4[style*="red"] {
  margin-top: 0;
  margin-bottom: 0;
  padding: 8px 20px;
  border-top: 0;
  border-bottom: 0;
  text-align: justify;
}

body > h4[style*="red"]:has(+ br) {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(220, 38, 38, 0.16);
  border-radius: 0 0 20px 20px;
}

table {
  width: 60%;
  margin: 24px auto 42px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid rgba(9, 128, 139, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

table th:last-child,
table td:last-child {
  border-right: 0;
}

table tr:last-child td {
  border-bottom: 0;
}

table th {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

table td {
  font-size: 0.94rem;
}

table tr:nth-child(2) td {
  color: var(--primary-strong);
  background: var(--primary-soft);
  font-weight: 800;
}

table td:nth-child(1) {
  width: 25%;
  color: #0f172a;
  background: #f8fafc;
  font-weight: 800;
}

table tr:nth-child(even):not(:nth-child(2)) td {
  background: #fbfdff;
}

table tr:hover td {
  background: #f2fbfc;
}

@media (max-width: 900px) {
  body {
    padding: 20px 14px 42px;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: normal;
  }

  table th,
  table td {
    min-width: 140px;
  }

  table td:nth-child(1) {
    min-width: 180px;
  }
}

@media (max-width: 560px) {
  .clearfix {
    border-radius: 18px;
    padding: 18px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    margin-top: 34px;
  }

  h4, h5, p {
    text-align: left;
  }
}
