/* ==========================================================================
   Stage — Çerez bildirimi (sağ alt)
   ========================================================================== */
.stage-cookie {
  --sc-bg: #141414;
  --sc-line: rgba(255, 255, 255, .09);
  --sc-text: rgba(255, 255, 255, .66);
  --sc-red: #fa2837;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100000;
  width: 400px;
  max-width: calc(100vw - 24px);
  color: #fff;
  font-family: var(--tp-ff-inter, 'Inter', sans-serif);
  background: var(--sc-bg);
  border: 1px solid var(--sc-line);
  border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .2);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(.98);
  transition: opacity .45s cubic-bezier(.2, .8, .2, 1), transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s;
  cursor: auto;
}
.stage-cookie.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.stage-cookie *,
.stage-cookie *::before,
.stage-cookie *::after { box-sizing: border-box; }

/* Üstte ince marka çizgisi */
.stage-cookie::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sc-red), rgba(250, 40, 55, 0) 75%);
}

.stage-cookie__body { padding: 24px 24px 20px; }

.stage-cookie__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.stage-cookie__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--sc-red);
  background: rgba(250, 40, 55, .12);
}
.stage-cookie__title {
  margin: 0;
  color: #fff;
  font-family: var(--tp-ff-sequel-semi-bold, 'Sequel Sans Semi Bold Head', sans-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.stage-cookie__text {
  margin: 0;
  color: var(--sc-text);
  font-size: 14px;
  line-height: 1.6;
}
.stage-cookie__text a,
.stage-cookie__link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.stage-cookie__text a:hover,
.stage-cookie__link:hover { color: #fff; text-decoration-color: var(--sc-red); }

/* Tercihler */
.stage-cookie__prefs {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1);
}
.stage-cookie.is-expanded .stage-cookie__prefs { grid-template-rows: 1fr; }
.stage-cookie__prefs-inner { overflow: hidden; }
.stage-cookie__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--sc-line);
  border-radius: 16px;
}
.stage-cookie__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}
.stage-cookie__item + .stage-cookie__item { border-top: 1px solid var(--sc-line); }
.stage-cookie__item strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.stage-cookie__item span {
  display: block;
  color: var(--sc-text);
  font-size: 12.5px;
  line-height: 1.5;
}
.stage-cookie__always {
  flex: 0 0 auto;
  padding-top: 2px;
  color: rgba(255, 255, 255, .45) !important;
  font-size: 12px !important;
  white-space: nowrap;
}

/* Anahtar */
.stage-cookie__switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  margin-top: 2px;
  cursor: pointer;
}
.stage-cookie__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.stage-cookie__switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  transition: background .25s;
}
.stage-cookie__switch i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.stage-cookie__switch input:checked + i { background: var(--sc-red); }
.stage-cookie__switch input:checked + i::after { transform: translateX(18px); }
.stage-cookie__switch input:focus-visible + i { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 2px; }

/* Butonlar */
.stage-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.stage-cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.stage-cookie__btn:active { transform: scale(.97); }
.stage-cookie__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.stage-cookie__btn--primary { flex: 1 1 auto; color: #fff; background: var(--sc-red); }
.stage-cookie__btn--primary:hover { background: #e01a29; }
.stage-cookie__btn--ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .2); }
.stage-cookie__btn--ghost:hover { border-color: rgba(255, 255, 255, .5); }
.stage-cookie__btn--text {
  height: auto;
  padding: 10px 4px;
  color: var(--sc-text);
  background: none;
  font-weight: 500;
}
.stage-cookie__btn--text:hover { color: #fff; }
.stage-cookie__btn--save { display: none; }
.stage-cookie.is-expanded .stage-cookie__btn--save { display: inline-flex; }
.stage-cookie.is-expanded .stage-cookie__btn--toggle { display: none; }

/* Kapat */
.stage-cookie__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, .5);
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.stage-cookie__close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.stage-cookie.is-settings .stage-cookie__close { display: inline-flex; }

/* Banner açıkken yukarı çık butonunu gizle */
body.stage-cookie-open .back-to-top-wrapper { opacity: 0 !important; visibility: hidden !important; }

@media (max-width: 575.98px) {
  .stage-cookie {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    border-radius: 20px;
  }
  .stage-cookie__body { padding: 20px 18px 16px; }
  .stage-cookie__btn { height: 42px; padding: 0 16px; }
  .stage-cookie__btn--primary { flex-basis: 100%; }
  .stage-cookie__btn--ghost { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-cookie,
  .stage-cookie__prefs,
  .stage-cookie__switch i::after { transition: none; }
}

/* Politika sayfası */
.stage-policy { max-width: 820px; }
.stage-policy h2 {
  margin: 48px 0 16px;
  font-family: var(--tp-ff-sequel-semi-bold, sans-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
}
.stage-policy h2:first-child { margin-top: 0; }
.stage-policy p,
.stage-policy li { color: #5d5d63; font-size: 17px; line-height: 1.75; }
.stage-policy ul { margin: 0 0 16px; padding-left: 20px; }
.stage-policy ul li { list-style: disc; margin-bottom: 6px; }
.stage-policy a { color: #fa2837; text-decoration: underline; text-underline-offset: 3px; }
.stage-policy__table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  font-size: 15px;
}
.stage-policy__table th,
.stage-policy__table td {
  padding: 14px 16px;
  border-bottom: 1px solid #ececec;
  text-align: left;
  vertical-align: top;
}
.stage-policy__table th {
  color: #1e1e1e;
  background: #f6f6f6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.stage-policy__table td { color: #5d5d63; }
.stage-policy__table td code { color: #1e1e1e; font-size: 13px; background: #f3f3f3; padding: 2px 6px; border-radius: 6px; }
.stage-policy__table-wrap { overflow-x: auto; }
.stage-policy__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  margin-top: 8px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1e1e1e;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.stage-policy__btn:hover { background: #fa2837; }
.stage-policy__updated { color: #9a9aa0 !important; font-size: 14px !important; }
