/**
 * Shared styling for the Flagship Ads sub-pages:
 * privacy-policy.html, terms-and-conditions.html and thank-you.html.
 *
 * Tokens mirror the signup page so every screen feels like one product.
 */

:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --bg-3: #111827;
  --card: #132037;
  --card-2: #152033;
  --meta: #1877f2;
  --meta-deep: #0d65d9;
  --meta-mid: #4b9bff;
  --meta-soft: #7bb3ff;
  --text: #f1f5f9;
  --muted: #cbd5e1;
  --muted-soft: #94a3b8;
  --success: #4ade80;
  --danger: #f87171;
  --whatsapp: #25d366;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 85% at 82% -10%, rgba(24, 119, 242, 0.16), transparent 58%),
    radial-gradient(90% 70% at 8% 105%, rgba(13, 101, 217, 0.14), transparent 62%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgba(24, 119, 242, 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid rgba(24, 119, 242, 0.65);
  outline-offset: 3px;
}

button { font: inherit; color: inherit; }

/* ---------- top bar ---------- */

.site-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(24, 119, 242, 0.14);
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.8125rem clamp(1.25rem, 4vw, 3rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  display: block;
  height: 2rem;
  width: auto;
}

.bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  border: 1px solid rgba(24, 119, 242, 0.28);
  border-radius: 9999px;
  background: rgba(19, 32, 55, 0.85);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.bar-link:hover {
  border-color: rgba(24, 119, 242, 0.6);
  background: rgba(24, 119, 242, 0.14);
  color: var(--text);
}

.bar-link svg { width: 0.9375rem; height: 0.9375rem; }

/* ---------- page frame ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(24, 119, 242, 0.25);
  border-radius: 9999px;
  background: rgba(19, 32, 55, 0.85);
  padding: 0.4375rem 0.9375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta-mid);
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.12);
}

.badge svg { width: 0.875rem; height: 0.875rem; }

.page-title {
  margin: 1.25rem 0 0;
  max-width: 18ch;
  font-size: clamp(2rem, 3vw + 1rem, 3.125rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-title em { font-style: normal; color: var(--meta-mid); }

.page-lede {
  margin: 1.125rem 0 0;
  max-width: 58ch;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--muted);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  border: 1px solid rgba(241, 245, 249, 0.08);
  border-radius: 9999px;
  background: rgba(19, 32, 55, 0.7);
  padding: 0.4375rem 0.8125rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-soft);
}

.meta-chip svg { width: 0.875rem; height: 0.875rem; color: var(--meta-mid); }

/* ---------- legal layout ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(241, 245, 249, 0.07);
}

@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr); }
}

.toc {
  align-self: start;
  border: 1px solid rgba(24, 119, 242, 0.14);
  border-radius: 1.25rem;
  background: rgba(19, 32, 55, 0.6);
  padding: 1.25rem;
}

@media (min-width: 1024px) {
  .toc { position: sticky; top: 5.5rem; }
}

.toc__title {
  margin: 0 0 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.toc ol {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc a {
  display: flex;
  gap: 0.625rem;
  border-radius: 0.625rem;
  padding: 0.4375rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted-soft);
  text-decoration: none;
  counter-increment: toc;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.toc a::before {
  content: counter(toc);
  flex: 0 0 1.125rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(75, 155, 255, 0.65);
}

.toc a:hover { background: rgba(24, 119, 242, 0.1); color: var(--text); }

/* ---------- legal content ---------- */

.legal-content { min-width: 0; }

.legal-section {
  scroll-margin-top: 5.5rem;
  padding-top: 2rem;
}

.legal-section:first-child { padding-top: 0; }

.legal-section + .legal-section { border-top: 1px solid rgba(241, 245, 249, 0.06); }

.legal-h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.875rem;
  font-size: clamp(1.125rem, 1vw + 0.85rem, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal-h2 span {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(75, 155, 255, 0.7);
}

.legal-h3 {
  margin: 1.5rem 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--meta-soft);
}

.legal-content p {
  margin: 0 0 1rem;
  max-width: 72ch;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--muted);
}

.legal-content p:last-child { margin-bottom: 0; }

.legal-content a {
  color: var(--meta-mid);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(75, 155, 255, 0.35);
}

.legal-content a:hover { color: var(--meta-soft); border-bottom-color: currentColor; }

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 0.6875rem;
  margin: 0 0 1rem;
  padding: 0;
  max-width: 72ch;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.72;
  color: var(--muted);
}

.legal-list li::before {
  content: "";
  position: absolute;
  top: 0.6875rem;
  left: 0.25rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--meta);
}

.legal-list strong { color: var(--text); font-weight: 700; }

.callout {
  display: flex;
  gap: 0.875rem;
  margin: 1.25rem 0;
  border: 1px solid rgba(24, 119, 242, 0.22);
  border-radius: 1.125rem;
  background: rgba(13, 101, 217, 0.1);
  padding: 1rem 1.125rem;
}

.callout svg {
  flex: 0 0 auto;
  width: 1.0625rem;
  height: 1.0625rem;
  margin-top: 0.1875rem;
  color: var(--meta-mid);
}

.callout p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid rgba(24, 119, 242, 0.14);
  border-radius: 1.25rem;
  background: rgba(19, 32, 55, 0.7);
  padding: 1.25rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-row svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: var(--meta-mid);
}

.contact-row a { color: var(--text); text-decoration: none; border-bottom: 0; }
.contact-row a:hover { color: var(--meta-mid); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid rgba(241, 245, 249, 0.07);
  background: rgba(7, 11, 20, 0.6);
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  max-width: 74rem;
  margin: 0 auto;
}

.foot-copy {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.75);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1.125rem;
}

.foot-links a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot-links a:hover { color: var(--meta-mid); }

/* ---------- thank you ---------- */

.thanks {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.thanks-card {
  width: 100%;
  max-width: 34rem;
  border: 1px solid rgba(24, 119, 242, 0.16);
  border-radius: 1.75rem;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(24, 119, 242, 0.16), transparent 62%),
    rgba(11, 18, 32, 0.86);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 28px 70px rgba(3, 7, 18, 0.6);
  animation: cardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 9999px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
  animation: popIn 0.55s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success-icon svg { width: 1.75rem; height: 1.75rem; }

@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.thanks-title {
  margin: 1.375rem 0 0;
  font-size: clamp(1.75rem, 2.4vw + 0.7rem, 2.35rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.thanks-sub {
  margin: 0.875rem 0 0;
  max-width: 42ch;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--muted);
}

.summary-card {
  margin-top: 1.75rem;
  border: 1px solid rgba(24, 119, 242, 0.14);
  border-radius: 1.25rem;
  background: rgba(19, 32, 55, 0.7);
  padding: 1.125rem 1.25rem;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
}

.summary-row + .summary-row { border-top: 1px solid rgba(241, 245, 249, 0.06); }
.summary-row dt { font-weight: 600; color: var(--muted-soft); }

.summary-row dd {
  margin: 0;
  overflow: hidden;
  font-weight: 700;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 1.0625rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: nextstep;
}

.next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  counter-increment: nextstep;
}

.next-steps li::before {
  content: counter(nextstep);
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 1px solid rgba(24, 119, 242, 0.28);
  border-radius: 9999px;
  background: rgba(13, 101, 217, 0.16);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--meta-mid);
}

.next-steps__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.next-steps__desc {
  display: block;
  margin-top: 0.1875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted-soft);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 1.75rem;
  border: 0;
  border-radius: 9999px;
  background: var(--whatsapp);
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #052e16;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.24);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-whatsapp:hover { background: #2ee06f; transform: scale(1.02); }
.btn-whatsapp:active { transform: scale(0.97); }
.btn-whatsapp svg { width: 1.25rem; height: 1.25rem; }

.thanks-note {
  margin: 1.125rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.85);
}

.btn-ghost {
  display: block;
  width: 100%;
  margin-top: 0.875rem;
  padding: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-soft);
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-ghost:hover { color: var(--meta-mid); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
