/* DEFTERYA ön site — çerez bandı, çerez tercihleri ve yasal metin pencereleri (assets/js/cerez.js) */
.dfc-kok {
  --dfc-navy: #082B5C;
  --dfc-gece: #061D3D;
  --dfc-teal: #09958a;
  --dfc-teal-koyu: #0f766e;
  --dfc-teal-acik: #e6f7f5;
  --dfc-yazi: #334155;
  --dfc-soluk: #5b6b7e;
  --dfc-cizgi: #e2e8f0;
  --dfc-zemin: #f5f8fc;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--dfc-yazi);
}
.dfc-kok *, .dfc-kok *::before, .dfc-kok *::after { box-sizing: border-box; }
.dfc-kok [hidden] { display: none !important; }

/* ---------- Düğmeler ---------- */
.dfc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.dfc-btn--kabul { background: var(--dfc-teal); color: #fff; }
.dfc-btn--kabul:hover { background: var(--dfc-teal-koyu); }
.dfc-btn--red { background: #fff; border-color: #c4d2e3; color: var(--dfc-navy); }
.dfc-btn--red:hover { border-color: var(--dfc-navy); }
.dfc-btn--duz { background: transparent; color: var(--dfc-navy); padding-inline: 6px; min-height: 40px; }
.dfc-btn--duz:hover { color: var(--dfc-teal-koyu); text-decoration: underline; text-underline-offset: 3px; }
.dfc-kok a { color: var(--dfc-teal-koyu); font-weight: 600; text-underline-offset: 3px; }
.dfc-kok a:hover { color: var(--dfc-navy); }
.dfc-kok button:focus-visible,
.dfc-kok a:focus-visible,
.dfc-kok input:focus-visible + .dfc-anahtar {
  outline: 3px solid rgba(0, 184, 169, .55);
  outline-offset: 2px;
}

/* ---------- Çerez bandı ---------- */
.dfc-bant {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  width: min(440px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--dfc-cizgi);
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(6, 29, 61, .45), 0 2px 6px rgba(6, 29, 61, .06);
  overflow: hidden;
  animation: dfc-gir .35s cubic-bezier(.2, .8, .2, 1) both;
}
.dfc-bant::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--dfc-navy) 0 62%, var(--dfc-teal) 62% 100%);
}
.dfc-bant__ic { padding: 18px 20px 18px; }
.dfc-bant__bas { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.dfc-bant__ikon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--dfc-teal-acik);
  color: var(--dfc-teal-koyu);
  font-size: 1.2rem;
}
.dfc-bant__baslik {
  margin: 0;
  font-family: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dfc-navy);
  line-height: 1.25;
}
.dfc-bant__metin { margin: 0 0 14px; font-size: .88rem; line-height: 1.6; color: var(--dfc-yazi); }
.dfc-bant__dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dfc-bant__alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: .8rem;
}
.dfc-bant__alt .dfc-btn--duz { font-size: .84rem; }
.dfc-bant__linkler { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.dfc-bant__linkler a { color: var(--dfc-soluk); font-weight: 600; }
.dfc-bant__linkler a:hover { color: var(--dfc-navy); }
.dfc-bant.is-cikis { animation: dfc-cik .22s ease both; }

@keyframes dfc-gir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dfc-cik { to { opacity: 0; transform: translateY(12px); } }

/* ---------- Pencere (tercihler + yasal metin) ---------- */
.dfc-perde {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 29, 61, .55);
  backdrop-filter: blur(3px);
  animation: dfc-perde .2s ease both;
}
@keyframes dfc-perde { from { opacity: 0; } to { opacity: 1; } }
.dfc-pencere {
  width: min(640px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(6, 29, 61, .6);
  overflow: hidden;
  animation: dfc-gir .3s cubic-bezier(.2, .8, .2, 1) both;
}
.dfc-pencere--metin { width: min(820px, 100%); }
.dfc-pencere:focus { outline: none; }
.dfc-pencere__bas {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--dfc-cizgi);
}
.dfc-pencere__bas h2 {
  margin: 0;
  font-family: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.25rem;
  color: var(--dfc-navy);
  line-height: 1.25;
}
.dfc-pencere__bas p { margin: 6px 0 0; font-size: .86rem; color: var(--dfc-soluk); line-height: 1.55; }
.dfc-kapat {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--dfc-zemin);
  color: var(--dfc-navy);
  font-size: 1rem;
  cursor: pointer;
}
.dfc-kapat:hover { background: #e2e8f0; }
.dfc-pencere__govde { padding: 14px 22px 8px; overflow-y: auto; overscroll-behavior: contain; }
.dfc-pencere__alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--dfc-cizgi);
  background: #fbfcfe;
}
.dfc-pencere__alt .dfc-btn--red:first-child { margin-right: auto; }

/* Kategori satırları */
.dfc-kat { border: 1px solid var(--dfc-cizgi); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.dfc-kat.is-acik { border-color: #c9d8ea; }
.dfc-kat__bas { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; }
.dfc-kat__metin { flex: 1 1 auto; min-width: 0; }
.dfc-kat__ad { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0; font-size: .96rem; font-weight: 700; color: var(--dfc-navy); }
.dfc-kat__aciklama { margin: 4px 0 0; font-size: .84rem; line-height: 1.55; color: var(--dfc-yazi); }
.dfc-rozet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  background: var(--dfc-zemin);
  color: var(--dfc-soluk);
}
.dfc-rozet--yesil { background: var(--dfc-teal-acik); color: var(--dfc-teal-koyu); }
.dfc-kat__ayrinti-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dfc-teal-koyu);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.dfc-kat__ayrinti-btn .bi { transition: transform .15s ease; }
.dfc-kat.is-acik .dfc-kat__ayrinti-btn .bi { transform: rotate(180deg); }
.dfc-kat__ayrinti { padding: 0 16px 14px; }
.dfc-kat__bos { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--dfc-zemin); font-size: .82rem; color: var(--dfc-soluk); }
.dfc-tablo-sar { overflow-x: auto; border: 1px solid var(--dfc-cizgi); border-radius: 10px; }
.dfc-tablo { width: 100%; border-collapse: collapse; font-size: .8rem; }
.dfc-tablo th, .dfc-tablo td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--dfc-cizgi); }
.dfc-tablo tr:last-child td { border-bottom: 0; }
.dfc-tablo th { background: var(--dfc-zemin); color: var(--dfc-navy); font-weight: 700; white-space: nowrap; }
.dfc-tablo code { font-size: .78rem; color: var(--dfc-navy); background: #eef4fb; padding: 1px 5px; border-radius: 5px; }

/* Anahtar (switch) */
.dfc-sec { position: relative; flex: none; display: inline-flex; align-items: center; cursor: pointer; }
.dfc-sec input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dfc-anahtar {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background .18s ease;
}
.dfc-anahtar::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(6, 29, 61, .3);
  transition: transform .18s ease;
}
.dfc-sec input:checked + .dfc-anahtar { background: var(--dfc-teal); }
.dfc-sec input:checked + .dfc-anahtar::after { transform: translateX(20px); }
.dfc-sec input:disabled + .dfc-anahtar { background: #8fd3cc; cursor: not-allowed; }

.dfc-not { margin: 6px 0 12px; font-size: .78rem; color: var(--dfc-soluk); line-height: 1.55; }

/* Yasal metin penceresi */
.dfc-metin { font-size: .92rem; line-height: 1.7; }
.dfc-metin h2 { font-size: 1.05rem; color: var(--dfc-navy); margin: 18px 0 6px; }
.dfc-metin h3 { font-size: .96rem; color: var(--dfc-navy); margin: 14px 0 4px; }
.dfc-metin p, .dfc-metin ul, .dfc-metin ol { margin: 0 0 10px; }
.dfc-metin table { width: 100%; border-collapse: collapse; font-size: .82rem; margin: 6px 0 12px; }
.dfc-metin th, .dfc-metin td { padding: 7px 9px; border: 1px solid var(--dfc-cizgi); text-align: left; vertical-align: top; }
.dfc-metin th { background: var(--dfc-zemin); color: var(--dfc-navy); }
.dfc-metin .dn-yasal-diger, .dfc-metin [data-cerez-ayar] { display: none; }
.dfc-yukleniyor { display: grid; place-items: center; min-height: 160px; color: var(--dfc-soluk); font-size: .9rem; }
.dfc-yukleniyor .bi { font-size: 1.4rem; animation: dfc-don 1s linear infinite; }
@keyframes dfc-don { to { transform: rotate(360deg); } }

/* Kayıt bildirimi */
.dfc-tost {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2147483002;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--dfc-gece);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  box-shadow: 0 16px 40px -14px rgba(6, 29, 61, .6);
  animation: dfc-gir .25s ease both;
}
.dfc-tost .bi { color: #44D7CC; }

body.dfc-kilit { overflow: hidden; }

/* ---------- Yasal metin sayfalarındaki tablolar (KVKK, çerez politikası) ---------- */
.saas-yazi .dn-tablo-sar { margin: 8px 0 18px; border: 1px solid #e2e8f0; border-radius: 14px; overflow-x: auto; }
.saas-yazi table { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.55; }
.saas-yazi th, .saas-yazi td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e2e8f0; }
.saas-yazi tbody tr:last-child td { border-bottom: 0; }
.saas-yazi th { background: #f5f8fc; color: #082B5C; font-weight: 700; white-space: nowrap; }
.saas-yazi td code { font-size: .82rem; color: #082B5C; background: #eef4fb; padding: 1px 6px; border-radius: 6px; }
.dfc-metin .dn-tablo-sar { overflow-x: auto; }
.dfc-metin .dn-yasal-firma { display: grid; margin: 0 0 14px; padding: 4px 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fbfe; }
.dfc-metin .dn-yasal-firma div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px dashed #e2e8f0; }
.dfc-metin .dn-yasal-firma div:last-child { border-bottom: 0; }
.dfc-metin .dn-yasal-firma dt { color: #5b6b7e; font-weight: 700; font-size: .84rem; }
.dfc-metin .dn-yasal-firma dd { margin: 0; color: #082B5C; font-weight: 600; }
.dfc-metin .dn-guncel { font-size: .8rem; color: #5b6b7e; }
@media (max-width: 560px) {
  .saas-yazi th { white-space: normal; }
  .dfc-metin .dn-yasal-firma div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Sitedeki yerleşimler ---------- */
/* Formların altındaki aydınlatma notu */
.dfc-kvkk-not {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 2px 0 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f7fc;
  border: 1px solid #e3ebf5;
  font-size: .8rem;
  line-height: 1.55;
  color: #475569;
}
.dfc-kvkk-not .bi { color: #0f766e; font-size: 1rem; line-height: 1.3; }
.dfc-kvkk-not a { color: #0f766e; font-weight: 700; }
.dfc-kvkk-not p { margin: 0; }
/* Zorunlu onay kutusu (sipariş) */
.dfc-onay {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #dbe5f0;
  background: #fff;
  font-size: .86rem;
  line-height: 1.55;
  color: #334155;
  cursor: pointer;
}
.dfc-onay input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #09958a; cursor: pointer; }
.dfc-onay a { color: #0f766e; font-weight: 700; }
.dfc-onay:has(input:checked) { border-color: #09958a; background: #f2fbfa; }
.dfc-onay:has(input.is-hatali) { border-color: #dc2626; background: #fef2f2; }
/* Alt bilgi düğmesi */
.saas-foot__cerez {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #a9bccf;
  font-weight: 600;
  cursor: pointer;
}
.saas-foot__cerez:hover { color: #fff; }
.saas-foot__cerez .bi { margin-right: 3px; }

@media (max-width: 560px) {
  .dfc-bant {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dfc-bant__ic { padding: 16px 16px 14px; }
  .dfc-perde { padding: 0; place-items: end stretch; }
  .dfc-pencere, .dfc-pencere--metin { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .dfc-pencere__bas { padding: 16px 16px 12px; }
  .dfc-pencere__govde { padding: 12px 16px 6px; }
  .dfc-pencere__alt { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .dfc-pencere__alt .dfc-btn { flex: 1 1 calc(50% - 4px); }
  .dfc-pencere__alt .dfc-btn--kabul { flex-basis: 100%; order: -1; }
  .dfc-pencere__alt .dfc-btn--red:first-child { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dfc-bant, .dfc-pencere, .dfc-perde, .dfc-tost, .dfc-bant.is-cikis { animation: none; }
  .dfc-anahtar, .dfc-anahtar::after { transition: none; }
}

@media print {
  .dfc-bant, .dfc-perde, .dfc-tost { display: none !important; }
}
