@charset "UTF-8";

/* legal-gate.css — 18+/KVKK/Şartlar onay modal */

#legal-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, rgba(15, 5, 25, 0.96), rgba(0, 0, 0, 0.99));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  backdrop-filter: blur(8px);
  font-family: 'Outfit', system-ui, sans-serif;
  animation: lg-fade-in 0.3s ease;
}
#legal-gate-modal.is-closing { animation: lg-fade-out 0.28s ease forwards; }
@keyframes lg-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes lg-fade-out { from { opacity: 1; } to { opacity: 0; } }

.lg-card {
  background: linear-gradient(180deg, #1a0e2a, #0a0610);
  border: 1px solid rgba(180, 110, 250, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.lg-header {
  padding: 24px 26px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lg-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}
.lg-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}
.lg-steps {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.lg-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.lg-step span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.lg-step.is-active { color: #c89bff; }
.lg-step.is-active span { background: linear-gradient(135deg, #c89bff, #7c3aed); color: #fff; }
.lg-step.is-done   { color: rgba(140, 220, 140, 0.7); }
.lg-step.is-done span { background: rgba(80, 170, 80, 0.3); color: #b6f5b6; }

.lg-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lg-pane {
  display: none;
  flex: 1;
  padding: 24px 26px;
  overflow: hidden;
  /* Grid: icon | h2 | scroll(1fr) | actions  — actions her zaman altta */
  grid-template-rows: auto auto 1fr auto;
  gap: 0;
}
.lg-pane.is-active { display: grid; }

.lg-icon {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 6px;
}
.lg-pane h2 {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.lg-pane p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin-bottom: 12px;
}
.lg-pane p:last-of-type { margin-bottom: 0; }
.lg-pane b { color: #fff; font-weight: 700; }
.lg-pane ul {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  padding-left: 18px;
  margin: 8px 0 16px;
  line-height: 1.6;
}
.lg-pane ul ul { margin: 4px 0; }
.lg-pane a { color: #c89bff; text-decoration: underline; }
.lg-pane small { color: rgba(255, 255, 255, 0.45); }

.lg-scroll {
  min-height: 0;       /* grid 1fr içinde scroll için kritik */
  overflow-y: auto;
  padding: 14px 16px;
  margin: 8px 0 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 110, 250, 0.4) transparent;
}
.lg-scroll::-webkit-scrollbar { width: 6px; }
.lg-scroll::-webkit-scrollbar-thumb { background: rgba(180, 110, 250, 0.4); border-radius: 3px; }

.lg-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: rgba(180, 110, 250, 0.08);
  border: 1px solid rgba(180, 110, 250, 0.2);
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  user-select: none;
}
.lg-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #c89bff;
  cursor: pointer;
}

.lg-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* grid içinde otomatik en altta — margin-top: auto gerekmiyor */
}
.lg-btn {
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  min-height: 44px;
}
.lg-btn-primary {
  background: linear-gradient(135deg, #c89bff, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.lg-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5); }
.lg-btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

/* Mobile */
@media (max-width: 480px) {
  /* Modal'ı tam ekran yap → button her zaman görünür */
  #legal-gate-modal { padding: 0; align-items: stretch; }
  .lg-card { max-height: 100vh; height: 100vh; max-width: 100%; border-radius: 0; border: none; }

  .lg-header { padding: 14px 16px 8px; }
  .lg-title { font-size: 1.1rem; }
  .lg-sub { font-size: 0.78rem; }
  .lg-steps { margin-top: 10px; }
  .lg-step { font-size: 0.68rem; }
  .lg-step span { width: 18px; height: 18px; font-size: 0.7rem; }

  .lg-pane { padding: 14px 16px 12px; }
  .lg-icon { font-size: 1.4rem; margin-bottom: 2px; }
  .lg-pane h2 { font-size: 1.02rem; margin-bottom: 8px; }
  .lg-pane p { font-size: 0.86rem; margin-bottom: 8px; }
  .lg-pane ul { font-size: 0.82rem; margin: 6px 0 10px; }

  .lg-scroll { padding: 10px 12px; margin: 6px 0 10px; }

  .lg-checkbox { padding: 8px 10px; font-size: 0.82rem; margin-bottom: 8px; }
  .lg-btn { padding: 11px 16px; font-size: 0.92rem; }
}
