
:root {
  --bg: #080b14;
  --panel: #101827;
  --cyan: #00f5ff;
  --text: #edfaff;
  --muted: #b7c4d6;
  --border: rgba(0, 245, 255, 0.3);
  --glow: rgba(0, 245, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px 14px;
  background:
    radial-gradient(circle at top left, #00f5ff12, transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.75;
}

/* Cookie Policy page */

.policy-card {
  width: 100%;
  max-width: 900px;
  margin: 24px auto;
  padding: 38px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 15px 50px #0005, 0 0 30px var(--glow);
}

.policy-card h1 {
  color: var(--cyan);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.policy-card h2 {
  margin-top: 30px;
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
  color: var(--cyan);
  font-size: 21px;
  line-height: 1.4;
}

.policy-card p,
.policy-card li {
  color: var(--muted);
}

.policy-card p {
  margin: 14px 0;
}

.policy-card ul {
  padding-left: 25px;
}

.policy-card li {
  margin-bottom: 10px;
}

.policy-card strong {
  color: var(--text);
}

.policy-card a {
  color: var(--cyan);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.policy-card a:hover {
  color: white;
}

.policy-card .back {
  display: inline-block;
  margin-bottom: 15px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  text-decoration: none;
}

.updated {
  font-size: 14px;
  color: #91a5bc !important;
}

.policy-button {
  padding: 11px 16px;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  background: transparent;
  color: var(--cyan);
  font-weight: 600;
  cursor: pointer;
}

.policy-button:hover {
  background: var(--glow);
}

.policy-card footer {
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #91a5bc;
  font-size: 13px;
  text-align: center;
}

/* Cookie consent banner */

.cookie-banner {
  position: fixed;
  z-index: 99999;
  left: 20px;
  right: 20px;
  bottom: 20px;
  width: calc(100% - 40px);
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
  background: #0c1220;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 15px 55px #000b, 0 0 24px var(--glow);
}

.cookie-banner h2 {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 22px;
  line-height: 1.4;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.cookie-banner a {
  color: var(--cyan);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cookie-actions button,
.cookie-settings button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-actions .cookie-accept,
.cookie-settings .cookie-save {
  background: var(--cyan);
  color: #001217;
}

.cookie-actions button:hover,
.cookie-settings button:hover {
  filter: brightness(1.12);
}

/* Cookie settings dialog */

.cookie-settings {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #000b;
}

.cookie-settings-panel {
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 0 35px var(--glow);
}

.cookie-settings-panel h2 {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 23px;
}

.cookie-settings-panel > p {
  color: var(--muted);
  font-size: 14px;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #293548;
}

.cookie-option strong {
  display: block;
  color: var(--text);
}

.cookie-option small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-option input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--cyan);
}

.cookie-option input:disabled {
  cursor: not-allowed;
}

.cookie-banner[hidden],
.cookie-settings[hidden] {
  display: none !important;
}

.cookie-banner button:focus-visible,
.cookie-settings button:focus-visible,
a:focus-visible,
.policy-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .policy-card {
    margin: 10px auto;
    padding: 22px 17px;
    border-radius: 15px;
  }

  .policy-card h2 {
    font-size: 19px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    padding: 17px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-actions button {
    width: 100%;
  }

  .cookie-settings-panel {
    padding: 20px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
