/* ==========================================================================
   Legal / Termos — sistema visual herdado da landing
   ========================================================================== */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/_next/static/media/inter-latin-wght-normal.6c596dfc.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/_next/static/media/inter-latin-ext-wght-normal.3835a68e.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;

  --font-sans: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --brand-primary: #06b6d4;
  --brand-accent: #67e8f9;

  --bg: #0b0b10;
  --bg-soft: #0e0e14;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-strong: rgba(255, 255, 255, 0.055);
  --text: #f7f7fb;
  --text-muted: rgba(247, 247, 251, 0.62);
  --text-faint: rgba(247, 247, 251, 0.42);
  --line: rgba(247, 247, 251, 0.1);
  --line-soft: rgba(247, 247, 251, 0.06);
  --primary: var(--brand-primary);
  --primary-soft: rgba(6, 182, 212, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --header-h: 66px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6fb;
  --bg-soft: #ffffff;
  --surface: rgba(12, 10, 25, 0.028);
  --surface-strong: rgba(12, 10, 25, 0.06);
  --text: #12101c;
  --text-muted: rgba(18, 16, 28, 0.64);
  --text-faint: rgba(18, 16, 28, 0.45);
  --line: rgba(18, 16, 28, 0.1);
  --line-soft: rgba(18, 16, 28, 0.06);
  --primary: #0891b2;
  --primary-soft: rgba(6, 182, 212, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 32px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

/* atmosfera de fundo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(58% 42% at 18% -6%, rgba(6, 182, 212, 0.16), transparent 68%),
    radial-gradient(46% 36% at 92% 2%, rgba(6, 182, 212, 0.08), transparent 70%);
}
html[data-theme="light"] body::before {
  background:
    radial-gradient(58% 42% at 18% -6%, rgba(6, 182, 212, 0.13), transparent 68%),
    radial-gradient(46% 36% at 92% 2%, rgba(6, 182, 212, 0.07), transparent 70%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(6, 182, 212, 0.32);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================ progresso ============================ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  background: transparent;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.55);
  transition: width 0.12s linear;
}

/* ============================== header ============================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line-soft);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}
.site-header .shell {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 16px;
}
.brand__mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--brand-primary), #0e7490);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
  flex: none;
}
.brand__mark svg {
  width: 16px;
  height: 16px;
}
.brand__name {
  line-height: 1;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--line);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}
.icon-btn .sun {
  display: none;
}

/* menu mobile */
.menu-btn {
  display: grid;
}
.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  padding: 10px 0 16px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu ul {
  margin: 0;
  padding: 0 24px;
  list-style: none;
  display: grid;
  gap: 2px;
}
.mobile-menu a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-muted);
}
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
}
.mobile-menu .btn {
  margin: 12px 24px 0;
  width: calc(100% - 48px);
}
@media (min-width: 960px) {
  .menu-btn,
  .mobile-menu {
    display: none !important;
  }
}
html[data-theme="light"] .icon-btn .sun {
  display: block;
}
html[data-theme="light"] .icon-btn .moon {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background-color 0.2s, opacity 0.2s;
}
.btn--primary {
  background: linear-gradient(180deg, #22d3ee, #0891b2);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(6, 182, 212, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(6, 182, 212, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--surface-strong);
}
.btn--sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

/* =============================== hero ============================== */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 44px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.7rem, 7.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 550;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero__lede {
  margin: 26px 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero__meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
}
.chip--live {
  color: var(--text);
}
.chip--live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}

/* ========================== navegação de docs ====================== */
.docnav {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--surface), transparent);
}
.docnav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 14px 24px;
}
.docnav__inner::-webkit-scrollbar {
  display: none;
}
.docnav__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  flex: none;
  padding-right: 6px;
}
.docnav__list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.docnav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
a.docnav__link:hover {
  color: var(--text);
  background: var(--surface-strong);
}
.docnav__link[aria-current="page"] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 42%, transparent);
  background: var(--primary-soft);
}
.docnav__link[aria-disabled="true"] {
  color: var(--text-faint);
  cursor: default;
}
.docnav__soon {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--text-faint);
}

/* =============================== corpo ============================= */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 48px 0 40px;
}
.doc__main {
  min-width: 0;
  max-width: 780px;
}
.doc__aside {
  display: none;
}

/* resumo */
.summary {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px 22px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  overflow: hidden;
}
.summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-primary), transparent);
}
.summary__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
  color: var(--primary);
  margin-top: 2px;
}
.summary__icon svg {
  width: 13px;
  height: 13px;
}
.summary h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.summary p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* seções */
.section {
  padding-top: clamp(44px, 6vw, 68px);
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 550;
  text-wrap: balance;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.section h2 .anchor {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  opacity: 0;
  transition: opacity 0.2s;
  text-decoration: none;
}
.section h2:hover .anchor,
.section h2 .anchor:focus-visible {
  opacity: 1;
}
.section__kicker {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-faint);
}

.section__body {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}
.clause {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.clause__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding-top: 4px;
}
.clause p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-muted);
  text-wrap: pretty;
}
.clause p strong {
  color: var(--text);
  font-weight: 550;
}
.clause a,
.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--primary) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.clause a:hover,
.inline-link:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* listas dentro do corpo */
.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--primary);
  opacity: 0.8;
}

/* base legal */
.laws {
  padding-top: clamp(44px, 6vw, 68px);
}
.laws h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: -0.03em;
  font-weight: 550;
}
.laws p {
  margin: 12px 0 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 68ch;
}
.laws__grid {
  display: grid;
  gap: 10px;
}
.law {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 14px;
  color: var(--text-muted);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.law:hover {
  border-color: color-mix(in srgb, var(--primary) 38%, transparent);
  background: var(--surface-strong);
  color: var(--text);
  transform: translateX(2px);
}
.law span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.law__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.law svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--text-faint);
}

/* rodapé do documento */
.docmeta {
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.65;
}
.docmeta strong {
  color: var(--text-muted);
  font-weight: 550;
}
.docmeta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* ================================ aside ============================ */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
}
.toc__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line-soft);
}
.toc__link {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-faint);
  transition: color 0.2s, border-color 0.2s;
}
.toc__link:hover {
  color: var(--text-muted);
}
.toc__link[aria-current="true"] {
  color: var(--text);
  border-left-color: var(--primary);
}
.toc__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-right: 6px;
}
.toc__link[aria-current="true"] .toc__num {
  color: var(--primary);
}

/* ================================= CTA ============================= */
.cta-wrap {
  padding: 20px 0 72px;
}
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(6, 182, 212, 0.22), transparent 58%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
}
.cta::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 62%);
  pointer-events: none;
}
.cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 550;
  max-width: 22ch;
  text-wrap: balance;
}
.cta p {
  margin: 14px 0 26px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 46ch;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =============================== footer ============================ */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 52px 0 32px;
  font-size: 13.5px;
}
.site-footer__top {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
.site-footer__brand p {
  margin: 14px 0 0;
  max-width: 34ch;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.65;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}
.site-footer h3 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.site-footer ul a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.site-footer ul a:hover {
  color: var(--text);
}
.site-footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}
.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================== responsivo ========================= */
@media (min-width: 720px) {
  .section__head {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0 22px;
  }
  .section__num {
    padding-top: 8px;
  }
  .clause {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0 22px;
  }
  .laws__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .laws {
    padding-left: 78px;
  }
  .site-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer__bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
  .doc {
    grid-template-columns: minmax(0, 1fr) 248px;
    gap: 56px;
    padding: 56px 0 48px;
  }
  .doc__aside {
    display: block;
  }
  .site-footer__top {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 48px;
  }
  .site-footer__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .header-actions .btn {
    display: none;
  }
  .mobile-menu .btn {
    display: inline-flex;
  }
  .summary {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .summary__icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ================================ print ============================ */
@media print {
  body {
    background: #fff;
    color: #111;
  }
  body::before,
  .site-header,
  .docnav,
  .doc__aside,
  .progress,
  .cta-wrap,
  .site-footer,
  .docmeta__actions {
    display: none !important;
  }
  .doc {
    display: block;
    padding: 0;
  }
  .clause p,
  .section__kicker,
  .summary p {
    color: #333;
  }
  .section {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }
}

/* ================================ tabela =========================== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.doc-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}
.doc-table th {
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-strong);
  white-space: nowrap;
}
.doc-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.5;
}
.doc-table tr:last-child td {
  border-bottom: 0;
}
.doc-table td:first-child {
  white-space: nowrap;
}
.doc-table code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  background: var(--surface-strong);
  padding: 2px 6px;
  border-radius: 5px;
}
.clause--full {
  grid-template-columns: minmax(0, 1fr) !important;
}
@media (min-width: 720px) {
  .clause--full {
    padding-left: 74px;
  }
}

/* Marca Light enviada pelo usuário: usada nos cabeçalhos e rodapés das páginas. */
.brand__mark--image { background: transparent; box-shadow: none; }
.brand__mark--image img { display: block; width: 100%; height: 100%; object-fit: contain; }
