/* Switch estilo iPhone — termos / consentimento / ativo */
.ios-switch-stack {
  display: grid;
  gap: 0.75rem;
}

.ios-switch {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0 0 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(201, 148, 61, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.ios-switch__hint a {
  color: #e8c56b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ios-switch__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.ios-switch__control {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 32px;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: #3a3a3a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.22s ease, border-color 0.22s ease;
}

.ios-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f4f4f4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease;
}

.ios-switch__input:checked + .ios-switch__control {
  background: linear-gradient(135deg, #c9943d 0%, #e8c56b 100%);
  border-color: transparent;
}

.ios-switch__input:checked + .ios-switch__control .ios-switch__thumb {
  transform: translateX(20px);
}

.ios-switch__input:focus-visible + .ios-switch__control {
  outline: 2px solid #e8c56b;
  outline-offset: 3px;
}

.ios-switch__copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.ios-switch__title {
  color: #f7f2e9;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.ios-switch__hint {
  color: #b9b1a6;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ios-switch--compact {
  margin: 0;
  padding: 0.55rem 0.7rem;
  gap: 0.65rem;
  align-items: center;
}

.ios-switch--compact .ios-switch__control {
  width: 44px;
  height: 26px;
  margin-top: 0;
}

.ios-switch--compact .ios-switch__thumb {
  width: 20px;
  height: 20px;
}

.ios-switch--compact .ios-switch__input:checked + .ios-switch__control .ios-switch__thumb {
  transform: translateX(18px);
}

.ios-switch--compact .ios-switch__title {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
