/* Yasal sayfalar + modal — bağımsız stil dosyası */

body.sayfa-yasal {
  background: #f0ede6;
  padding-bottom: 0;
}

body.sayfa-yasal main {
  min-height: calc(100vh - var(--nav-yukseklik, 64px));
}

.yasal-hero {
  background: linear-gradient(135deg, var(--hero-bas, #0d2b1f), var(--hero-son, #1a4a2e));
  color: #fff;
  padding: 48px 0 44px;
  position: relative;
  overflow: hidden;
}

.yasal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -20%, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}

.yasal-hero .konteyner {
  position: relative;
  z-index: 1;
}

.yasal-rozet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.yasal-hero h1 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #fff !important;
}

.yasal-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  margin: 0;
  line-height: 1.65;
}

.yasal-guncel {
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}

.yasal-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 18px 64px;
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 28px;
  align-items: start;
}

.yasal-toc {
  position: sticky;
  top: calc(var(--nav-yukseklik, 64px) + 16px);
  background: #fff;
  border: 1px solid #e3dfd6;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(13,43,31,0.06);
}

.yasal-toc-bas {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--birincil, #2e8b57);
  margin-bottom: 10px;
}

.yasal-toc a {
  display: block;
  font-size: 0.84rem;
  color: #5a5247;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.45;
  transition: 0.18s;
}

.yasal-toc a:hover {
  background: var(--birincil-soluk, #e8f5ee);
  color: var(--birincil-koyu, #1a5e38);
}

.yasal-icerik {
  background: #fff;
  border: 1px solid #e3dfd6;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(13,43,31,0.06);
}

.yasal-bolum {
  scroll-margin-top: 90px;
  padding: 20px 0;
  border-bottom: 1px solid #f0ece4;
}

.yasal-bolum:first-child { padding-top: 0; }
.yasal-bolum:last-child { border-bottom: none; padding-bottom: 0; }

.yasal-bolum h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #15301f !important;
  margin: 0 0 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.35;
}

.yasal-bolum h2 .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--birincil-soluk, #e8f5ee);
  color: var(--birincil-koyu, #1a5e38);
  font-size: 0.82rem;
  font-weight: 800;
  flex: none;
}

.yasal-bolum p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #4b463e;
  margin: 0 0 12px;
}

.yasal-bolum ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.yasal-bolum ul li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4b463e;
  padding: 0 0 8px 22px;
  position: relative;
}

.yasal-bolum ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--birincil, #2e8b57);
  font-weight: 800;
}

.yasal-bolum a {
  color: var(--birincil-koyu, #1a5e38);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yasal-uyari-kutu {
  background: linear-gradient(135deg, #fff8ec, #fdf0d8);
  border: 1px solid #f0d399;
  border-left: 4px solid #d99a2b;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #7a5a1a;
}

.yasal-bilgi-kutu {
  background: var(--birincil-soluk, #e8f5ee);
  border: 1px solid var(--birincil-acik, #7ec896);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--birincil-koyu, #1a5e38);
}

.yasal-iletisim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.yasal-iletisim-kart {
  background: #faf9f6;
  border: 1px solid #e3dfd6;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.yasal-iletisim-kart .ikon { font-size: 1.6rem; margin-bottom: 6px; }
.yasal-iletisim-kart .etiket {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9a9082;
  font-weight: 600;
}
.yasal-iletisim-kart .deger {
  font-size: 0.92rem;
  font-weight: 600;
  color: #2a3b31;
  word-break: break-word;
}

/* Modal */
.yasal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.yasal-modal.aktif {
  opacity: 1;
  visibility: visible;
}

.yasal-modal-arkaplan {
  position: absolute;
  inset: 0;
  background: rgba(13, 43, 31, 0.55);
  backdrop-filter: blur(4px);
}

.yasal-modal-kutu {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s;
}

.yasal-modal.aktif .yasal-modal-kutu {
  transform: translateY(0) scale(1);
}

.yasal-modal-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--hero-bas, #0d2b1f), var(--hero-son, #1a4a2e));
  color: #fff;
  flex-shrink: 0;
}

.yasal-modal-bas h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff !important;
}

.yasal-modal-kapat {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.yasal-modal-kapat:hover { background: rgba(255,255,255,0.28); }

.yasal-modal-govde {
  overflow-y: auto;
  padding: 22px 24px 28px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.yasal-modal-govde .yasal-icerik {
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.yasal-modal-yukleniyor {
  text-align: center;
  padding: 40px;
  color: #7a6e5f;
  font-size: 0.95rem;
}

.yasal-link-modal {
  color: var(--birincil-koyu, #1a5e38);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.yasal-link-modal:hover { color: var(--birincil, #2e8b57); }

@media (max-width: 860px) {
  .yasal-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 14px 48px;
  }
  .yasal-toc { position: static; }
  .yasal-icerik { padding: 20px 18px; }
  .yasal-modal-kutu { max-height: 92vh; border-radius: 16px; }
  .yasal-modal-govde { padding: 18px 16px 22px; }
}
