.footer-link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gray, #8a8f9e);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: var(--blue, #00c8ff);
  outline: none;
}

.cookie-consent {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3000;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(calc(100% + 24px));
  animation: cookieSlideUp 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) 0.18s forwards;
}

.cookie-consent-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(12, 15, 22, 0.96), rgba(4, 8, 12, 0.94)),
    linear-gradient(95deg, rgba(255, 255, 255, 0.055), rgba(0, 200, 255, 0.04));
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(120%);
  pointer-events: auto;
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translateY(calc(100% + 24px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-copy h2,
.cookie-modal h2 {
  margin: 4px 0 6px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0;
}

.cookie-copy p,
.cookie-modal p {
  max-width: 680px;
  margin: 0;
  color: rgba(196, 200, 212, 0.9);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-eyebrow {
  color: var(--blue, #00c8ff);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.cookie-policy-links a {
  color: var(--blue, #00c8ff);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-btn {
  min-height: 36px;
  border-radius: 6px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.cookie-btn-primary {
  border-color: var(--blue, #00c8ff);
  background: var(--blue, #00c8ff);
  color: #020409;
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.cookie-btn-ghost {
  background: transparent;
  color: rgba(196, 200, 212, 0.95);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 3010;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal-panel {
  width: min(620px, 100%);
  position: relative;
  padding: 28px;
  border: 1px solid rgba(0, 200, 255, 0.24);
  border-radius: 8px;
  background: rgba(10, 12, 18, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cookie-preference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.cookie-preference strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 14px;
}

.cookie-required {
  flex: 0 0 auto;
  color: var(--blue, #00c8ff);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-toggle-row {
  cursor: pointer;
}

.cookie-toggle {
  flex: 0 0 auto;
  position: relative;
  width: 50px;
  height: 28px;
}

.cookie-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.cookie-toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease;
}

.cookie-toggle span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked + span {
  background: var(--blue, #00c8ff);
}

.cookie-toggle input:checked + span::after {
  transform: translateX(22px);
}

.cookie-modal-actions {
  margin-top: 20px;
}

.legal-body {
  margin: 0;
  background: #060608;
  color: #fff;
  font-family: Inter, sans-serif;
}

.legal-body a {
  text-decoration: none;
}

.legal-body code {
  color: #fff;
  font-family: Consolas, 'Courier New', monospace;
}

.legal-main {
  padding: 132px 0 80px;
}

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

.legal-kicker {
  color: var(--blue, #00c8ff);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-title {
  margin: 18px 0 18px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-updated {
  color: #8a8f9e;
  font-size: 14px;
}

.legal-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-section h2 {
  margin: 0 0 16px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 26px;
}

.legal-section h3 {
  margin: 26px 0 10px;
  font-size: 17px;
}

.legal-section p,
.legal-section li {
  color: #c4c8d4;
  font-size: 16px;
  line-height: 1.8;
}

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

.legal-section a {
  color: var(--blue, #00c8ff);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.legal-table th,
.legal-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #c4c8d4;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 6, 8, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.legal-nav-inner {
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-logo img {
  height: 30px;
}

.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.legal-nav-links a,
.legal-nav-links button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #c4c8d4;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.legal-nav-links a:hover,
.legal-nav-links button:hover {
  color: var(--blue, #00c8ff);
}

.legal-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #0d0e12;
}

.legal-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  color: #8a8f9e;
  font-size: 13px;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-footer-links a,
.legal-footer-links button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #8a8f9e;
  font: inherit;
  cursor: pointer;
}

.legal-footer-links a:hover,
.legal-footer-links button:hover {
  color: var(--blue, #00c8ff);
}

@media (max-width: 760px) {
  .cookie-consent {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .cookie-consent-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .cookie-actions,
  .cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .cookie-actions .cookie-btn-primary,
  .cookie-modal-actions .cookie-btn-primary {
    grid-column: 1 / -1;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-copy h2 {
    font-size: 16px;
  }

  .cookie-copy p {
    font-size: 12px;
  }

  .cookie-preference {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav-inner {
    height: auto;
    min-height: 76px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .legal-nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .legal-main {
    padding-top: 150px;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
