:root {
  --cc-bg: rgba(8, 18, 29, 0.96);
  --cc-panel: #0d1f31;
  --cc-panel-2: #13283d;
  --cc-text: #eef6fb;
  --cc-soft: rgba(238, 246, 251, 0.72);
  --cc-border: rgba(121, 231, 255, 0.18);
  --cc-primary: #19f5c1;
  --cc-primary-2: #79e7ff;
  --cc-overlay: rgba(2, 7, 13, 0.72);
  --cc-shadow: 0 24px 60px rgba(2, 7, 13, 0.45);
  --cc-radius: 24px;
  --cc-focus: 0 0 0 3px rgba(121, 231, 255, 0.3);
}

.cc-hidden {
  display: none !important;
}

.cc-lock-scroll {
  overflow: hidden;
}

.cc-banner,
.cc-modal {
  font-family: Manrope, sans-serif;
  color: var(--cc-text);
}

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  margin: 0 auto;
  max-width: 1080px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  background: linear-gradient(180deg, var(--cc-panel), var(--cc-bg));
  box-shadow: var(--cc-shadow);
  backdrop-filter: blur(18px);
}

.cc-banner__inner {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.cc-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--cc-border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-primary-2);
  background: rgba(255, 255, 255, 0.03);
}

.cc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cc-primary);
}

.cc-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.cc-copy,
.cc-legal,
.cc-links {
  margin: 0;
  color: var(--cc-soft);
  line-height: 1.6;
}

.cc-links a,
.cc-link-btn {
  color: var(--cc-primary);
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cc-btn {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--cc-border);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cc-btn:hover {
  transform: translateY(-1px);
}

.cc-btn:focus-visible,
.cc-icon-btn:focus-visible,
.cc-link-btn:focus-visible,
.cc-switch input:focus-visible + .cc-switch__slider {
  outline: none;
  box-shadow: var(--cc-focus);
}

.cc-btn--primary {
  color: #04131c;
  background: linear-gradient(90deg, var(--cc-primary), var(--cc-primary-2));
}

.cc-btn--secondary {
  color: var(--cc-text);
  background: rgba(255, 255, 255, 0.04);
}

.cc-btn--ghost {
  color: var(--cc-text);
  background: transparent;
}

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--cc-overlay);
}

.cc-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 1002;
  width: min(760px, calc(100vw - 24px));
  max-height: min(86vh, 900px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--cc-border);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--cc-panel), var(--cc-bg));
  box-shadow: var(--cc-shadow);
}

.cc-modal__inner {
  padding: 24px;
}

.cc-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cc-modal__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.cc-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--cc-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cc-text);
  cursor: pointer;
}

.cc-categories {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.cc-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--cc-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.cc-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cc-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.cc-card__desc {
  margin: 0;
  color: var(--cc-soft);
  line-height: 1.6;
}

.cc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cc-switch__slider {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--cc-border);
  background: rgba(255, 255, 255, 0.12);
  transition: background 150ms ease;
}

.cc-switch__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  transition: transform 150ms ease;
}

.cc-switch input:checked + .cc-switch__slider {
  background: linear-gradient(90deg, var(--cc-primary), var(--cc-primary-2));
}

.cc-switch input:checked + .cc-switch__slider::after {
  transform: translateX(22px);
}

.cc-switch input:disabled + .cc-switch__slider {
  opacity: 0.8;
  cursor: not-allowed;
}

.cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cc-link-btn {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.legal-shell {
  position: relative;
  min-height: 100vh;
  color: var(--text-main, #edf7ff);
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(25, 245, 193, 0.12), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(121, 231, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #02070d 0%, #05111b 36%, #041723 68%, #02070d 100%);
}

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

.legal-card {
  border: 1px solid rgba(121, 231, 255, 0.12);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(10, 24, 36, 0.9), rgba(6, 17, 29, 0.72));
  box-shadow: 0 18px 80px rgba(2, 7, 13, 0.52);
  backdrop-filter: blur(18px);
  padding: 28px;
}

.legal-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.legal-kicker {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: rgba(121, 231, 255, 0.78);
}

.legal-title {
  margin: 10px 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.legal-lead,
.legal-meta,
.legal-list,
.legal-note {
  color: rgba(220, 236, 246, 0.78);
  line-height: 1.75;
}

.legal-lang-toggle {
  display: inline-flex;
  gap: 8px;
  border: 1px solid rgba(121, 231, 255, 0.14);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  color: rgba(220, 236, 246, 0.88);
  background: transparent;
  cursor: pointer;
}

.legal-lang-btn[aria-pressed="true"] {
  color: #04131c;
  background: linear-gradient(90deg, #19f5c1, #79e7ff);
}

.legal-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(121, 231, 255, 0.08);
}

.legal-section h2,
.legal-section h3 {
  font-family: 'Space Grotesk', sans-serif;
}

.legal-section h2 {
  font-size: 1.6rem;
  margin: 0 0 12px;
}

.legal-section h3 {
  font-size: 1.1rem;
  margin: 18px 0 8px;
}

.legal-list {
  padding-left: 18px;
}

.legal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.legal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(121, 231, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 246, 251, 0.88);
  text-decoration: none;
}

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

.legal-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-panel {
  border: 1px solid rgba(121, 231, 255, 0.12);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

[data-lang-panel] {
  display: none;
}

[data-lang-panel].is-active {
  display: block;
}

@media (max-width: 768px) {
  .cc-banner__inner,
  .cc-modal__inner,
  .legal-card {
    padding: 18px;
  }

  .cc-actions,
  .cc-modal__actions,
  .legal-grid--two {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cc-btn {
    width: 100%;
  }

  .cc-card__row,
  .legal-topbar {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-btn,
  .cc-switch__slider,
  .cc-switch__slider::after {
    transition: none;
  }
}
