.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 9999;
  color: var(--text, #eef7ff);
}

.cookie-content {
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(180, 215, 255, 0.2);
  border-radius: 24px;
  background: rgba(4, 12, 24, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.cookie-content p {
  max-width: 760px;
  color: rgba(238, 247, 255, 0.76);
  font-size: 0.96rem;
}

.cookie-content a {
  color: var(--cyan, #54e8ff);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-kicker {
  margin-bottom: 6px;
  color: var(--cyan, #54e8ff);
}

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

.cookie-buttons button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(180, 215, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cookie-buttons button:hover {
  transform: translateY(-2px);
}

.btn-accept {
  color: #04101e;
  background: linear-gradient(135deg, #54e8ff, #f3f8ff);
}

.btn-necessary,
.btn-settings {
  color: var(--text, #eef7ff);
  background: rgba(255, 255, 255, 0.06);
}

.btn-necessary:hover,
.btn-settings:hover {
  border-color: rgba(84, 232, 255, 0.64);
  background: rgba(84, 232, 255, 0.1);
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: auto;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(2, 8, 16, 0.72);
  backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  width: min(860px, 100%);
  max-height: min(82vh, 900px);
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgba(180, 215, 255, 0.18);
  border-radius: 28px;
  background: #f3f8ff;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  margin: 0;
  padding: 26px 72px 24px 28px;
  color: #071323;
  font-family: var(--font-display, sans-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff, #dce9f7);
  border-bottom: 1px solid rgba(7, 19, 35, 0.1);
}

.modal-body {
  max-height: calc(min(82vh, 900px) - 112px);
  overflow-y: auto;
  padding: 28px;
  color: #25364b;
}

.modal-body h3 {
  margin: 28px 0 10px;
  color: #071323;
  font-family: var(--font-display, sans-serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body h4 {
  margin: 18px 0 8px;
  color: #10243d;
  font-weight: 800;
}

.modal-body p,
.modal-body li {
  color: #41546b;
  line-height: 1.7;
}

.modal-body strong {
  color: #071323;
}

.modal-body ul {
  margin: 12px 0 16px;
  padding-left: 20px;
  list-style: disc;
}

.modal-body table {
  width: 100%;
  min-width: 560px;
  margin: 18px 0;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(7, 19, 35, 0.1);
}

.modal-body th,
.modal-body td {
  padding: 14px;
  border-bottom: 1px solid rgba(7, 19, 35, 0.09);
  color: #25364b;
  text-align: left;
}

.modal-body th {
  color: #071323;
  background: #dce9f7;
  font-weight: 900;
}

.modal-body tr:last-child td {
  border-bottom: 0;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #071323;
  background: rgba(7, 19, 35, 0.08);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.close:hover,
.close:focus-visible {
  transform: rotate(90deg);
  background: rgba(47, 117, 255, 0.16);
}

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

  .cookie-content {
    display: grid;
    padding: 16px;
    border-radius: 20px;
  }

  .cookie-buttons {
    justify-content: stretch;
  }

  .cookie-buttons button {
    flex: 1 1 140px;
  }

  .modal-content {
    max-height: 92vh;
  }

  .modal-body {
    max-height: calc(92vh - 96px);
    padding: 22px;
    overflow-x: auto;
  }
}

@media (max-width: 460px) {
  .cookie-buttons {
    display: grid;
  }

  .modal-content h2 {
    padding-right: 64px;
  }
}
