@font-face {
  font-family: 'Funnel Display';
  src: url('/fonts/FunnelDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('/fonts/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf')
    format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --forest: #002e10;
  --lime: #e1ff00;
  --paper: #f3f4f1;
  --ink: #253b2d;
  --muted: #536458;
  --line: #d8e0d8;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  /* The shared site header (site-header.css) is fixed. */
  padding-top: calc(var(--site-header-h, 72px) + 24px);
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #48733b;
  outline-offset: 6px;
  border-radius: 3px;
}
.wrap {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 1000; /* above the fixed site header */
  padding: 12px 20px;
  color: var(--forest);
  background: var(--lime);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.page-hero {
  padding: 38px 52px 42px;
  border-radius: 30px;
  background: var(--forest);
  color: white;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #c5d3c7;
  font-size: 14px;
}
.breadcrumb a {
  color: white;
}
.page-hero a:focus-visible {
  outline-color: var(--lime);
}
h1,
h2 {
  font-family: 'Funnel Display', sans-serif;
  color: var(--forest);
  font-weight: 600;
}
h1 {
  max-width: 100%;
  margin: 32px 0 12px;
  color: var(--lime);
  font-size: clamp(2.3rem, 4.7vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.hero-description {
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  color: #e1e9df;
}
.effective-date {
  margin: 30px 0 0;
  font-size: 13px;
  color: #c5d3c7;
}
/* Translated legal pages: the Portuguese text governs. */
.translation-note {
  margin: 8px 0 0;
  max-width: 60ch;
  font-size: 13px;
  line-height: 1.5;
  color: #c5d3c7;
}
.not-found {
  padding: 56px 20px 72px;
}
.document-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding: 56px 20px 72px;
}
.document-sidebar {
  position: sticky;
  top: calc(var(--site-header-h, 72px) + 24px);
  /* Long indexes (Terms of Use has 26 sections) scroll inside the sidebar. */
  max-height: calc(100vh - var(--site-header-h, 72px) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.contents h2 {
  margin: 0 0 20px;
  font-size: 21px;
}
.contents a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.55;
}
.contents a:hover {
  text-decoration: underline;
}
.contents-intro {
  margin-bottom: 16px;
  font-weight: 700;
}
.contents ol,
.contents ul.unnumbered {
  display: grid;
  gap: 17px;
  margin: 0;
  padding-left: 22px;
}
.contents li {
  padding-left: 5px;
}
.contents li::marker {
  color: var(--muted);
  font-size: 13px;
}
.contact-note {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 14px;
}
.contact-note p {
  margin: 0 0 8px;
  font-weight: 800;
}
.contact-note a {
  overflow-wrap: anywhere;
}
.document-column {
  min-width: 0;
  max-width: 74ch;
}
article {
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
article > p:first-child,
article .lead p {
  margin-top: 0;
  color: var(--forest);
  font-size: 21px;
  line-height: 1.6;
  font-weight: 650;
}
article p {
  margin: 0 0 20px;
}
article section {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 32px;
}
article h2 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}
article a {
  color: var(--forest);
}
article code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #e8ece5;
  padding: 1px 5px;
  font-size: 0.9em;
}
[id] {
  scroll-margin-top: calc(var(--site-header-h, 72px) + 24px);
}
article section:target h2 {
  text-decoration: underline;
  text-decoration-color: #a4bb36;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.contact-panel {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #e8eddf;
}
.contact-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
}
.contact-panel p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 52ch;
}
.contact-panel a {
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 700;
}
/* Content pages: lead emphasis and lists inside the document */
article .lead strong {
  font-weight: 800;
}
article ul {
  margin: 0 0 20px;
  padding-left: 22px;
}
article li {
  margin-bottom: 10px;
  padding-left: 4px;
}
article li::marker {
  color: #6f8f3a;
}
article strong {
  color: var(--forest);
}
.contents ul.unnumbered {
  padding-left: 0;
  list-style: none;
}
.contents ul.unnumbered li {
  padding-left: 0;
}

/* Contact page */
.contact-layout {
  display: grid;
  gap: 32px;
  padding: 56px 0 72px;
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.channel-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.channel-card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}
.channel-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.channel-value {
  color: var(--forest);
  font-family: 'Funnel Display', sans-serif;
  font-size: 26px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.channel-description {
  font-size: 15px;
  line-height: 1.6;
}
.contact-layout .contact-panel {
  margin-top: 0;
}
.contact-panel .contact-cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 100px;
  color: var(--forest);
  background: var(--lime);
  font-size: 16px;
  text-decoration: none;
}
.contact-panel .contact-cta:hover {
  color: white;
  background: var(--forest);
}


@media (max-width: 950px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .document-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
    padding-inline: 0;
  }
  .page-hero {
    padding: 32px;
  }
  article h2 {
    font-size: 26px;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .page-hero {
    border-radius: 22px;
    padding: 26px 24px;
  }
  h1 {
    margin-top: 28px;
    font-size: clamp(2rem, 9vw, 3.25rem);
  }
  .hero-description {
    font-size: 17px;
  }
  .effective-date {
    font-size: 12px;
    margin-top: 24px;
  }
  .document-layout {
    display: block;
    padding-block: 32px 48px;
  }
  .document-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
  .contents ol {
    gap: 12px;
  }
  .contact-note {
    display: none;
  }
  article {
    font-size: 16px;
    line-height: 1.8;
  }
  article > p:first-child,
  article section {
    margin-top: 32px;
    padding-top: 28px;
  }
  article h2 {
    font-size: 26px;
  }
  .contact-panel {
    padding: 24px;
  }
  .contact-panel h2 {
    font-size: 25px;
  }
  .contact-panel a {
    font-size: 16px;
  }
  .contact-layout {
    padding-block: 32px 48px;
  }
  .channel-card {
    padding: 24px;
  }
  .channel-value {
    font-size: 22px;
  }
}

@media print {
  :root {
    background: white;
    color: black;
  }
  body {
    padding-top: 0;
  }
  .wrap {
    width: 100%;
  }
  .document-sidebar,
  .back-to-top,
  .skip-link,
  .breadcrumb,
  .contact-panel {
    display: none;
  }
  .page-hero {
    padding: 0 0 24px;
    background: white;
    color: black;
    border-radius: 0;
  }
  .page-hero h1,
  .page-hero p {
    color: black;
  }
  h1 {
    margin-top: 0;
    font-size: 32pt;
  }
  .document-layout {
    display: block;
    padding: 0;
  }
  article {
    font-size: 11pt;
  }
  article h2 {
    font-size: 18pt;
    break-after: avoid;
  }
  article p {
    orphans: 3;
    widows: 3;
  }
}
