.legal-doc-body {
  margin: 0;
  min-height: 100vh;
  color: #293345;
  background: #f6f8fb;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
.legal-doc-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border-bottom: 1px solid #e4eaf2;
  position: sticky;
  top: 0;
  z-index: 10;
}
.legal-doc-back { text-decoration: none; font-size: 13px; padding: 10px 14px; }
.legal-doc-main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}
.legal-doc article {
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(30, 49, 82, .04);
}
.legal-doc h1 {
  margin: 0 0 8px;
  font: 800 28px/1.2 Manrope, sans-serif;
  letter-spacing: -.03em;
}
.legal-doc .legal-updated {
  margin: 0 0 24px;
  color: #8892a2;
  font-size: 13px;
}
.legal-doc h2 {
  margin: 28px 0 10px;
  font: 700 17px/1.35 Manrope, sans-serif;
  color: #1f2a3d;
}
.legal-doc p,
.legal-doc li { color: #4e5a6c; }
.legal-doc ul { margin: 8px 0 16px; padding-left: 1.25rem; }
.legal-doc li { margin: 6px 0; }
.legal-doc-footer {
  padding: 20px 24px 32px;
  text-align: center;
  color: #a3aab6;
  font-size: 12px;
}
@media (max-width: 600px) {
  .legal-doc article { padding: 22px 18px; }
  .legal-doc h1 { font-size: 24px; }
}

/* Kayıt / auth — yasal metin popup */
body.legal-modal-open { overflow: hidden; }
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}
.legal-modal[hidden] { display: none !important; }
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 31, 53, .45);
  backdrop-filter: blur(3px);
}
.legal-modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20, 35, 58, .22);
  overflow: hidden;
}
.legal-modal-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f4;
  flex-shrink: 0;
}
.legal-modal-header h2 {
  margin: 0;
  font: 700 16px/1.3 Manrope, sans-serif;
  color: #1f2a3d;
}
.legal-modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #f3f6fa;
  color: #607087;
  cursor: pointer;
}
.legal-modal-close:hover { background: #e8edf4; color: #293345; }
.legal-modal-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
}
.legal-modal-body h1 { font-size: 20px; margin: 0 0 8px; }
.legal-modal-body h2 { font-size: 15px; margin: 20px 0 8px; }
.legal-modal-body .legal-updated { font-size: 12px; margin-bottom: 16px; }
.legal-modal-loading,
.legal-modal-error { color: #667286; margin: 0; }
.legal-modal-error { color: #a53a3a; }
.legal-modal-footer {
  padding: 12px 18px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #edf0f4;
  flex-shrink: 0;
}
.legal-modal-footer .secondary-btn {
  padding: 10px 16px;
  font-size: 13px;
  text-decoration: none;
}
