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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  /* Instagram-like gradient covering the whole screen */
  background: linear-gradient(
    45deg,
    #feda75 0%,
    #fa7e1e 25%,
    #d62976 50%,
    #962fbf 75%,
    #4f5bd5 100%
  );
  background-attachment: fixed;
  background-size: cover;
}

a {
  color: inherit;
}

/* ---------- Landing page ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.logo {
  display: block;
  width: min(200px, 70vw);
  height: auto;
  margin: 0 auto 2.5rem;
}

.description {
  margin: 0;
  /* font-size: clamp(1.5rem, 4vw, 2.25rem);*/
  font-size: 1.8rem; /* Fixed font size for the description */
  font-weight: 300;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.footer {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  opacity: 0.9;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 1px;
}

.footer a:hover,
.footer a:focus-visible {
  opacity: 1;
  border-bottom-color: #fff;
}

/* ---------- Terms page ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.9;
}

.back:hover,
.back:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  color: #222;
  border-radius: 16px;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  line-height: 1.65;
}

.card h1 {
  margin-top: 0;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.card h2 {
  margin: 1.75rem 0 0.4rem;
  font-size: 1.15rem;
  color: #962fbf;
}

.card p,
.card li {
  margin: 0.4rem 0;
}

.card ul {
  padding-left: 1.25rem;
}

.card .updated {
  color: #666;
  font-size: 0.9rem;
}

/* Only the section matching the detected language is shown */
.terms > section {
  display: none;
}

html[data-lang="en"] .terms > section[lang="en"],
html[data-lang="pt"] .terms > section[lang="pt"],
html[data-lang="es"] .terms > section[lang="es"] {
  display: block;
}

.code-box {
  display: block;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  background: #f3f0f7;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  word-break: break-all;
  overflow-wrap: anywhere;
  user-select: all;
}
.code-box.empty { font-family: inherit; color: #666; user-select: auto; }
.integration-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.integration-main .card { width: 100%; max-width: 560px; }

.warning {
  margin: 0;
  font-size: 1rem; /* Fixed font size for the description */
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: 1rem;
  /* text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); */
}