:root {
  --ink: #10283f;
  --ink-soft: #5f7182;
  --surface: #f4f8fb;
  --surface-strong: #ffffff;
  --surface-soft: #e5f0f8;
  --line: #d8e3ec;
  --line-strong: #c3d3e0;
  --brand: #0a4174;
  --brand-strong: #062f55;
  --accent: #f2b84b;
  --accent-soft: #eef5fb;
  --shadow: 0 14px 30px rgba(10, 65, 116, 0.09);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fcff 0%, #f4f8fb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(10, 65, 116, 0.28);
  outline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3,
.brand-copy strong {
  letter-spacing: -0.02em;
}

.site-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  min-height: 100vh;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 2px solid var(--brand-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark-muted {
  border-color: var(--line-strong);
}

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

.brand-copy strong {
  font-size: 24px;
  line-height: 1;
}

.brand-copy span {
  color: var(--ink-soft);
  font-size: 13px;
}

.legal-link-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-link-grid a:hover,
.contact-card a:hover {
  color: var(--brand);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand);
  color: #f9f7f3;
  box-shadow: 0 18px 32px rgba(10, 65, 116, 0.12);
}

.button-primary:hover {
  background: var(--brand-strong);
}

.button-secondary {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  color: var(--brand);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.direction-hero {
  min-height: calc(100vh - 24px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 28px 0 64px;
}

.hero-topbar {
  width: min(100%, 960px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.direction-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.direction-brand-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.direction-brand-copy strong {
  font-size: 28px;
  line-height: 1;
}

.direction-brand-copy span,
.direction-note,
.summary-card p,
.footer-status,
.footer-copyright,
.footer-column a {
  color: var(--ink-soft);
}

.direction-copy {
  display: grid;
  gap: 16px;
  justify-items: center;
  margin-top: 84px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.language-option {
  min-width: 46px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 160ms ease;
}

.language-option:hover {
  color: var(--brand);
}

.language-option.is-active {
  background: var(--brand);
  color: #f4f8fb;
}

.direction-copy h1 {
  max-width: 18ch;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.95;
  color: var(--ink);
  font-weight: 800;
}

.direction-copy h1 span {
  display: block;
}

.direction-copy h1 span:first-child {
  white-space: nowrap;
}

body[data-language="pt"] .direction-copy h1,
body[data-language="es"] .direction-copy h1 {
  width: min(100%, 15ch);
  max-width: none;
  display: grid;
  justify-items: center;
  text-align: center;
  text-wrap: balance;
}

body[data-language="pt"] .direction-copy h1 span,
body[data-language="es"] .direction-copy h1 span {
  width: fit-content;
  max-width: 100%;
}

body[data-language="pt"] .direction-copy h1 span:first-child,
body[data-language="es"] .direction-copy h1 span:first-child {
  white-space: normal;
}

.lead {
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 18px;
}

.launch-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.direction-release-note {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 13px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 212px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.store-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 34px rgba(10, 65, 116, 0.12);
}

.store-button:focus-visible {
  border-color: var(--brand);
}

.store-button strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.store-button small {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
}

.store-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.store-icon svg {
  width: 18px;
  height: 18px;
}

.store-icon-appstore svg {
  width: 18px;
  height: 18px;
  fill: var(--brand);
  display: block;
  transform: translate(-0.85px, -0.1px);
}

.store-icon-play img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  object-position: center;
  margin: 0 0 0 0.9px;
}

.direction-note {
  margin-top: 18px;
  max-width: 58ch;
  font-size: 14px;
}

.direction-note a,
.footer-column a:hover {
  color: var(--brand);
}

.direction-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: -24px 0 0;
  padding-bottom: 20px;
}

.summary-card {
  min-height: 164px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.summary-label,
.footer-heading {
  display: block;
  margin-bottom: 10px;
  color: #f4efe6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-label {
  color: var(--brand);
}

.direction-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 44px;
}

.fact-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(10, 65, 116, 0.06);
}

.direction-footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 12px -18px 24px;
  padding: 34px 32px 24px;
  border-radius: 28px;
  background: var(--brand-strong);
  box-shadow: 0 18px 32px rgba(6, 47, 85, 0.16);
}

.footer-brand {
  align-items: flex-start;
}

.footer-brand .brand-mark {
  flex-shrink: 0;
}

.footer-brand-column {
  display: grid;
  gap: 18px;
}

.footer-brand .direction-brand-copy strong,
.footer-brand .direction-brand-copy span,
.footer-column a,
.footer-status,
.footer-copyright {
  color: #f4f8fb;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-column a {
  font-size: 15px;
}

.footer-copyright {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: rgba(244, 248, 251, 0.72);
  font-size: 14px;
}

.legal-prose ul,
.legal-prose ol {
  margin: 16px 0 0;
  padding-left: 18px;
}

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

.legal-shell {
  min-height: 100vh;
  width: min(calc(100% - 32px), 980px);
  margin: 0 auto;
  padding: 24px 0 36px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.legal-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.legal-main {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.legal-header .brand-mark {
  width: 68px;
  height: 68px;
  padding: 7px;
  border-radius: 20px;
}

.legal-page-intro {
  display: grid;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.legal-page-intro h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
}

.legal-prose {
  padding-top: 24px;
}

.legal-prose h1,
.legal-prose h2,
.legal-prose h3 {
  margin-top: 26px;
  margin-bottom: 10px;
  line-height: 1.15;
}

.legal-prose h1:first-child,
.legal-prose h2:first-child,
.legal-prose h3:first-child {
  margin-top: 0;
}

.legal-prose p,
.legal-prose li {
  color: var(--ink);
}

.legal-prose p + p {
  margin-top: 12px;
}

.legal-prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

.legal-loading,
.legal-error {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .direction-summary,
  .direction-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero-topbar,
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .direction-footer,
  .legal-main {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .site-shell,
  .legal-shell {
    width: min(calc(100% - 20px), var(--content-width));
  }

  .direction-copy {
    margin-top: 56px;
    width: 100%;
  }

  .direction-copy h1 {
    width: min(100%, 10.1ch);
    max-width: none;
    font-size: clamp(2.7rem, 13.6vw, 3.35rem);
    display: grid;
    justify-items: center;
    text-align: center;
    text-wrap: balance;
  }

  .direction-copy h1 span {
    width: fit-content;
    max-width: 100%;
  }

  .direction-copy h1 span:first-child {
    white-space: normal;
  }

  .brand-mark {
    width: 68px;
    height: 68px;
    padding: 7px;
    border-radius: 20px;
  }

  .direction-footer {
    margin-left: -10px;
    margin-right: -10px;
  }

  .store-button,
  .button,
  .legal-link-grid a,
  .language-switcher {
    width: 100%;
  }

  .store-actions,
  .legal-link-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .language-switcher {
    justify-content: space-between;
  }

  .language-option {
    flex: 1 1 0;
  }
}
