.al-legal-wrap {
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  line-height: 1.65;
  color: #1a1a1a;
}

.al-legal-wrap h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.al-legal-wrap h2 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
}

.al-legal-wrap h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

.al-legal-wrap h4 {
  font-size: 1rem;
  margin: 1rem 0 0.35rem;
}

.al-legal-lead {
  color: #555;
  margin-bottom: 1.5rem;
}

.al-legal-disclaimer {
  padding: 0.75rem 1rem;
  background: #fff8e6;
  border-left: 4px solid #e6b800;
  border-radius: 4px;
}

.al-legal-section,
.al-legal-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.al-legal-section ul,
.al-legal-readonly {
  margin: 0.5rem 0 1rem 1.25rem;
}

.al-legal-notice {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.al-legal-notice--success { background: #ecfdf3; border: 1px solid #86efac; }
.al-legal-notice--error { background: #fef2f2; border: 1px solid #fca5a5; }
.al-legal-notice--warn { background: #fffbeb; border: 1px solid #fcd34d; }

.al-legal-form .al-legal-field {
  margin-bottom: 1rem;
}

.al-legal-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.al-legal-form input[type="text"],
.al-legal-form input[type="email"],
.al-legal-form textarea {
  width: 100%;
  max-width: 520px;
  padding: 0.55rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.al-legal-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.75rem 0 1rem;
  font-weight: 600;
}

.al-legal-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.al-legal-btn:hover {
  background: #333;
}

.al-kredit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.al-kredit-grid label span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.al-kredit-grid input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.al-kredit-result dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  max-width: 420px;
}

.al-kredit-result dt {
  font-weight: 600;
}

.al-kredit-result dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.al-agb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.al-agb-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #fafafa;
  cursor: pointer;
}

.al-agb-link:hover:not(:disabled) {
  border-color: #999;
  background: #f3f3f3;
}

.al-agb-link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.al-agb-link-label {
  flex: 1;
}

.al-agb-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #111;
  color: #fff;
}

body.al-agb-modal-open {
  overflow: hidden;
}

.al-agb-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.al-agb-modal[hidden] {
  display: none !important;
}

.al-agb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.al-agb-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.al-agb-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
}

.al-agb-modal-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
}

.al-agb-modal-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #333;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.al-agb-modal-close:hover {
  background: #eee;
}

.al-agb-viewer-body {
  padding: 1.25rem 1.5rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -webkit-user-select: none;
}

.al-agb-viewer-body > div {
  font-size: 13px !important;
  line-height: 1.55 !important;
  text-align: justify;
  color: #111;
}

.al-agb-viewer-body h2 {
  font-size: 1.2rem !important;
  margin-bottom: 0.75rem !important;
}

.al-agb-viewer-body p {
  margin-bottom: 0.85rem;
}

.al-agb-viewer-body strong {
  display: inline;
}

.al-legal-footer-bar {
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

.al-legal-footer-bar a {
  color: #333;
  text-decoration: none;
}

.al-legal-footer-bar a:hover {
  text-decoration: underline;
}

.al-legal-footer-sep {
  margin: 0 0.65rem;
  color: #999;
}
