.privacy-consent[hidden] {
  display: none !important;
}

.privacy-consent {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 260;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  width: min(760px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(198, 255, 46, 0.28);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(13, 20, 22, 0.98), rgba(5, 8, 11, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 44px rgba(198, 255, 46, 0.08);
  color: #f4f6f4;
  font-family: Manrope, Arial, sans-serif;
}

.privacy-consent__copy {
  display: grid;
  gap: 8px;
}

.privacy-consent__copy strong {
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 20px;
}

.privacy-consent__copy p {
  max-width: 580px;
  margin: 0;
  color: rgba(244, 246, 244, 0.68);
  font-size: 13px;
  line-height: 1.6;
}

.privacy-consent__copy .privacy-consent__status {
  color: rgba(24, 229, 255, 0.82);
  font-size: 12px;
}

.privacy-consent__copy a,
.privacy-legal-link,
.privacy-form-consent a,
.privacy-footer-links a,
.legal-document a {
  color: #c8ff2e;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.privacy-consent__copy a {
  justify-self: start;
  font-size: 13px;
  font-weight: 800;
}

.privacy-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: center;
}

.privacy-consent__button,
.privacy-consent__close,
.cookie-settings-button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f6f4;
  cursor: pointer;
  padding: 0 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.privacy-consent__button.is-primary {
  border-color: #c8ff2e;
  background: #c8ff2e;
  color: #071008;
}

.privacy-consent__button:hover,
.privacy-consent__button:focus-visible,
.privacy-consent__close:hover,
.privacy-consent__close:focus-visible,
.cookie-settings-button:hover,
.cookie-settings-button:focus-visible {
  outline: 2px solid #18e5ff;
  outline-offset: 2px;
}

.privacy-consent__close {
  grid-column: 1 / -1;
}

.privacy-form-consent {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px !important;
  align-items: start;
  margin: 0;
  color: rgba(244, 246, 244, 0.68);
  font-size: 12px;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: normal;
}

.privacy-form-consent input[type="checkbox"] {
  width: 18px !important;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #c8ff2e;
}

.privacy-form-consent span {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
}

.privacy-form-consent.is-invalid,
.privacy-form-consent:has(input[aria-invalid="true"]) {
  color: #ff9d77;
}

.privacy-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  max-width: 560px;
  font-size: 12px;
  line-height: 1.45;
}

.privacy-footer-links .cookie-settings-button {
  min-height: auto;
  border: 0;
  background: none;
  color: #c8ff2e;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  min-height: 100vh;
}

.legal-page .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 8, 0.94);
}

.legal-page .nav {
  justify-content: flex-end;
}

.legal-main {
  width: min(calc(100% - 40px), 1120px);
  margin-inline: auto;
  padding: calc(var(--header-h) + 72px) 0 110px;
}

.legal-hero {
  max-width: 900px;
  padding-bottom: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(244, 246, 244, 0.66);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.75;
}

.legal-hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-document {
  display: grid;
  gap: 0;
  counter-reset: legal-section;
}

.legal-document section {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 90px);
  padding: 52px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  counter-increment: legal-section;
}

.legal-document h2 {
  position: sticky;
  top: 96px;
  align-self: start;
  margin: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.14;
}

.legal-document h2::before {
  content: counter(legal-section, decimal-leading-zero) " / ";
  display: block;
  margin-bottom: 12px;
  color: #c8ff2e;
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.legal-copy {
  max-width: 760px;
  color: rgba(244, 246, 244, 0.75);
  line-height: 1.78;
}

.legal-copy p:first-child {
  margin-top: 0;
}

.legal-copy p:last-child,
.legal-copy ul:last-child {
  margin-bottom: 0;
}

.legal-copy ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.legal-placeholder {
  padding: 18px 20px;
  border-left: 2px solid #ff6b2a;
  background: rgba(255, 107, 42, 0.07);
  color: rgba(244, 246, 244, 0.82);
}

.legal-note {
  padding: 18px 20px;
  border-left: 2px solid #18e5ff;
  background: rgba(24, 229, 255, 0.06);
}

.legal-page .site-footer {
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .privacy-consent {
    grid-template-columns: 1fr;
  }

  .legal-page .site-header {
    grid-template-columns: auto 1fr;
  }

  .legal-page .site-header .nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
  }

  .legal-document section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .legal-document h2 {
    position: static;
  }
}

@media (max-width: 620px) {
  .privacy-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 18px;
  }

  .privacy-consent__actions {
    grid-template-columns: 1fr;
  }

  .privacy-consent__close {
    grid-column: auto;
  }

  .legal-page .site-header .nav a:not(:last-child) {
    display: none;
  }

  .legal-main {
    width: min(calc(100% - 32px), 1120px);
    padding-top: calc(var(--header-h) + 48px);
  }

  .legal-hero {
    padding-bottom: 42px;
  }

  .legal-document section {
    padding: 38px 0;
  }

  .legal-page .site-footer {
    align-items: flex-start;
  }

  .privacy-footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-consent *,
  .privacy-consent *::before,
  .privacy-consent *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
