.analytics-settings-button {
  appearance: none;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.analytics-settings-button:hover {
  text-decoration-color: currentColor;
}

.site-legal-links,
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-legal-links a,
.site-legal-links button,
.footer-legal-links a,
.footer-legal-links button {
  color: inherit;
  font-size: inherit;
}

.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: grid;
  width: min(620px, calc(100vw - 48px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: calc(100dvh - max(48px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #071923;
  color: #fff;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(2, 15, 21, 0.3);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  overflow-y: auto;
}

.analytics-consent__copy strong {
  display: block;
  font-family: "Inter Tight", "Inter", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.analytics-consent__copy p {
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.analytics-consent__copy a {
  color: #9fd58c;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent__actions {
  display: grid;
  min-width: 168px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.analytics-consent__actions button {
  min-height: 44px;
  border: 1px solid #9fd58c;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 16px;
}

.analytics-consent__actions button:hover {
  background: #9fd58c;
  color: #071923;
}

.analytics-consent__actions .analytics-consent__close {
  min-height: 44px;
  grid-column: 1 / -1;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.analytics-settings-button:focus-visible {
  outline: 2px solid #45642e;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #fff;
}

.analytics-consent:focus-visible,
.analytics-consent a:focus-visible,
.analytics-consent button:focus-visible,
footer .analytics-settings-button:focus-visible {
  outline: 2px solid #9fd58c;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #071923;
}

.privacy-hero {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0e1a2b;
  color: #fff;
  padding: 76px 0 82px;
}

.privacy-hero h1 {
  margin: 0;
}

.privacy-hero p:last-child {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.7;
}

.privacy-main {
  padding: 78px 0 100px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(48px, 8vw, 120px);
}

.privacy-summary {
  align-self: start;
  border-top: 1px solid #0e1a2b;
  padding-top: 20px;
  color: #626e7d;
  font-size: 12px;
  line-height: 1.75;
}

.privacy-summary strong {
  display: block;
  margin-bottom: 8px;
  color: #0e1a2b;
}

.privacy-copy section + section {
  border-top: 1px solid #deddd7;
  margin-top: 42px;
  padding-top: 42px;
}

.privacy-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.privacy-copy p,
.privacy-copy li {
  color: #4f5c6a;
  font-size: 14px;
  line-height: 1.8;
}

.privacy-copy a {
  color: #45642e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .analytics-consent {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .analytics-consent__actions {
    min-width: 0;
  }

  .site-legal-links,
  .footer-legal-links {
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-height: 560px) {
  .analytics-consent {
    bottom: max(8px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    gap: 16px;
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    padding: 18px;
  }

  .analytics-consent__actions {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent,
  .analytics-consent * {
    scroll-behavior: auto;
    transition: none !important;
  }
}
