.hidden {
  display: none !important;
}

body.has-cookie-banner {
  padding-bottom: 164px;
}

body.modal-open {
  overflow: hidden;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
}

.site-footer-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-legal-link {
  color: inherit;
  font-weight: 700;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.footer-legal-link:hover {
  color: #0f5a74;
}

.footer-legal-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.auth-legal-bar {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 0 0 24px;
  display: flex;
  justify-content: center;
  color: rgba(17, 26, 34, 0.72);
  position: relative;
  z-index: 1;
}

.auth-legal-bar .footer-legal-links {
  justify-content: center;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(1100px, calc(100vw - 28px));
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(159, 192, 210, 0.38);
  background:
    linear-gradient(135deg, rgba(11, 21, 30, 0.96), rgba(22, 46, 61, 0.92)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  box-shadow: 0 28px 54px rgba(6, 16, 24, 0.34);
  color: #eff7fb;
  display: grid;
  gap: 18px;
  z-index: 90;
}

.cookie-banner-copy {
  display: grid;
  gap: 10px;
}

.cookie-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cookie-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c8ff, #c6f36a);
  box-shadow: 0 0 0 4px rgba(0, 200, 255, 0.12);
}

.cookie-banner h2,
.cookie-modal h2,
.policy-card h1,
.policy-section h2 {
  margin: 0;
  font-family: var(--font-heading, "Segoe UI", sans-serif);
}

.cookie-banner h2 {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.cookie-banner p,
.cookie-option-copy p,
.policy-card p,
.policy-table-row span {
  margin: 0;
  line-height: 1.65;
}

.cookie-banner p {
  color: rgba(239, 247, 251, 0.76);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-inline-form {
  margin: 0;
}

.cookie-banner-meta a,
.cookie-policy-link {
  color: #9ee8ff;
  font-weight: 700;
}

.cookie-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

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

.cookie-button-primary {
  color: #0b1720;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 32%),
    linear-gradient(135deg, #00c8ff, #c6f36a);
  box-shadow: 0 18px 32px rgba(0, 200, 255, 0.22);
}

.cookie-button-secondary {
  color: #eff7fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-button-ghost {
  color: #cfe7f1;
  background: transparent;
  border: 1px solid rgba(180, 216, 231, 0.24);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 24, 0.52);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 95;
}

.cookie-modal-card {
  width: min(760px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(173, 200, 216, 0.34);
  background: linear-gradient(180deg, #f8fbff 0%, #edf4f8 100%);
  color: #10202c;
  box-shadow: 0 26px 60px rgba(6, 16, 24, 0.25);
}

.cookie-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 10px;
}

.cookie-modal-close {
  appearance: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(16, 32, 44, 0.08);
  color: #10202c;
  cursor: pointer;
}

.cookie-modal-close svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0 auto;
}

.cookie-preferences-form {
  display: grid;
  gap: 14px;
  padding: 0 24px 24px;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(15, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.cookie-option-locked {
  background: rgba(16, 32, 44, 0.08);
}

.cookie-option-copy {
  display: grid;
  gap: 6px;
}

.cookie-option-copy h3 {
  margin: 0;
  font-size: 1rem;
}

.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 700;
}

.cookie-toggle input {
  width: 18px;
  height: 18px;
}

.cookie-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 6px;
}

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

.policy-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body, "Segoe UI", sans-serif);
  color: #10202c;
}

.policy-shell {
  width: min(980px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 36px;
  position: relative;
  z-index: 1;
}

.policy-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 64px rgba(67, 74, 83, 0.18);
  backdrop-filter: blur(16px);
}

.policy-brand {
  display: inline-flex;
  width: fit-content;
}

.policy-brand img {
  width: min(260px, 100%);
  height: auto;
}

.policy-intro {
  font-size: 1.02rem;
  color: #334656;
}

.policy-section {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 32, 44, 0.08);
}

.policy-table {
  display: grid;
  gap: 12px;
}

.policy-table-row {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(16, 32, 44, 0.05);
}

.policy-footer {
  padding-top: 6px;
}

@media (max-width: 980px) {
  body.has-cookie-banner {
    padding-bottom: 198px;
  }

  .auth-legal-bar {
    width: min(920px, calc(100vw - 28px));
  }
}

@media (max-width: 720px) {
  body.has-cookie-banner {
    padding-bottom: 240px;
  }

  .site-footer {
    justify-content: center;
  }

  .auth-legal-bar {
    width: calc(100vw - 18px);
    padding-bottom: 18px;
  }

  .cookie-banner {
    width: calc(100vw - 16px);
    bottom: 8px;
    padding: 18px;
    border-radius: 22px;
  }

  .cookie-banner-actions,
  .cookie-modal-actions,
  .cookie-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

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

  .cookie-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .policy-shell {
    width: calc(100vw - 16px);
    padding-top: 12px;
  }
}
