:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f3fb;
  color: #19172b;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --accent: #6252e7;
  --accent-strong: #4938c8;
  --accent-soft: #eeebff;
  --accent-rgb: 98 82 231;
  --ink: #19172b;
  --muted: #666276;
  --surface: rgba(255, 255, 255, 0.94);
  --line: rgba(72, 61, 133, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 5% 1%, rgb(137 111 255 / 18%), transparent 34rem),
    radial-gradient(circle at 98% 26%, rgb(63 191 177 / 11%), transparent 30rem),
    linear-gradient(155deg, #faf9ff 0%, #f2f3fb 54%, #f8f9fc 100%);
  color: var(--ink);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .3;
  background-image:
    linear-gradient(rgb(92 78 173 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(92 78 173 / 5%) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}

.brand-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #9c51f4 0%, #6847ed 52%, #3f2bc5 100%);
  box-shadow: 0 10px 24px rgb(69 48 184 / 24%);
}

.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

.brand-copy span {
  color: #737086;
  font-size: 12px;
  font-weight: 650;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: #565168;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 82%);
}

.language-switch button {
  min-width: 43px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.language-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.language-switch button:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(var(--accent-rgb) / 27%);
  outline-offset: 3px;
}

html.js body[data-language="pt"] [data-language-panel="en"],
html.js body[data-language="en"] [data-language-panel="pt"] {
  display: none;
}

.legal-hero {
  overflow: hidden;
  position: relative;
  margin-top: 16px;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(247 245 255 / 92%));
  box-shadow:
    0 30px 76px rgb(51 43 104 / 13%),
    inset 0 0 0 1px rgb(80 68 145 / 4%);
}

.legal-hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent), #9d78ff);
  content: "";
}

.legal-hero::after {
  position: absolute;
  width: 19rem;
  height: 19rem;
  top: -10rem;
  right: -8rem;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / 8%);
  content: "";
  pointer-events: none;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.052em;
}

.hero-lead {
  position: relative;
  z-index: 1;
  max-width: 790px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.72;
}

.hero-meta {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-meta span,
.hero-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 80%);
  color: #59546b;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}

.legal-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  padding: 42px 0 70px;
}

.legal-toc {
  position: sticky;
  top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / 76%);
  box-shadow: 0 18px 46px rgb(51 43 104 / 8%);
  backdrop-filter: blur(16px);
}

.legal-toc strong {
  display: block;
  margin-bottom: 11px;
  font-size: 13px;
}

.legal-toc nav {
  display: grid;
  gap: 4px;
}

.legal-toc a {
  padding: 8px 9px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.legal-document {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.legal-section {
  scroll-margin-top: 24px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgb(51 43 104 / 7%);
}

.legal-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  letter-spacing: -.025em;
  line-height: 1.14;
}

.legal-section h3 {
  margin: 24px 0 0;
  color: #2f2a43;
  font-size: 1rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
}

.legal-section p {
  margin: 14px 0 0;
}

.legal-section ul,
.legal-section ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a {
  color: var(--accent-strong);
  font-weight: 730;
}

.summary-card,
.action-card,
.callout {
  padding: 20px;
  border-radius: 16px;
}

.summary-card {
  border: 1px solid rgb(var(--accent-rgb) / 15%);
  background: linear-gradient(135deg, var(--accent-soft), #fff);
}

.summary-card p:first-child,
.callout p:first-child {
  margin-top: 0;
}

.summary-card p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.callout {
  margin-top: 18px;
  border-left: 4px solid var(--accent);
  background: #f8f7ff;
}

.action-card {
  margin-top: 18px;
  border: 1px solid rgb(22 143 128 / 18%);
  background: #ecf9f6;
}

.button {
  width: fit-content;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 24px rgb(var(--accent-rgb) / 22%);
  color: #fff !important;
  font-weight: 800 !important;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 64%);
}

.footer-inner {
  min-height: 92px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-inner a {
  color: #565168;
  font-weight: 760;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand-link {
    grid-row: 1;
    grid-column: 1;
  }

  .language-switch {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }

  .primary-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .legal-toc {
    position: static;
  }

  .legal-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .site-header {
    gap: 12px;
    padding-top: 16px;
  }

  .brand-copy span {
    display: none;
  }

  .primary-nav {
    gap: 0;
  }

  .primary-nav a {
    padding-right: 9px;
    padding-left: 9px;
    white-space: nowrap;
  }

  .language-switch button {
    min-width: 39px;
    padding: 0 8px;
  }

  .legal-hero {
    margin-top: 4px;
    padding: 30px 24px;
    border-radius: 24px;
  }

  h1 {
    font-size: 2.42rem;
  }

  .legal-grid {
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 46px;
  }

  .legal-toc nav {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding: 23px 20px;
    border-radius: 18px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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