:root {
  --ink: #111827;
  --muted: #5b6472;
  --paper: #fbf7ec;
  --white: #ffffff;
  --line: #dde5e2;
  --brand: #0f766e;
  --brand-dark: #123f3b;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  --page-grid:
    linear-gradient(rgba(129, 112, 84, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 112, 84, 0.08) 1px, transparent 1px);
  --page-grid-size: 24px 24px, 24px 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-grid), var(--paper);
  background-size: var(--page-grid-size), auto;
  color: var(--ink);
  line-height: 1.7;
  padding-top: 76px;
}

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

.container {
  width: min(1140px, calc(100% - 40px));
  margin: auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #dbe7e3;
  backdrop-filter: blur(16px);
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 76px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  display: block;
  width: 178px;
  max-width: 46vw;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: #354052;
  font-size: 15px;
  font-weight: 800;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(6, 182, 212, 0.76);
  border-radius: 999px;
  background: rgba(8, 13, 26, 0.9);
  color: #22d3ee;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.preview-link:hover,
.preview-link.active {
  border-color: #22d3ee;
  background: rgba(8, 17, 31, 0.98);
  color: #67e8f9;
  transform: translateY(-1px);
}

.whatsapp-float {
  position: fixed;
  right: calc(26px + env(safe-area-inset-right));
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white) !important;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.34);
}

.whatsapp-float svg {
  display: block;
  width: 34px;
  height: 34px;
}

.terms-section {
  padding: 70px 0 90px;
}

.terms-wrap {
  max-width: 900px;
}

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 8px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
}

.updated {
  margin-bottom: 34px;
  color: var(--muted);
  font-weight: 750;
}

.terms-content {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.terms-content h2 {
  margin: 28px 0 10px;
  color: var(--brand-dark);
  font-size: 22px;
  line-height: 1.25;
}

.terms-content h2:first-child {
  margin-top: 0;
}

.terms-content p {
  margin-bottom: 12px;
  color: #3f4a5a;
  font-size: 16px;
}

.terms-content a {
  color: var(--brand);
  font-weight: 800;
}

.site-footer {
  padding: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(15, 118, 110, 0.18), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.18), transparent 32%),
    #111827;
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 18px;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 58px;
  padding: 86px 0 72px;
}

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

.footer-column h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.2;
}

.footer-column h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: #8b5cf6;
}

.footer-column a,
.footer-column p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.45;
}

.footer-column a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover {
  color: #c4b5fd;
  transform: translateX(3px);
}

.footer-phone-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 0 0 34px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  flex-wrap: wrap;
}

.footer-phone-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 13, 26, 0.52);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.footer-phone-row a:hover {
  border-color: rgba(196, 181, 253, 0.58);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(15, 118, 110, 0.12)),
    rgba(8, 13, 26, 0.66);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 42px rgba(0, 0, 0, 0.24);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 13, 26, 0.5);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
}

.footer-bottom-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 750;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 750;
}

.footer-links a {
  color: var(--white);
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.76;
}

@media (max-width: 960px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), 1140px);
  }

  .navbar {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 16px 0;
  }

  .nav-links,
  .footer-links {
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .preview-link {
    min-height: 44px;
  }

  .whatsapp-float {
    right: calc(18px + env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 60px;
    height: 60px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 58px 0 44px;
  }

  .footer-column {
    gap: 14px;
  }

  .footer-phone-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom-row,
  .footer-links {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .terms-content {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 22px), 1140px);
  }

  .logo-img {
    width: 146px;
  }

  .nav-links {
    gap: 10px;
    font-size: 14px;
  }

  .preview-link,
  .footer-phone-row a {
    width: 100%;
  }

  .terms-section {
    padding: 46px 0 64px;
  }

  .terms-content {
    padding: 20px;
  }
}

img,
picture,
svg,
video {
  max-width: 100%;
  height: auto;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.terms-content,
.footer-column {
  min-width: 0;
}

.terms-content a,
.footer-phone-row a,
.footer-column a {
  max-width: 100%;
  overflow-wrap: anywhere;
}
