.company-page-entry .d90-legal-page {
  width: min(100%, 920px);
  margin: 0 auto;
  color: #e8edf0;
  text-align: left;
}

.company-page-entry .d90-legal-page p,
.company-page-entry .d90-legal-page h2,
.company-page-entry .d90-legal-page h3,
.company-page-entry .d90-legal-page ul,
.company-page-entry .d90-legal-page ol {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.d90-legal-lead {
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(113, 180, 35, 0.3);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(113, 180, 35, 0.14), rgba(12, 29, 34, 0.9));
  color: #f5f8f2;
  font-size: 1.05rem;
  line-height: 1.7;
}

.d90-legal-section {
  margin: 0 0 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(139, 155, 165, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 36, 42, 0.96), rgba(11, 25, 30, 0.96));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.d90-legal-section h2 {
  margin: 0 0 0.85rem;
  color: #f6f9f3;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.25;
}

.d90-legal-section h3 {
  margin: 1.2rem 0 0.65rem;
  color: #dff4c9;
  font-size: 1.1rem;
}

.d90-legal-section p,
.d90-legal-section li {
  color: #d8e0e4;
  line-height: 1.7;
}

.d90-legal-section p:last-child,
.d90-legal-section ul:last-child,
.d90-legal-section ol:last-child {
  margin-bottom: 0;
}

.d90-legal-section a,
.woocommerce-checkout .d90-legal-link {
  color: #8bd137;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.d90-legal-section a:hover,
.d90-legal-section a:focus-visible,
.woocommerce-checkout .d90-legal-link:hover,
.woocommerce-checkout .d90-legal-link:focus-visible {
  color: #b4ef6f;
  outline: 2px solid rgba(139, 209, 55, 0.55);
  outline-offset: 3px;
}

.d90-legal-highlight,
.d90-merchant-card {
  border-color: rgba(113, 180, 35, 0.38);
}

.d90-legal-highlight {
  padding: 1rem;
  border-left: 4px solid #71b423;
  border-radius: 10px;
  background: rgba(113, 180, 35, 0.1);
}

.d90-bank-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 1rem;
}

.d90-bank-logo {
  display: block;
  width: auto;
  max-width: min(100%, 300px);
  height: auto;
  max-height: 29px;
  object-fit: contain;
  border-radius: 0;
}

.d90-bank-logo-slot {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: min(100%, 420px);
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(225, 233, 237, 0.32);
  border-radius: 12px;
  color: #eef3f5;
  background: rgba(4, 13, 17, 0.36);
}

.d90-bank-logo-slot span {
  color: #b7c1c6;
  font-size: 0.9rem;
}

.d90-withdrawal-form .d90-form-line {
  min-height: 1.8rem;
  border-bottom: 1px solid rgba(224, 232, 235, 0.45);
}

.d90-withdrawal-form .d90-form-line--inline {
  display: inline-block;
  min-width: 10rem;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row.validate-required {
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(113, 180, 35, 0.3);
  border-radius: 12px;
  background: rgba(113, 180, 35, 0.08);
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox {
  cursor: pointer;
  line-height: 1.55;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input#terms {
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .d90-legal-section,
  .d90-legal-lead {
    border-radius: 14px;
  }

  .d90-legal-section ul,
  .d90-legal-section ol {
    padding-left: 1.25rem;
  }
}

@media print {
  .d90-legal-page,
  .d90-legal-section,
  .d90-legal-section p,
  .d90-legal-section li {
    color: #111 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}
