.legal-consent-block {
  margin-bottom: 0;
}

.legal-consent-block--compact {
  margin-top: 0;
}

.legal-check-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  align-items: start;
  margin-bottom: 0.55rem;
}

.legal-check-row:last-of-type {
  margin-bottom: 0.35rem;
}

.legal-consent-check {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #8b7cff;
  flex-shrink: 0;
}

.legal-check-label {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: inherit;
  cursor: pointer;
  margin: 0;
}

.legal-check-suffix {
  color: inherit;
}

.legal-link-btn {
  display: inline;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: #22d3ee;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  vertical-align: baseline;
}

.legal-link-btn:hover {
  color: #67e8f9;
}

.legal-note {
  margin: 0.35rem 0 0;
  color: #9b93b3;
  font-size: 0.76rem;
  line-height: 1.4;
}

.legal-note--compact {
  margin-top: 0.25rem;
}

.legal-note a {
  color: #22d3ee;
}

.legal-field-error {
  color: #fb7185;
  font-size: 0.78rem;
  line-height: 1.35;
}

.legal-field-error--full {
  grid-column: 1 / -1;
}

.legal-doc-body h6 {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-doc-body p,
.legal-doc-body ul {
  font-size: 0.875rem;
  line-height: 1.5;
}

.legal-doc-body ul {
  padding-left: 1.25rem;
}

/* Modal — bootstrap olmayan sayfalar */
.legal-doc-modal:not(.fade) {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 16px;
  background: rgba(7, 6, 15, 0.72);
  overflow-y: auto;
}

.legal-doc-modal:not(.fade).is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-doc-modal:not(.fade) .modal-dialog {
  width: min(640px, 100%);
  margin: 0;
}

.legal-doc-modal:not(.fade) .modal-content {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 760px);
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.legal-doc-modal:not(.fade) .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.legal-doc-modal:not(.fade) .modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-doc-modal:not(.fade) .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  min-height: 0;
}

.legal-doc-modal:not(.fade) .modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  flex-shrink: 0;
}

.legal-doc-modal:not(.fade) .modal-footer > * {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  text-decoration: none;
}

.legal-doc-modal:not(.fade) .legal-accept-from-modal {
  flex: 1 1 100%;
}

.legal-doc-modal:not(.fade) .btn-close,
.legal-doc-modal:not(.fade) .legal-modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0 2px;
}

.legal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.legal-btn-primary {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #fff;
}

.legal-btn-secondary {
  background: #fff;
  color: #475569;
}

.legal-btn-muted {
  color: #334155;
}

body.legal-modal-open {
  overflow: hidden;
}

button[type="submit"]:disabled,
input[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (min-width: 520px) {
  .legal-doc-modal:not(.fade) .modal-footer {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .legal-doc-modal:not(.fade) .modal-footer > * {
    flex: 0 0 auto;
  }

  .legal-doc-modal:not(.fade) .legal-accept-from-modal {
    flex: 0 0 auto;
  }
}

@media (max-width: 519px) {
  .legal-doc-modal:not(.fade) {
    padding: 10px;
    align-items: flex-end;
  }

  .legal-doc-modal:not(.fade) .modal-content {
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}
