/* ==========================================================================
   Policy Modal & Prose Styling — Sanatizi
   Banner & Footer siyah, iç zemin beyaz, başlıklar yaldız ve gümüş, menü sağda.
   ========================================================================== */

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease;
}

.policy-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* Flue (Bulanık) Ekran Arka Planı */
.policy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.policy-modal.is-open .policy-modal__backdrop {
  opacity: 1;
}

/* Modal Konteyneri */
.policy-modal__container {
  position: relative;
  width: min(68rem, calc(100% - 2rem));
  height: min(48rem, calc(100svh - 3rem));
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.policy-modal__dialog {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #141311;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #ede8df;
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: opacity 0.28s var(--ease-out, ease-out), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.policy-modal.is-open .policy-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   1. Banner (Modal Header) — Siyah ve Lüks Varak/Gümüş Dokunuşlar
   ========================================================================== */
.policy-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #141311;
  background: linear-gradient(180deg, #181714 0%, #12110f 100%);
  flex-shrink: 0;
}

.policy-modal__head-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.policy-modal__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(233, 205, 148, 0.2), rgba(180, 195, 210, 0.12));
  border: 1px solid rgba(233, 205, 148, 0.4);
  color: #eed6aa;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.policy-modal__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  color: rgba(237, 232, 223, 0.65);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.policy-modal__badge {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(233, 205, 148, 0.12);
  border: 1px solid rgba(233, 205, 148, 0.3);
  color: #eed6aa;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.policy-modal__dot {
  color: rgba(255, 255, 255, 0.25);
}

.policy-modal__updated {
  color: rgba(237, 232, 223, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
}

.policy-modal__title {
  font-family: var(--font-heading, 'Outfit', 'Manrope', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

.policy-modal__head-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.policy-modal__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eed6aa;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.policy-modal__action-btn:hover {
  background: rgba(233, 205, 148, 0.18);
  border-color: rgba(233, 205, 148, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.policy-modal__close-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.policy-modal__close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: scale(1.05);
}

/* ==========================================================================
   2. Main Bölümü (İç Zemin BEYAZ: Sol İçerik Metni + Sağ Menü)
   ========================================================================== */
.policy-modal__main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  background: #ffffff;
  overflow: hidden;
}

/* Sol İçerik Alanı */
.policy-modal__body {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  padding: 2.2rem 2.8rem;
  background: #ffffff;
  color: #1a1917;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.policy-modal__body::-webkit-scrollbar {
  width: 6px;
}
.policy-modal__body::-webkit-scrollbar-track {
  background: rgba(20, 19, 17, 0.03);
}
.policy-modal__body::-webkit-scrollbar-thumb {
  background: rgba(20, 19, 17, 0.15);
  border-radius: 4px;
}
.policy-modal__body::-webkit-scrollbar-thumb:hover {
  background: #c49a56;
}

.policy-modal__article {
  display: none;
  animation: policyFadeIn 0.25s ease forwards;
}

.policy-modal__article.is-active {
  display: block;
}

@keyframes policyFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sağ Menü (Derli Toplu Dikey Politikalar Menüsü) */
.policy-modal__sidebar {
  flex: 0 0 18rem;
  width: 18rem;
  background: #fbfaf7;
  border-left: 1px solid rgba(20, 19, 17, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.1rem;
  overflow-y: auto;
  flex-shrink: 0;
}

.policy-modal__sidebar-header {
  padding: 0 0.5rem 0.8rem;
  border-bottom: 1px solid rgba(20, 19, 17, 0.06);
}

.policy-modal__sidebar-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #8a857b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.policy-modal__tabs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.policy-modal__tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #555149;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
}

.policy-modal__tab:hover {
  background: #f0ede6;
  color: #141311;
}

.policy-modal__tab-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(20, 19, 17, 0.04);
  color: #6e6a62;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.policy-modal__tab-title {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.policy-modal__tab-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c49a56;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
}

.policy-modal__tab.is-active {
  background: #ffffff;
  border-color: rgba(196, 154, 86, 0.4);
  color: #141311;
  font-weight: 700;
  box-shadow: 0 4px 14px -2px rgba(196, 154, 86, 0.16), 0 2px 6px rgba(0, 0, 0, 0.03);
}

.policy-modal__tab.is-active .policy-modal__tab-icon {
  background: rgba(196, 154, 86, 0.14);
  color: #8c6018;
}

.policy-modal__tab.is-active .policy-modal__tab-indicator {
  opacity: 1;
  transform: scale(1);
}

.policy-modal__sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 19, 17, 0.06);
  margin-top: 1rem;
}

.policy-modal__trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: #7a756b;
  font-weight: 500;
}

.policy-modal__trust-badge i {
  color: #8c6018;
}

/* ==========================================================================
   3. Modal Footer — SİYAH (Menüyü Kapat Butonu Kaldırıldı)
   ========================================================================== */
.policy-modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #141311;
  background: linear-gradient(180deg, #141311 0%, #0d0c0a 100%);
  font-size: 0.82rem;
  color: rgba(237, 232, 223, 0.7);
  flex-shrink: 0;
}

.policy-modal__contact-mini {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.policy-modal__contact-mini a {
  color: #eed6aa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.policy-modal__contact-mini a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   4. Politika İçerik Metni (Prose: Yazılar Siyah, Başlıklar Yaldız & Gümüş)
   ========================================================================== */
.policy-prose {
  font-family: var(--font-body, 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 0.96rem;
  line-height: 1.82;
  color: #2b2823;
}

.policy-lead {
  font-size: 1.04rem;
  line-height: 1.78;
  color: #141311;
  font-weight: 500;
  padding-bottom: 1.3rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(20, 19, 17, 0.08);
}

.policy-sec {
  margin-bottom: 2.2rem;
}

/* Başlıklar: Yaldız (Altın) ve Gümüş Gradyenleri */
.policy-modal .policy-prose h3 {
  font-family: var(--font-heading, 'Outfit', 'Manrope', sans-serif);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 1.8rem 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #9c6c1f 0%, #c49a56 36%, #4e5866 72%, #9eb0c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.policy-modal .policy-prose h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c49a56 0%, #9eb0c2 100%);
  box-shadow: 0 0 6px rgba(196, 154, 86, 0.35);
  flex-shrink: 0;
}

.policy-prose p {
  color: #343029;
  margin: 0.7rem 0 1.1rem;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.policy-list li {
  position: relative;
  padding-left: 1.4rem;
  color: #343029;
}

.policy-list li::before {
  content: '•';
  position: absolute;
  left: 0.35rem;
  color: #c49a56;
  font-size: 1.15rem;
  line-height: 1.4;
}

.policy-block {
  padding: 1.1rem 1.3rem;
  background: #faf8f5;
  border: 1px solid rgba(20, 19, 17, 0.07);
  border-radius: 14px;
  margin: 1rem 0;
}

.policy-block h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #8c6018;
  margin: 0 0 0.45rem;
}

.policy-block p {
  margin: 0;
  font-size: 0.92rem;
  color: #423e36;
}

.policy-modal .policy-card--meta {
  padding: 1.4rem 1.6rem;
  background: #fcfbf8;
  border: 1px solid rgba(196, 154, 86, 0.25);
  border-radius: 16px;
  box-shadow: 0 4px 16px -4px rgba(20, 19, 17, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1.1rem 0 1.6rem;
}

.policy-modal .policy-card__row {
  display: flex;
  gap: 0.8rem;
  font-size: 0.92rem;
}

.policy-modal .policy-card__row strong {
  min-width: 145px;
  color: #8c6018;
  font-weight: 600;
}

.policy-modal .policy-card__row span,
.policy-modal .policy-card__row a {
  color: #141311;
}

.policy-modal .policy-card__row a {
  color: #8c6018;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.policy-prose a {
  color: #8c6018;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-prose a:hover {
  color: #141311;
}

/* ==========================================================================
   5. Mobil ve Tablet Uyumu
   ========================================================================== */
@media (max-width: 860px) {
  .policy-modal {
    padding: 0.75rem;
  }
  .policy-modal__container {
    width: 100%;
    height: calc(100svh - 1.5rem);
    max-height: none;
  }
  .policy-modal__head {
    padding: 1rem 1.2rem;
  }
  .policy-modal__title {
    font-size: 1.15rem;
  }
  .policy-modal__btn-label {
    display: none;
  }
  .policy-modal__main {
    flex-direction: column-reverse;
  }
  .policy-modal__sidebar {
    flex: 0 0 auto;
    width: 100%;
    border-left: none;
    border-bottom: 1px solid rgba(20, 19, 17, 0.08);
    padding: 0.8rem 1rem;
  }
  .policy-modal__sidebar-header,
  .policy-modal__sidebar-footer {
    display: none;
  }
  .policy-modal__tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.4rem;
    margin-top: 0;
    padding-bottom: 0.2rem;
  }
  .policy-modal__tab {
    width: auto;
    white-space: nowrap;
    padding: 0.5rem 0.85rem;
  }
  .policy-modal__body {
    padding: 1.4rem 1.2rem;
  }
  .policy-card__row {
    flex-direction: column;
    gap: 0.2rem;
  }
  .policy-card__row strong {
    min-width: auto;
  }
  .policy-modal__foot {
    padding: 0.85rem 1.2rem;
  }
}
