.swm-license-terms {
  color: #e5e5e5;
  font-size: 15px;
  line-height: 1.65;
}

.swm-license-terms--compact {
  font-size: 14px;
  line-height: 1.6;
}

.swm-license-terms__header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333333;
}

.swm-license-terms__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.swm-license-terms--compact .swm-license-terms__title {
  font-size: 22px;
}

.swm-license-terms__version {
  margin: 0;
  color: #999999;
  font-size: 14px;
}

.swm-license-terms__section {
  margin-bottom: 24px;
}

.swm-license-terms__section-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.swm-license-terms--compact .swm-license-terms__section-title {
  font-size: 20px;
}

.swm-license-terms__subsection {
  margin-bottom: 16px;
}

.swm-license-terms__subsection-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.swm-license-terms__section .swm-license-terms__paragraph,
.swm-license-terms__section .swm-license-terms__subsection-title,
.swm-license-terms__section .swm-license-terms__list,
.swm-license-terms__section .swm-license-terms__list-item {
  color: rgba(255, 255, 255, 0.5);
}

.swm-license-terms__paragraph {
  margin: 0 0 12px;
}

.swm-license-terms__list {
  margin: 0 0 12px;
  padding-left: 20px;
}

.swm-license-terms__list-item {
  margin-bottom: 8px;
}

.swm-license-terms__link {
  color: #3881c3;
  text-decoration: underline;
}

.swm-license-terms__link:hover {
  color: #5a9fd4;
}

.swm-license-terms__footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #333333;
}

.swm-terms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.swm-terms-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: min(90vh, 860px);
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.swm-terms-modal__header {
  flex-shrink: 0;
  padding: 20px 24px 12px;
  border-bottom: 1px solid #333333;
}

.swm-terms-modal__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.swm-terms-modal__subtitle {
  margin: 0;
  font-size: 13px;
  color: #999999;
}

.swm-terms-modal__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: #444444 #121212;
}

.swm-terms-modal__scroll::-webkit-scrollbar {
  width: 10px;
}

.swm-terms-modal__scroll::-webkit-scrollbar-track {
  background: #121212;
}

.swm-terms-modal__scroll::-webkit-scrollbar-thumb {
  background: #444444;
  border: 2px solid #121212;
  border-radius: 5px;
}

.swm-terms-modal__scroll::-webkit-scrollbar-thumb:hover {
  background: #5a5a5a;
}

.swm-terms-modal__scroll-hint {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 13px;
  color: #eab308;
  text-align: center;
  background: rgba(234, 179, 8, 0.08);
  border-top: 1px solid rgba(234, 179, 8, 0.2);
}

.swm-terms-modal__footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid #333333;
}

.swm-terms-modal__checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #cccccc;
}

.swm-terms-modal__checkbox-row input {
  margin-top: 3px;
  flex-shrink: 0;
}

.swm-terms-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.swm-terms-modal__button {
  padding: 12px 20px;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.swm-terms-modal__button--inactive,
.swm-terms-modal__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.swm-terms-modal__checkbox-row--locked {
  cursor: not-allowed;
  opacity: 0.7;
}

.swm-terms-modal__button--primary {
  background: #ec182c;
  color: #ffffff;
}

.swm-terms-modal__button--primary:not(:disabled):hover {
  background: #d01526;
}

.swm-terms-modal__error {
  margin: 0;
  font-size: 13px;
  color: #dc2626;
}

@media (max-width: 640px) {
  .swm-terms-modal-overlay {
    padding: 12px;
  }

  .swm-terms-modal__header,
  .swm-terms-modal__scroll,
  .swm-terms-modal__footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

