* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

:root {
  --page-bg: #f3f1ea;
  --page-bg-soft: #f8f7f2;
  --paper: #fffefa;
  --paper-soft: #faf9f4;

  --hero-start: #0b1710;
  --hero-end: #11261a;

  --text: #1f2923;
  --text-soft: #59645d;
  --text-muted: #7d877f;

  --green: #27543b;
  --green-deep: #173b29;
  --green-soft: #dfe9e1;

  --lime: #95d874;
  --lime-soft: rgba(149, 216, 116, 0.14);

  --line: #dfe3dc;
  --line-strong: #cbd4cc;

  --page-width: 1180px;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(
      180deg,
      #ecefe8 0%,
      var(--page-bg) 220px,
      var(--page-bg-soft) 100%
    );
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.9);
  border-bottom: 1px solid rgba(46, 71, 56, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(100%, 1080px);
  min-height: 72px;
  margin: 0 auto;
  padding:
    max(14px, env(safe-area-inset-top))
    28px
    14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.home-link {
  color: var(--green-deep);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.home-link:hover {
  color: #4a7a59;
  transform: translateX(-2px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  color: #59645d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  transition: right 0.22s ease;
}

.desktop-nav a:hover {
  color: var(--green-deep);
}

.desktop-nav a:hover::after {
  right: 0;
}

.lang-switcher {
  display: flex;
  gap: 7px;
  justify-self: end;
}

.lang-switcher button {
  min-width: 38px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #d5dbd4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: #667168;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}


.lang-switcher button:hover {
  border-color: #789d82;
  background: #315c42;
  color: #ffffff;
  transform: translateY(-1px);
}

.page {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding:
    56px
    24px
    max(100px, env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 44px 48px 42px;
  border: 1px solid rgba(169, 213, 179, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(161, 232, 137, 0.16),
      transparent 31%
    ),
    linear-gradient(
      135deg,
      var(--hero-start),
      var(--hero-end)
    );
  box-shadow:
    0 26px 70px rgba(31, 58, 39, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.hero::before {
  content: "TERMS & PRIVACY";
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 18px;
  color: #a9ea8e;
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.hero::after {
  content: "";
  position: absolute;
  right: 44px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(189, 239, 170, 0.12);
  box-shadow:
    0 0 0 42px rgba(169, 233, 148, 0.04),
    0 0 0 84px rgba(169, 233, 148, 0.02);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 0 18px;
  color: #f5f8f5;
  font-size: clamp(2.25rem, 4.4vw, 3.8rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero p {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0;
  color: #bec9c1;
  font-size: 13px;
  line-height: 1.76;
}

.updated {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 21px;
  padding: 8px 12px;
  border: 1px solid rgba(171, 231, 151, 0.22);
  border-radius: 999px;
  background: rgba(161, 229, 139, 0.08);
  color: #d0ddd2;
  font-family: "Roboto Mono", monospace;
  font-size: 9px;
}

.updated::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9cdf7e;
  box-shadow: 0 0 12px rgba(156, 223, 126, 0.4);
}

.legal-grid {
  display: grid;
  gap: 14px;
}

.legal-section {
  position: relative;
  overflow: hidden;
  padding: 32px 38px 34px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(
      135deg,
      var(--paper) 0%,
      var(--paper-soft) 100%
    );
  box-shadow:
    0 10px 28px rgba(50, 64, 54, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.legal-section::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #d6e4d8;
  transition: background 0.2s ease;
}

.legal-section:hover {
  border-color: #c9d5cb;
  box-shadow:
    0 14px 36px rgba(43, 62, 49, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.legal-section:hover::before {
  background: #74a980;
}

.legal-section h2 {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.legal-section p,
.legal-section li {
  max-width: 900px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.82;
}

.legal-section p {
  margin: 0 0 13px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 12px 0 4px;
  padding-left: 22px;
}

.legal-section li {
  margin-bottom: 8px;
  padding-left: 3px;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-section li::marker {
  color: #5f956c;
}

.confidentiality {
  border-color: #bfd5c4;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(119, 179, 127, 0.13),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #f8fcf7,
      #edf5ed
    );
}

.confidentiality::before {
  background: #4f8b5c;
}

.confidentiality h2 {
  color: #245a36;
}

.confidentiality-note {
  max-width: 900px;
  margin-top: 19px;
  padding: 16px 18px;
  border: 1px solid #c7dbc9;
  border-left: 4px solid #4d8d5b;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  color: #405747;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
}

.contact-box {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 30px 34px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(
      135deg,
      var(--paper) 0%,
      var(--paper-soft) 100%
    );
  box-shadow:
    0 10px 28px rgba(50, 64, 54, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contact-box::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #4f8b5c;
}

.contact-box h2 {
  max-width: 720px;
  margin: 0 0 9px;
  color: var(--green-deep);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
}

.contact-box p {
  max-width: 690px;
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.72;
}

.contact-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 0 18px;
  border: 1px solid #376845;
  border-radius: 9px;
  background: #315c42;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-box a:hover {
  border-color: #244f35;
  background: #244f35;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(43, 87, 56, 0.14);
}
footer {
  position: relative;
  height: 74px !important;
  min-height: 74px !important;
  padding: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #080a09;
  color: #ffffff;
}

.footer-ticker {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025em;
  color: #ffffff;
}

.footer-ticker-text {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  animation: footerTicker 40s linear infinite;
}

.footer-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #ffffff;
}

.footer-copy a,
.footer-copy a:visited {
  color: #ffffff;
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

@keyframes footerTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: 64px;
    padding:
      max(12px, env(safe-area-inset-top))
      14px
      12px;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .desktop-nav {
    display: none;
  }

  .lang-switcher {
    margin-left: auto;
  }

  .page {
    padding:
      26px
      12px
      max(42px, env(safe-area-inset-bottom));
  }

  .hero {
    margin-bottom: 18px;
    padding: 29px 20px 28px;
    border-radius: 18px;
  }

  .hero::before {
    margin-bottom: 13px;
    font-size: 8px;
  }

  .hero::after {
    right: -80px;
    bottom: -110px;
    width: 250px;
    height: 250px;
  }

  .hero h1 {
    max-width: none;
    margin-bottom: 15px;
    font-size: clamp(2rem, 9.5vw, 2.65rem);
    line-height: 1.04;
  }

  .hero p {
    font-size: 12px;
    line-height: 1.7;
  }

  .updated {
    margin-top: 17px;
    font-size: 8px;
  }

  .legal-grid {
    gap: 10px;
  }

  .legal-section {
    padding: 24px 19px 25px;
    border-radius: 14px;
  }

  .legal-section::before {
    top: 20px;
    bottom: 20px;
  }

  .legal-section h2 {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .legal-section p,
  .legal-section li {
    max-width: none;
    font-size: 12px;
    line-height: 1.76;
  }

  .legal-section ul {
    padding-left: 18px;
  }

  .confidentiality-note {
    padding: 14px 15px;
    font-size: 11px;
  }

  .contact-box {
    margin-top: 18px;
    padding: 25px 19px;
    border-radius: 15px;
  }

  .contact-box h2 {
    font-size: 18px;
  }

  .contact-box p {
    font-size: 12px;
  }

  .contact-box a {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .home-link {
    font-size: 12px;
  }

  .lang-switcher button {
    min-width: 34px;
    padding: 0 7px;
    font-size: 10px;
  }

  .hero {
    padding: 25px 17px;
  }

  .legal-section {
    padding: 22px 16px 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
.topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  border-bottom: 1px solid rgba(184, 255, 53, 0.08);
  background:
    linear-gradient(
      180deg,
      rgba(6, 9, 8, 0.97) 0%,
      rgba(9, 13, 11, 0.93) 100%
    );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(980px, 72vw);
  height: 1px;
  transform: translateX(-50%);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(184, 255, 53, 0.18) 25%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(184, 255, 53, 0.18) 75%,
      transparent
    );
  pointer-events: none;
}

.topbar-inner {
  width: min(100%, 1180px);
  min-height: 76px;
}

.home-link {
  color: rgba(255, 255, 255, 0.72) !important;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em !important;
  text-shadow: none !important;
}

.home-link::before,
.home-link::after {
  content: none !important;
  display: none !important;
}

.home-link:hover {
  color: #b8ff2c !important;
}

.desktop-nav {
  gap: 34px;
}

.desktop-nav a {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #ffffff;
}

.desktop-nav a:hover {
  color: #ffffff;
}

.desktop-nav a::after {
  background: #b8ff35;
}

.lang-switcher button {
  min-width: 36px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(243, 245, 239, 0.66);
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
}

.lang-switcher button.active {
  border-color: #b8ff35;
  background: #b8ff35;
  color: #0a0d0b;
}

.lang-switcher button:hover {
  border-color: #b8ff35;
  background: #b8ff35;
  color: #0a0d0b;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  padding-top: 72px !important;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(
      180deg,
      #ecefe8 0%,
      var(--page-bg) 220px,
      var(--page-bg-soft) 100%
    );
}

.mobile-menu-button,
.mobile-menu {
  display: none;
}

@media (max-width: 760px) {
  header.topbar .topbar-inner {
    min-height: 64px !important;
    padding:
      max(12px, env(safe-area-inset-top))
      14px
      12px !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    gap: 14px !important;
  }

  header.topbar .home-link {
    display: none !important;
  }

  header.topbar .mobile-menu-button {
    display: flex !important;
    width: 36px;
    height: 36px;
    padding: 7px;
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin: 0 !important;
    border: 1px solid rgba(146, 185, 157, 0.28);
    border-radius: 10px;
    background: rgba(15, 24, 19, 0.74);
    cursor: pointer;
  }

  header.topbar .mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
  }

  header.topbar .desktop-nav {
    display: none !important;
  }

  header.topbar .lang-switcher {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    margin: 0 !important;
  }

  .mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99998;
    display: none;
    padding: 12px 14px 18px;
    background: rgba(7, 11, 9, 0.97);
    border-bottom: 1px solid rgba(184, 255, 53, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu-nav {
    display: grid;
    gap: 4px;
  }

  .mobile-menu-nav a {
    padding: 13px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    text-decoration: none;
  }

  .mobile-menu-nav a:hover,
  .mobile-menu-nav a.active {
    background: rgba(167, 255, 106, 0.1);
    color: #b8ff2c;
  }
}
.terms-frame {
  position: absolute;
  top: 94px;
  left: 18px;
  right: 18px;
  bottom: auto;
  height: calc(100% - 112px);
  z-index: 2;
  pointer-events: none;
}

.terms-frame::before,
.terms-frame::after {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 48px;
  width: 1px;
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(74, 124, 86, 0.5) 12%,
      rgba(74, 124, 86, 0.22) 50%,
      rgba(74, 124, 86, 0.5) 88%,
      transparent 100%
    );
}

.terms-frame::before {
  left: 0;
}

.terms-frame::after {
  right: 0;
}

.terms-frame__top-left,
.terms-frame__top-right,
.terms-frame__bottom-left,
.terms-frame__bottom-right {
  position: absolute;
  width: 27%;
  height: 54px;
}

.terms-frame__top-left {
  top: 0;
  left: 0;
  border-top: 1px solid rgba(39, 84, 59, 0.24);
  border-left: 1px solid rgba(39, 84, 59, 0.28);
  border-radius: 18px 0 0 0;
}

.terms-frame__top-right {
  top: 0;
  right: 0;
  border-top: 1px solid rgba(39, 84, 59, 0.24);
  border-right: 1px solid rgba(39, 84, 59, 0.28);
  border-radius: 0 18px 0 0;
}

.terms-frame__bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid rgba(39, 84, 59, 0.24);
  border-left: 1px solid rgba(39, 84, 59, 0.28);
  border-radius: 0 0 0 18px;
}

.terms-frame__bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid rgba(39, 84, 59, 0.24);
  border-right: 1px solid rgba(39, 84, 59, 0.28);
  border-radius: 0 0 18px 0;
}

.terms-frame__top-left::after,
.terms-frame__bottom-left::after {
  content: "";
  position: absolute;
  left: 58px;
  width: 54px;
  height: 1px;
  background: rgba(105, 170, 118, 0.7);
}

.terms-frame__top-left::after {
  top: -1px;
}

.terms-frame__bottom-left::after {
  bottom: -1px;
}

.terms-frame__top-right::after,
.terms-frame__bottom-right::after {
  content: "";
  position: absolute;
  right: 58px;
  width: 54px;
  height: 1px;
  background: rgba(105, 170, 118, 0.7);
}

.terms-frame__top-right::after {
  top: -1px;
}

.terms-frame__bottom-right::after {
  bottom: -1px;
}

.page,
footer {
  position: relative;
  z-index: 3;
}

@media (max-width: 760px) {
  .terms-frame {
    top: 82px;
    left: 8px;
    right: 8px;
    bottom: auto;
    height: calc(100% - 92px);
  }

  .terms-frame__top-left,
  .terms-frame__top-right,
  .terms-frame__bottom-left,
  .terms-frame__bottom-right {
    width: 42%;
    height: 36px;
  }

  .terms-frame::before,
  .terms-frame::after {
    top: 32px;
    bottom: 32px;
  }

  .terms-frame__top-left::after,
  .terms-frame__bottom-left::after,
  .terms-frame__top-right::after,
  .terms-frame__bottom-right::after {
    width: 36px;
  }

  .terms-frame__top-left::after,
  .terms-frame__bottom-left::after {
    left: 36px;
  }

  .terms-frame__top-right::after,
  .terms-frame__bottom-right::after {
    right: 36px;
  }
}

.page,
.page button,
.page a,
.page p,
.page li,
.page h1,
.page h2,
.contact-box {
  font-family: "Manrope", sans-serif;
}

.hero::before,
.updated {
  font-family: "Roboto Mono", monospace;
}

.terms-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #eef0eb;
}

.terms-background__layer {
  position: absolute;
  inset: -8%;
  opacity: 0;
  background-position:
    center
    calc(50% + var(--terms-bg-y, 0px));
  background-repeat: no-repeat;
  background-size: cover;
filter:
  saturate(0.92)
  contrast(1.08)
  brightness(1.04);
  transform: scale(1.08);
  transition:
    opacity 4.5s ease-in-out,
    background-position 0.16s linear;
  will-change:
    opacity,
    background-position;
}

.terms-background__layer.is-active {
  opacity: 1;
}

.terms-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(247, 246, 241, 0.07) 0%,
      rgba(247, 246, 241, 0.05) 35%,
      rgba(247, 246, 241, 0.08) 70%,
      rgba(247, 246, 241, 0.14) 100%
    );
}

.page,
footer {
  position: relative;
  z-index: 3;
}

.terms-frame {
  z-index: 2;
}

@media (max-width: 760px) {
  .terms-background__layer {
    inset: -6%;
    background-position:
      center
      calc(50% + var(--terms-bg-y, 0px));
    transform: scale(1.1);
  }

  .terms-background__layer.is-active {
    opacity: 0.72;
  }

  .terms-background::after {
    background:
      rgba(247, 246, 241, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-background__layer {
    transform: scale(1.08);
    transition: opacity 1s ease;
  }
}
