:root {
  --blue: #0b67f6;
  --blue-dark: #0756d8;
  --blue-soft: #eef5ff;
  --text: #0b1020;
  --muted: #5b667c;
  --line: #e5eaf2;
  --content: 1180px;
  --footer-bg: #0c1220;
  --footer-bg-light: #1a2740;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

.container {
  width: min(var(--content), calc(100% - 44px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 8px 14px 8px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e6ebf3;
  box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
}
.nav .brand { justify-self: start; }
.nav > .btn { justify-self: end; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); text-decoration: none; }

.brand-mark {
  width: 32px;
  height: 28px;
  position: relative;
  color: var(--blue);
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 11px;
  height: 11px;
  border: 3px solid currentColor;
  transform: rotate(45deg);
}
.brand-mark::before { left: 2px; border-right: 0; border-top: 0; }
.brand-mark::after  { right: 2px; border-left: 0; border-bottom: 0; }
.brand-mark span {
  position: absolute;
  left: 14px;
  top: 2px;
  width: 3px;
  height: 24px;
  background: currentColor;
  border-radius: 99px;
  transform: rotate(18deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 18px;
  font-weight: 600;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 11px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(11, 103, 246, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(11, 103, 246, 0.14); text-decoration: none; }
.btn-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.legal-main {
  padding: 56px 0 72px;
  background: var(--blue-soft);
}

.legal-content {
  max-width: 820px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 18px 42px rgba(26, 52, 92, 0.06);
}

.legal-content h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.legal-meta {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 16px;
}

.legal-content h2 {
  margin: 36px 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.legal-content p { margin: 0 0 14px; }
.legal-content ul {
  margin: 0 0 14px;
  padding-left: 1.25em;
}
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text); }

.footer {
  margin: 0;
  width: 100%;
  background: linear-gradient(325deg, var(--footer-bg) 0%, #111a2d 46%, var(--footer-bg-light) 100%);
  color: #fff;
  padding: 48px 0 22px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 46px; }
.footer .brand { margin-bottom: 14px; color: #fff; text-decoration: none; }
.footer .brand:hover { color: #fff; text-decoration: none; }
.footer .brand-mark { color: #6aa6ff; }
.footer p { margin: 0; color: #9aa6bd; font-size: 16px; max-width: 280px; }
.footer h4 { margin: 0 0 14px; font-size: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #9aa6bd; font-size: 16px; }
.footer a { color: #9aa6bd; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer a[aria-current="page"] { color: #fff; }

.socials { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #2a354c;
  display: grid;
  place-items: center;
  color: #d7def0;
  background: #151c2c;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.social-link:hover {
  color: #fff;
  border-color: #4a7fd4;
  background: #1a2740;
  text-decoration: none;
}
.social-link--whatsapp:hover {
  border-color: #25d366;
  background: #123524;
  color: #fff;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid #243049;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8a93a4;
  font-size: 14px;
}
.legal { display: flex; gap: 24px; }

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.42), 0 6px 16px rgba(0, 0, 0, 0.14);
  background: #20bd5a;
  color: #fff;
  text-decoration: none;
}
.whatsapp-float svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--content)); }
  .topbar { padding: 12px 0; }
  .nav { min-height: 56px; border-radius: 14px; padding: 6px 10px 6px 14px; }
  .nav .btn { padding: 0 13px; min-height: 42px; font-size: 15px; }
  .legal-main { padding: 32px 0 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}
